Merge lp:~brian-murray/ubuntu-archive-tools/block-proposed into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Approved by: Steve Langasek
Approved revision: 1432
Merged at revision: 1441
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/block-proposed
Merge into: lp:ubuntu-archive-tools
Diff against target: 29 lines (+19/-0)
1 file modified
sru-release (+19/-0)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/block-proposed
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+396963@code.launchpad.net

Description of the change

Let's use code to prevent human error.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

block-proposed bugs are not customarily the bugs that are referenced in the changelog for the version that was uploaded. Shouldn't this either look at the verification-failed tags, or else scan all bugs on the package for the block-proposed tag?

review: Needs Information
Revision history for this message
Brian Murray (brian-murray) wrote :

> block-proposed bugs are not customarily the bugs that are referenced in the
> changelog for the version that was uploaded. Shouldn't this either look at
> the verification-failed tags, or else scan all bugs on the package for the
> block-proposed tag?

The code actually checks for block-proposed-$release and that tag is used on bugs that are referenced in the changelog. It should also check for verification-failed and I'll that too.

1432. By Brian Murray

Also prevent releasing SRUs with verification-failed-$release

Revision history for this message
Steve Langasek (vorlon) wrote :

> The code actually checks for block-proposed-$release and
> that tag is used on bugs that are referenced in the changelog.

The point I was trying to make is that we are meant to be able to file bugs after the upload, use the block-proposed* tags, and have that block release of the package.

However, this is already done by britney so once we transition sru-release to write hints instead of releasing directly, it doesn't need to be handled in sru-release at all.

So I'm fine to go forward with this MP as-is.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sru-release'
2--- sru-release 2020-01-29 04:02:26 +0000
3+++ sru-release 2021-01-27 22:30:32 +0000
4@@ -249,6 +249,25 @@
5 sys.stderr.write(message)
6 sys.exit(1)
7
8+ # If any bug is tagged 'block-proposed' prevent releasing the update.
9+ for pkg_versions in pkg_versions_map.values():
10+ for pkg, versions in pkg_versions.items():
11+ sru_bugs = match_srubugs(options, versions['changesfile'])
12+ block_tag = 'block-proposed-%s' % release
13+ failed_tag = 'verification-failed-%s' % release
14+ for sru_bug in sru_bugs:
15+ if block_tag in sru_bug.tags:
16+ message = ('ERROR: not releasing ' + pkg + ' as SRU '
17+ 'bug ' + str(sru_bug.id) + ' is tagged '
18+ + block_tag + '\n')
19+ elif failed_tag in sru_bug.tags:
20+ message = ('ERROR: not releasing ' + pkg + ' as SRU '
21+ 'bug ' + str(sru_bug.id) + ' is tagged '
22+ + failed_tag + '\n')
23+ if message:
24+ sys.stderr.write(message)
25+ sys.exit(1)
26+
27 for pkg, versions in pkg_versions_map[package].items():
28 print('--- Releasing %s ---' % pkg)
29 print('Proposed: %s' % versions['proposed'])

Subscribers

People subscribed via source and target branches