[copr/copr] annotated tag python-copr-1.98-1 created (now 7ef0c5a)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to annotated tag python-copr-1.98-1
in repository copr/copr.
at 7ef0c5a (tag)
tagging 10007b9059e70adafb96d04a15bfddbb4571c3b0 (commit)
replaces copr-messaging-0.4-1
by Pavel Raiskup
on Thu Oct 3 07:56:55 2019 +0200
- Log -----------------------------------------------------------------
Tagging package [python-copr] version [python-copr-1.98-1] in directory [python/].
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new ba2628e Automatic commit of package [copr-messaging] release [0.4-1].
new 10007b9 Automatic commit of package [python-copr] release [1.98-1].
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] annotated tag copr-messaging-0.4-1 created (now 987e30c)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to annotated tag copr-messaging-0.4-1
in repository copr/copr.
at 987e30c (tag)
tagging ba2628eafb073727948b78956899b0c2602acf9e (commit)
replaces python-copr-1.97-1
by Pavel Raiskup
on Thu Oct 3 07:55:23 2019 +0200
- Log -----------------------------------------------------------------
Tagging package [copr-messaging] version [copr-messaging-0.4-1] in directory [messaging/].
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new ba2628e Automatic commit of package [copr-messaging] release [0.4-1].
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] annotated tag copr-frontend-1.154-1 created (now
97c4246)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to annotated tag copr-frontend-1.154-1
in repository copr/copr.
at 97c4246 (tag)
tagging 93b6544dc90431917ef9c772e89fd7f875d29266 (commit)
replaces copr-cli-1.82-1
by Pavel Raiskup
on Thu Oct 3 08:16:22 2019 +0200
- Log -----------------------------------------------------------------
Tagging package [copr-frontend] version [copr-frontend-1.154-1] in directory [frontend/].
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new ba2628e Automatic commit of package [copr-messaging] release [0.4-1].
new 10007b9 Automatic commit of package [python-copr] release [1.98-1].
new 7ba2f43 Automatic commit of package [copr-cli] release [1.82-1].
new 93b6544 Automatic commit of package [copr-frontend] release [1.154-1].
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] annotated tag copr-cli-1.82-1 created (now c99dd0e)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to annotated tag copr-cli-1.82-1
in repository copr/copr.
at c99dd0e (tag)
tagging 7ba2f4389ed8888fb94590b674be154669a5f323 (commit)
replaces python-copr-1.98-1
by Pavel Raiskup
on Thu Oct 3 07:58:11 2019 +0200
- Log -----------------------------------------------------------------
Tagging package [copr-cli] version [copr-cli-1.82-1] in directory [cli/].
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new ba2628e Automatic commit of package [copr-messaging] release [0.4-1].
new 10007b9 Automatic commit of package [python-copr] release [1.98-1].
new 7ba2f43 Automatic commit of package [copr-cli] release [1.82-1].
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] annotated tag copr-backend-1.126-1 created (now 95b646c)
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
praiskup pushed a change to annotated tag copr-backend-1.126-1
in repository copr/copr.
at 95b646c (tag)
tagging e2f7ff368c240501af1fe84b21a2f62d4405de3a (commit)
replaces copr-frontend-1.154-1
by Pavel Raiskup
on Thu Oct 3 08:21:29 2019 +0200
- Log -----------------------------------------------------------------
Tagging package [copr-backend] version [copr-backend-1.126-1] in directory [backend/].
-----------------------------------------------------------------------
This annotated tag includes the following new commits:
new ba2628e Automatic commit of package [copr-messaging] release [0.4-1].
new 10007b9 Automatic commit of package [python-copr] release [1.98-1].
new 7ba2f43 Automatic commit of package [copr-cli] release [1.82-1].
new 93b6544 Automatic commit of package [copr-frontend] release [1.154-1].
new e2f7ff3 Automatic commit of package [copr-backend] release [1.126-1].
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] branch master updated (f524dd3 -> e2f7ff3)
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 f524dd3 frontend: fix api_2 for marshmallow 3+
new ba2628e Automatic commit of package [copr-messaging] release [0.4-1].
new 10007b9 Automatic commit of package [python-copr] release [1.98-1].
new 7ba2f43 Automatic commit of package [copr-cli] release [1.82-1].
new 93b6544 Automatic commit of package [copr-frontend] release [1.154-1].
new e2f7ff3 Automatic commit of package [copr-backend] release [1.126-1].
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.tito/packages/copr-backend | 2 +-
.tito/packages/copr-cli | 2 +-
.tito/packages/copr-frontend | 2 +-
.tito/packages/copr-messaging | 2 +-
.tito/packages/python-copr | 2 +-
backend/copr-backend.spec | 12 +++++++++++-
cli/copr-cli.spec | 8 +++++++-
cli/setup.py | 2 +-
frontend/copr-frontend.spec | 16 +++++++++++++++-
messaging/copr-messaging.spec | 6 +++++-
messaging/setup.py | 2 +-
python/python-copr.spec | 6 +++++-
python/setup.py | 2 +-
13 files changed, 51 insertions(+), 13 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] branch master updated (2fcd6f3 -> f524dd3)
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 2fcd6f3 frontend: started on should be also set when a build fails
add f524dd3 frontend: fix api_2 for marshmallow 3+
No new revisions were added by this update.
Summary of changes:
frontend/coprs_frontend/coprs/rest_api/common.py | 2 +-
.../coprs/rest_api/resources/build.py | 6 ++--
.../coprs/rest_api/resources/mock_chroot.py | 4 +--
.../coprs/rest_api/resources/project.py | 7 ++--
.../coprs/rest_api/resources/project_chroot.py | 8 ++---
frontend/coprs_frontend/coprs/rest_api/schemas.py | 38 +++++++++++++++++++---
frontend/coprs_frontend/coprs/rest_api/util.py | 24 +++++---------
7 files changed, 54 insertions(+), 35 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] branch master updated: frontend: started on should be
also set when a build fails
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 2fcd6f3 frontend: started on should be also set when a build fails
2fcd6f3 is described below
commit 2fcd6f3fbfbdae5c05f7add8cfa03228961eb941
Author: Silvie Chlupova <sisi.chlupova(a)gmail.com>
AuthorDate: Thu Sep 26 13:25:20 2019 +0200
frontend: started on should be also set when a build fails
Adding unit test for method update_state_from_dict in builds_logic
When a build failed, started_on wasn't set sometimes so this test is
making sure it is always set when a build fails.
Fixes: #342
Merges: #1031
---
frontend/coprs_frontend/coprs/logic/builds_logic.py | 1 +
.../test_views/test_backend_ns/test_backend_general.py | 13 +++++++++++++
2 files changed, 14 insertions(+)
diff --git a/frontend/coprs_frontend/coprs/logic/builds_logic.py b/frontend/coprs_frontend/coprs/logic/builds_logic.py
index 6549057..e88eede 100644
--- a/frontend/coprs_frontend/coprs/logic/builds_logic.py
+++ b/frontend/coprs_frontend/coprs/logic/builds_logic.py
@@ -935,6 +935,7 @@ ORDER BY
for ch in build.build_chroots:
ch.status = new_status
ch.ended_on = upd_dict.get("ended_on") or time.time()
+ ch.started_on = upd_dict.get("started_on", ch.ended_on)
db.session.add(ch)
if new_status == StatusEnum("failed"):
diff --git a/frontend/coprs_frontend/tests/test_views/test_backend_ns/test_backend_general.py b/frontend/coprs_frontend/tests/test_views/test_backend_ns/test_backend_general.py
index 976d01e..4a3a5bf 100644
--- a/frontend/coprs_frontend/tests/test_views/test_backend_ns/test_backend_general.py
+++ b/frontend/coprs_frontend/tests/test_views/test_backend_ns/test_backend_general.py
@@ -166,6 +166,19 @@ class TestUpdateBuilds(CoprsTestCase):
assert updated.status == 1
assert updated.chroots_ended_on == {'fedora-18-x86_64': 1490866440}
+ def test_update_state_from_dict(self, f_users, f_fork_prepare):
+ upd_dict = {'build_id': 6, 'chroot': 'srpm-builds',
+ 'destdir': '/var/lib/copr/public_html/results', 'enable_net': False, 'ended_on': 1569919634,
+ 'id': 6, 'source_type': 0, 'status': 0, 'submitter': 'user1', 'task_id': '6', 'timeout': 3600}
+ BuildsLogic.update_state_from_dict(self.b6, upd_dict)
+ updated = self.models.Build.query.filter(self.models.Build.id == 6).one()
+ assert upd_dict['ended_on'] == updated.started_on
+
+ upd_dict['started_on'] = 1569919624
+ BuildsLogic.update_state_from_dict(self.b6, upd_dict)
+ updated = self.models.Build.query.filter(self.models.Build.id == 6).one()
+ assert upd_dict['started_on'] == updated.started_on
+
def test_update_more_existent_and_non_existent_builds(
self, f_users, f_coprs, f_mock_chroots, f_builds, f_db):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] branch master updated: fronted: builder-live.log path
leads to an exception
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 5cec3fe fronted: builder-live.log path leads to an exception
5cec3fe is described below
commit 5cec3fe0bfd8da4813cc98a2e4254dcff3d5556b
Author: Silvie Chlupova <sisi.chlupova(a)gmail.com>
AuthorDate: Thu Sep 26 13:19:52 2019 +0200
fronted: builder-live.log path leads to an exception
Merges: #1030
---
frontend/coprs_frontend/coprs/models.py | 19 +++++++++++--------
.../coprs/templates/coprs/detail/build.html | 4 ++--
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/models.py b/frontend/coprs_frontend/coprs/models.py
index c68a61e..b616ed0 100644
--- a/frontend/coprs_frontend/coprs/models.py
+++ b/frontend/coprs_frontend/coprs/models.py
@@ -935,14 +935,6 @@ class Build(db.Model, helpers.Serializer):
path = os.path.normpath(os.path.join(*parts))
return urljoin(app.config["BACKEND_BASE_URL"], path)
- def backend_live_log(self, chroot):
- parts = ["results", self.copr.owner_name, self.copr_dirname,
- chroot.name, self.id_fixed_width + "-" + self.package.name,
- "builder-live.log" if chroot.status == StatusEnum("running")
- else "builder-live.log.gz"]
- path = os.path.normpath(os.path.join(*parts))
- return urljoin(app.config["BACKEND_BASE_URL"], path)
-
@property
def source_json_dict(self):
if not self.source_json:
@@ -1403,6 +1395,17 @@ class BuildChroot(db.Model, helpers.Serializer):
return urljoin(app.config["BACKEND_BASE_URL"], os.path.join(
"results", self.build.copr_dir.full_name, self.name, self.result_dir, ""))
+ @property
+ def live_log_link(self):
+ if not self.build.package:
+ return None
+
+ if not (self.finished or self.state == "running"):
+ return None
+
+ return os.path.join(self.result_dir_url,
+ "builder-live.log" if self.state == 'running' else "builder-live.log.gz")
+
class LegalFlag(db.Model, helpers.Serializer):
id = db.Column(db.Integer, primary_key=True)
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html b/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
index 9cfc41d..a55b313 100644
--- a/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
+++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html
@@ -228,8 +228,8 @@
{{ chroot.started_on|time_ago(chroot.ended_on) }}
</td>
<td>
- {% if chroot.finished or chroot.state == "running" %}
- <a href="{{ build.backend_live_log(chroot) }}">{{ build_state_text(chroot.state) }}</a>
+ {% if chroot.live_log_link %}
+ <a href="{{ chroot.live_log_link }}">{{ build_state_text(chroot.state) }}</a>
{% else %}
{{ build_state_text(chroot.state) }}
{% endif %}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months
[copr/copr] branch master updated (1e2a638 -> 1f590f7)
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 1e2a638 frontend: redirect the aliased chroot only if it is not enabled yet
new 5a6dd38 backend: simplify logging in FrontendClient
new 678f797 backend: more aggressive posting to Frontend
new 1f590f7 frontend, backend: add FrontendClient.{get,post,put}
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
backend/backend/actions.py | 2 +-
backend/backend/daemons/action_dispatcher.py | 9 +-
backend/backend/daemons/backend.py | 7 +-
backend/backend/daemons/build_dispatcher.py | 12 +-
backend/backend/daemons/worker.py | 1 +
backend/backend/exceptions.py | 4 +
backend/backend/frontend.py | 148 ++++++++++++++-------
backend/run/copr-backend-process-action | 2 +-
backend/run/copr_prune_results.py | 4 +-
backend/tests/test_frontend.py | 117 ++++++++++++----
.../coprs/views/backend_ns/backend_general.py | 2 +-
11 files changed, 212 insertions(+), 96 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
4 years, 7 months