[copr/copr] branch master updated (88cf4d3 -> 345b68d)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
msuchy pushed a change to branch master
in repository copr/copr.
from 88cf4d3 distgit: each log entry to contain PID
add 345b68d frontend: dump task priority when adding it to queue
No new revisions were added by this update.
Summary of changes:
backend/copr_backend/worker_manager.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (eb663eb -> 88cf4d3)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
msuchy pushed a change to branch master
in repository copr/copr.
from eb663eb backend: indefinitely retry workers' talk to frontend
add 88cf4d3 distgit: each log entry to contain PID
No new revisions were added by this update.
Summary of changes:
dist-git/run/importer_runner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (829770b -> eb663eb)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
msuchy pushed a change to branch master
in repository copr/copr.
from 829770b frontend: Don't submit builds when there are no CoprChroot(s) assigned
add eb663eb backend: indefinitely retry workers' talk to frontend
No new revisions were added by this update.
Summary of changes:
backend/copr_backend/background_worker.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated: frontend: Don't submit builds
when there are no CoprChroot(s) assigned
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a commit to branch master
in repository copr/copr.
The following commit(s) were added to refs/heads/master by this push:
new 829770b frontend: Don't submit builds when there are no CoprChroot(s) assigned
829770b is described below
commit 829770b7dfdf3a6408cf05de0eaf7b8ba63ee33d
Author: Silvie Chlupova <sisi.chlupova(a)gmail.com>
AuthorDate: Wed Jun 10 23:44:59 2020 +0200
frontend: Don't submit builds when there are no CoprChroot(s) assigned
Fixes: #1383
Merges: #1396
---
frontend/coprs_frontend/coprs/logic/builds_logic.py | 3 +++
frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py | 2 +-
frontend/coprs_frontend/tests/test_logic/test_builds_logic.py | 10 ++++++++++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/frontend/coprs_frontend/coprs/logic/builds_logic.py b/frontend/coprs_frontend/coprs/logic/builds_logic.py
index 8060617..9c7c658 100644
--- a/frontend/coprs_frontend/coprs/logic/builds_logic.py
+++ b/frontend/coprs_frontend/coprs/logic/builds_logic.py
@@ -548,6 +548,9 @@ class BuildsLogic(object):
:type batch: models.Batch
:rtype: models.Build
"""
+ if not copr.active_copr_chroots:
+ raise BadRequest("Can't create build - project {} has no active chroots".format(copr.full_name))
+
chroots = None
if chroot_names:
chroots = []
diff --git a/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py b/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
index 496af61..b29ea66 100644
--- a/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
+++ b/frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
@@ -125,7 +125,7 @@ def process_new_build(copr, form, create_new_build_factory, add_function, add_vi
try:
create_new_build_factory(**build_options)
db.session.commit()
- except (ActionInProgressException, InsufficientRightsException, UnrepeatableBuildException) as e:
+ except (ActionInProgressException, InsufficientRightsException, UnrepeatableBuildException, BadRequest) as e:
db.session.rollback()
flask.flash(str(e), "error")
else:
diff --git a/frontend/coprs_frontend/tests/test_logic/test_builds_logic.py b/frontend/coprs_frontend/tests/test_logic/test_builds_logic.py
index 88185f8..2defcd0 100644
--- a/frontend/coprs_frontend/tests/test_logic/test_builds_logic.py
+++ b/frontend/coprs_frontend/tests/test_logic/test_builds_logic.py
@@ -366,3 +366,13 @@ class TestBuildsLogic(CoprsTestCase):
assert len(self.db.session.query(models.Build).all()) == 4
BuildsLogic.clean_old_builds()
assert len(self.db.session.query(models.Build).all()) == 3
+
+ @pytest.mark.usefixtures("f_users", "f_coprs", "f_mock_chroots", "f_db")
+ def test_no_active_chroot(self):
+ self.c1.copr_chroots.clear()
+ self.db.session.commit()
+ with pytest.raises(BadRequest) as error:
+ BuildsLogic.create_new(self.u1, self.c1, 0, '{}')
+
+ assert "has no active chroots" in str(error.value)
+ assert len(self.c1.active_copr_chroots) == 0
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (06d7629 -> 5284f68)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to branch master
in repository copr/copr.
from 06d7629 backend, frontend: cancel also "starting" builds
add 5284f68 frontend: hot-fix pending-jobs route again
No new revisions were added by this update.
Summary of changes:
.../coprs_frontend/coprs/views/backend_ns/backend_general.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (20b2e4b -> 06d7629)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to branch master
in repository copr/copr.
from 20b2e4b backend: more verbose delete action
add 06d7629 backend, frontend: cancel also "starting" builds
No new revisions were added by this update.
Summary of changes:
backend/copr_backend/background_worker_build.py | 14 +++++++++
backend/tests/test_background_worker_build.py | 36 ++++++++++++++++++++++
.../coprs_frontend/coprs/logic/builds_logic.py | 10 +++---
frontend/coprs_frontend/coprs/models.py | 2 +-
4 files changed, 56 insertions(+), 6 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (d0ee783 -> 20b2e4b)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to branch master
in repository copr/copr.
from d0ee783 frontend: don't traceback on invalid cancel requests
add 20b2e4b backend: more verbose delete action
No new revisions were added by this update.
Summary of changes:
backend/copr_backend/actions.py | 3 +++
backend/copr_backend/helpers.py | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (0ed0793 -> d0ee783)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to branch master
in repository copr/copr.
from 0ed0793 releng: tito: put testing tarball to sources
add d0ee783 frontend: don't traceback on invalid cancel requests
No new revisions were added by this update.
Summary of changes:
frontend/coprs_frontend/coprs/__init__.py | 19 +++++++++++++++++--
.../coprs_frontend/coprs/views/apiv3_ns/__init__.py | 3 +++
.../coprs_frontend/coprs/views/coprs_ns/__init__.py | 12 +++++++++++-
.../coprs/views/coprs_ns/coprs_builds.py | 13 ++++++++-----
frontend/coprs_frontend/coprs/views/misc.py | 1 +
5 files changed, 40 insertions(+), 8 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (df11d4f -> 0ed0793)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to branch master
in repository copr/copr.
from df11d4f backend: make the call sign_one() test order independent
add 0ed0793 releng: tito: put testing tarball to sources
No new revisions were added by this update.
Summary of changes:
.tito/library/builder.py | 1 +
1 file changed, 1 insertion(+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months
[copr/copr] branch master updated (e581967 -> df11d4f)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to branch master
in repository copr/copr.
from e581967 backend: cleanup the example configuration
add df11d4f backend: make the call sign_one() test order independent
No new revisions were added by this update.
Summary of changes:
backend/tests/test_background_worker_build.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
3 years, 10 months