Merge ~chad.smith/cloud-init:fix-make-tarball into cloud-init:master

Proposed by Chad Smith
Status: Merged
Approved by: Chad Smith
Approved revision: 855df2c50906788a862f921102172f55d1b6e679
Merge reported by: Chad Smith
Merged at revision: 49b562c94838f4e2c0aa0df01a5247d06bc8a561
Proposed branch: ~chad.smith/cloud-init:fix-make-tarball
Merge into: cloud-init:master
Diff against target: 47 lines (+12/-3)
1 file modified
tools/make-tarball (+12/-3)
Reviewer Review Type Date Requested Status
Scott Moser Approve
Ryan Harper Approve
Server Team CI bot continuous-integration Approve
Review via email: mp+342761@code.launchpad.net

Commit message

tools: Fix make-tarball cli tool usage for development

This tool is used to assist during the creation of ubuntu packages for
release testing. Address the following on the command-line:
 * --help option now print usage
 * Add --orig-tarball which creates named output file
   cloud-init_<release-version>.orig.tar.gz
 * drop unused --verbose option

Description of the change

Nish ran into issues during cloud-init upload attempt.

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:6ad734a83eec200b0033e6490861872fa990859e
https://jenkins.ubuntu.com/server/job/cloud-init-ci/975/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    FAILED: Ubuntu LTS: Build

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/975/rebuild

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

FAILED: Continuous integration, rev:6ad734a83eec200b0033e6490861872fa990859e
https://jenkins.ubuntu.com/server/job/cloud-init-ci/977/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    FAILED: Ubuntu LTS: Build

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/977/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

I don't really care for this change.
I'm not opposed to having a '--orig-tarball' flag or something.

but an upstream is not going to name their tarballs:
  package-version_orig.tar.gz

basically, my feeling is that the output name is correct for use as an upstream developer as it is. And if we change it as suggested, then its correct for debian development but odd for everything else.

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

FAILED: Continuous integration, rev:199fd6a0d3c92be5d87ac77d487cd99730d6a1ca
https://jenkins.ubuntu.com/server/job/cloud-init-ci/989/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    FAILED: Ubuntu LTS: Build

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/989/rebuild

review: Needs Fixing (continuous-integration)
855df2c... by Chad Smith

tools: Fix make-tarball cli tool usage for development

This tool is used to assist during the creation of ubuntu packages for
release testing. Address the following on the command-line:
 * --help option now print usage
 * Add --orig-tarball which creates named output file
   cloud-init_<release-version>.orig.tar.gz
 * drop unused --verbose option

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

PASSED: Continuous integration, rev:855df2c50906788a862f921102172f55d1b6e679
https://jenkins.ubuntu.com/server/job/cloud-init-ci/990/
Executed test runs:
    SUCCESS: Checkout
    SUCCESS: Unit & Style Tests
    SUCCESS: Ubuntu LTS: Build
    SUCCESS: Ubuntu LTS: Integration
    SUCCESS: MAAS Compatability Testing
    IN_PROGRESS: Declarative: Post Actions

Click here to trigger a rebuild:
https://jenkins.ubuntu.com/server/job/cloud-init-ci/990/rebuild

review: Approve (continuous-integration)
Revision history for this message
Ryan Harper (raharper) :
review: Approve
Revision history for this message
Scott Moser (smoser) :
review: Approve
Revision history for this message
Chad Smith (chad.smith) wrote :

An upstream commit landed for this bug.

To view that commit see the following URL:
https://git.launchpad.net/cloud-init/commit/?id=49b562c9

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/tools/make-tarball b/tools/make-tarball
2index 3197689..8d54013 100755
3--- a/tools/make-tarball
4+++ b/tools/make-tarball
5@@ -13,22 +13,28 @@ Usage: ${0##*/} [revision]
6 create a tarball of revision (default HEAD)
7
8 options:
9- -o | --output FILE write to file
10+ -h | --help print usage
11+ -o | --output FILE write to file
12+ --orig-tarball Write file cloud-init_<version>.orig.tar.gz
13+ --long Use git describe --long for versioning
14 EOF
15 }
16
17 short_opts="ho:v"
18-long_opts="help,output:,long,verbose"
19+long_opts="help,output:,orig-tarball,long"
20 getopt_out=$(getopt --name "${0##*/}" \
21 --options "${short_opts}" --long "${long_opts}" -- "$@") &&
22 eval set -- "${getopt_out}" || { Usage 1>&2; exit 1; }
23
24 long_opt=""
25+orig_opt=""
26 while [ $# -ne 0 ]; do
27 cur=$1; next=$2
28 case "$cur" in
29+ -h|--help) Usage; exit 0;;
30 -o|--output) output=$next; shift;;
31 --long) long_opt="--long";;
32+ --orig-tarball) orig_opt=".orig";;
33 --) shift; break;;
34 esac
35 shift;
36@@ -39,7 +45,10 @@ version=$(git describe --abbrev=8 "--match=[0-9]*" ${long_opt} $rev)
37
38 archive_base="cloud-init-$version"
39 if [ -z "$output" ]; then
40- output="$archive_base.tar.gz"
41+ if [ ! -z "$orig_opt" ]; then
42+ archive_base="cloud-init_$version"
43+ fi
44+ output="$archive_base$orig_opt.tar.gz"
45 fi
46
47 # when building an archiving from HEAD, ensure that there aren't any

Subscribers

People subscribed via source and target branches