Merge ~nacc/git-ubuntu:lint-deconstruct-tag-fix-lp1775041 into git-ubuntu:master

Proposed by Nish Aravamudan
Status: Needs review
Proposed branch: ~nacc/git-ubuntu:lint-deconstruct-tag-fix-lp1775041
Merge into: git-ubuntu:master
Diff against target: 48 lines (+18/-19)
1 file modified
gitubuntu/lint.py (+18/-19)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Needs Fixing
git-ubuntu developers Pending
Review via email: mp+347459@code.launchpad.net

Description of the change

Make jenkins happy

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

FAILED: Continuous integration, rev:b96567d07e0f22dac0c1f3506f1b7234384bc1ef
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/11/
Executed test runs:
    SUCCESS: VM Setup
    SUCCESS: Build
    FAILED: Unit Tests

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/11/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Server Team CI bot (server-team-bot) wrote :

FAILED: Continuous integration, rev:b96567d07e0f22dac0c1f3506f1b7234384bc1ef
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/12/
Executed test runs:
    SUCCESS: VM Setup
    FAILED: Build

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/12/rebuild

review: Needs Fixing (continuous-integration)

Unmerged commits

b96567d... by Nish Aravamudan

lint: separate check for reconstruct and deconstruct tag

I'm not sure why I wrote the code like this originally, but the intent
was to run every check (even if it doesn't necessarily make any sense to
have a deconstruct tag if there is no a reconstruct tag, in this case).
We will emit all failures as we go through the checks. Currently, we
only check deconstruct if reconstruct exists -- but then we use the
deconstruct tag variable to check against the logical tag. This will
obviously error if the reconstruct tag didn't exist originally.

Also fix a bit of mis-indentation in the code.

LP: #1775041

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/gitubuntu/lint.py b/gitubuntu/lint.py
index d41045c..b58e46d 100644
--- a/gitubuntu/lint.py
+++ b/gitubuntu/lint.py
@@ -541,25 +541,24 @@ def do_merge_lint(repo, namespace, commitish_string, old, new_base):
541 # 2) does reconstruct tag exist?541 # 2) does reconstruct tag exist?
542 # 2a) does import tag treeish match reconstruct tag treeish?542 # 2a) does import tag treeish match reconstruct tag treeish?
543 reconstruct_tag = "%sreconstruct/%s" % (namespace, old_ubuntu_tag_version)543 reconstruct_tag = "%sreconstruct/%s" % (namespace, old_ubuntu_tag_version)
544 if _check_commitish_exists_and_same(544 ret = _check_commitish_exists_and_same(
545 repo,545 repo,
546 import_tag,546 import_tag,
547 reconstruct_tag,547 reconstruct_tag,
548 import_tag,548 import_tag,
549 ):549 ) and ret
550 # 2b) does deconstruct tag exist?550
551 # 2b1) does import tag treeish match deconstruct tag treeish?551 # 2b) does deconstruct tag exist?
552 deconstruct_tag = "%sdeconstruct/%s" % (552 # 2b1) does import tag treeish match deconstruct tag treeish?
553 namespace, old_ubuntu_tag_version553 deconstruct_tag = "%sdeconstruct/%s" % (
554 )554 namespace, old_ubuntu_tag_version
555 ret = _check_commitish_exists_and_same(555 )
556 repo,556 ret = _check_commitish_exists_and_same(
557 import_tag,557 repo,
558 deconstruct_tag,558 import_tag,
559 import_tag,559 deconstruct_tag,
560 ) and ret560 import_tag,
561 else:561 ) and ret
562 ret = False
563562
564 # 3) does logical tag exist?563 # 3) does logical tag exist?
565 logical_tag = "%slogical/%s" % (564 logical_tag = "%slogical/%s" % (

Subscribers

People subscribed via source and target branches