Merge ubuntu-archive-tools:rar-more-info into ubuntu-archive-tools:main

Proposed by Brian Murray
Status: Merged
Merged at revision: a652962c29cc718ca58fe5c7ace5144da45af485
Proposed branch: ubuntu-archive-tools:rar-more-info
Merge into: ubuntu-archive-tools:main
Diff against target: 20 lines (+3/-2)
1 file modified
retry-autopkgtest-regressions (+3/-2)
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+434458@code.launchpad.net

Description of the change

When pipe'ing retry-autopkgtest-regressions to wget its hard to ascertain any useful information from the output. This switches to using curl so that we can print the HTTP status code which is useful in determining if our request actually worked. Sample output:

 $ ./retry-autopkgtest-regressions --blocks ikiwiki-hosting | vipe | xargs -rn1 -P10 curl --cookie ~/.cache/autopkgtest.cookie -o /dev/null --silent --head --write-out '%{url_effective}: %{http_code}\n'
https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=armhf&package=ikiwiki-hosting&trigger=ikiwiki-hosting%2F0.20220715-1: 403
https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=ppc64el&package=ikiwiki-hosting&trigger=ikiwiki-hosting%2F0.20220715-1: 403
https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=ikiwiki-hosting&trigger=ikiwiki-hosting%2F0.20220715-1: 200

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/retry-autopkgtest-regressions b/retry-autopkgtest-regressions
2index 3ba51e5..9a5f912 100755
3--- a/retry-autopkgtest-regressions
4+++ b/retry-autopkgtest-regressions
5@@ -53,12 +53,13 @@ def parse_args():
6 'Generate %s URLs to re-run regressions' % request_url,
7 formatter_class=argparse.RawDescriptionHelpFormatter,
8 description='''Typical workflow:
9- - export autopkgtest.ubuntu.com session cookie into ~/.cache/autopkgtest.cookie
10+ - export autopkgtest.ubuntu.com session and server cookie into ~/.cache/autopkgtest.cookie
11 Use a browser plugin or get the value from the settings and create it with
12 printf "autopkgtest.ubuntu.com\\tTRUE\\t/\\tTRUE\\t0\\tsession\\tVALUE\\n" > ~/.cache/autopkgtest.cookie
13+ printf "autopkgtest.ubuntu.com\\tTRUE\\t/\\tTRUE\\t0\\tSRVNAME\\tVALUE\\n" >> ~/.cache/autopkgtest.cookie
14 (The cookie is valid for one month)
15
16- - retry-autopkgtest-regressions [opts...] | vipe | xargs -rn1 -P10 wget --load-cookies ~/.cache/autopkgtest.cookie -O-
17+ - retry-autopkgtest-regressions [opts...] | vipe | xargs -rn1 -P10 curl --cookie ~/.cache/autopkgtest.cookie -o /dev/null --silent --head --write-out '%{url_effective}: %{http_code}\n'
18 edit URL list to pick/remove requests as desired, then close editor to let it run
19 ''')
20 parser.add_argument('-s', '--series', default=default_series,

Subscribers

People subscribed via source and target branches