Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Commit ae43297

Browse files
hroncokirushchyshyn
authored andcommitted
Add package NEVR to /usr/bin/python invocation fail log
1 parent 0d37e6b commit ae43297

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

taskotron_python_versions/python_usage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def task_python_usage(logs, koji_build, artifact):
6868

6969
if problem_arches:
7070
detail.artifact = artifact
71-
archstr = ', '.join(sorted(problem_arches))
72-
write_to_artifact(artifact, MESSAGE.format(archstr), INFO_URL)
73-
problems = 'Problematic architectures: ' + archstr
71+
info = '{}: {}'.format(koji_build, ', '.join(sorted(problem_arches)))
72+
write_to_artifact(artifact, MESSAGE.format(info), INFO_URL)
73+
problems = 'Problematic architectures: ' + info
7474
else:
7575
problems = 'No problems found.'
7676

test/integration/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def test_artifact_contains_python_usage_and_looks_as_expected(jsonrpc):
388388
assert dedent("""
389389
You've used /usr/bin/python during build on the following arches:
390390
391-
armv7hl, i686, x86_64
391+
jsonrpc-glib-3.27.4-1.fc28: armv7hl, i686, x86_64
392392
393393
Use /usr/bin/python3 or /usr/bin/python2 explicitly.
394394
/usr/bin/python will be removed or switched to Python 3 in the future.

0 commit comments

Comments
 (0)