Merge ~nacc/git-ubuntu:lp1713530-pass-v-to-dpkg-buildpackage-for-merges into git-ubuntu:master

Proposed by Nish Aravamudan
Status: Merged
Approved by: Nish Aravamudan
Approved revision: 70794e49463bd4b94452d1ebf714441bf55b92c6
Merge reported by: Nish Aravamudan
Merged at revision: 70794e49463bd4b94452d1ebf714441bf55b92c6
Proposed branch: ~nacc/git-ubuntu:lp1713530-pass-v-to-dpkg-buildpackage-for-merges
Merge into: git-ubuntu:master
Diff against target: 29 lines (+18/-0)
1 file modified
gitubuntu/build.py (+18/-0)
Reviewer Review Type Date Requested Status
Nish Aravamudan Approve
Andreas Hasenack Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+330787@code.launchpad.net

Description of the change

Make jenkins happy.

Still needs to be tested.

To post a comment you must log in.
Revision history for this message
Nish Aravamudan (nacc) wrote :

Tested with a trivial merge of openexr, but would like more exposure.

Revision history for this message
Nish Aravamudan (nacc) wrote :

I think we should consolidate our 'merge detection' logic into one place (perhaps in git_repository if HEAD (could be commitish, but unclear if that's generally needed -- and how to differentiate between a bugfix to a debian version and a merge?) changelog is for ubuntu, but the nearest remote pkg/ remote branch is debian?

Revision history for this message
Nish Aravamudan (nacc) wrote :

If we do consolidate, we'll need to refactor the followon branches (either this one or the LXD one) to use that logic.

Revision history for this message
Server Team CI bot (server-team-bot) wrote :

PASSED: Continuous integration, rev:fe328d3828cdfde52106cf7c3edc88cfd621c387
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/92/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Style Check
    SUCCESS: Unit Tests
    SUCCESS: Integration Tests
    IN_PROGRESS: Declarative: Post Actions

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

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

PASSED: Continuous integration, rev:70794e49463bd4b94452d1ebf714441bf55b92c6
https://jenkins.ubuntu.com/server/job/git-ubuntu-ci/132/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Style Check
    SUCCESS: Unit Tests
    SUCCESS: Integration Tests
    IN_PROGRESS: Declarative: Post Actions

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

review: Approve (continuous-integration)
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I didn't know about -v, interesting.

ok, verified that it's passing the old/ubuntu version via -v when it's a debian merge, and that a command line -- -v<version> overrides that, also in lxc builds, and the .changes file has the expected changelog entries.

review: Approve
Revision history for this message
Nish Aravamudan (nacc) wrote :

Self-approving

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/gitubuntu/build.py b/gitubuntu/build.py
2index 68a619d..74db6c8 100644
3--- a/gitubuntu/build.py
4+++ b/gitubuntu/build.py
5@@ -435,6 +435,24 @@ def main(
6 return []
7
8 try:
9+ repo = GitUbuntuRepository('.')
10+ pkg_remote_branch_string = derive_target_branch(repo, 'HEAD')
11+ if len(pkg_remote_branch_string) == 0:
12+ sys.exit(1)
13+
14+ # Implies a merge
15+ if 'debian' in pkg_remote_branch_string:
16+ oldubuntu_version, _ = repo.get_changelog_versions_from_treeish(
17+ 'pkg/ubuntu/devel',
18+ )
19+ if all('-v' not in arg for arg in rem_args):
20+ rem_args.extend(['-v', oldubuntu_version,])
21+ else:
22+ logging.warning(
23+ "-v specified manually, not passing -v%s automatically",
24+ oldubuntu_version,
25+ )
26+
27 files = fetch_orig_and_build(
28 search_list,
29 changelog,

Subscribers

People subscribed via source and target branches