copy-iuks-to-rsync-server-and-verify: needs adjustment for changing isobuilder names
They used to be called just isobuilderN
but now they are called isobuilderN.lizard
or isobuilderN.iguana
which breaks some assumptions.
I encountered this while preparing 4.22, and it should be possible to reproduce like this:
IUKS_HASHES="to_4.22.sha256sum"
CANDIDATE_JENKINS_IUKS_BUILD_ID=40
bin/copy-iuks-to-rsync-server-and-verify \
--hashes-file "${IUKS_HASHES:?}" \
--work-dir /srv/tmp \
--jenkins-build-id "${CANDIDATE_JENKINS_IUKS_BUILD_ID:?}"
There error I got was:
2021-09-07 00:38:22,240 INFO Sending /home/anonym/isos/iuks/v2/to_4.22.sha256sum to /srv/tmp on rsync.lizard…
to_4.22.sha256sum 100% 3257 3.1KB/s 00:01
2021-09-07 00:38:43,585 INFO Downloading IUKs from Jenkins to rsync.lizard…
2021-09-07 00:38:50,549 ERROR Found too many label URLs in https://nightly.tails.boum.org/build_IUKs/configurations/axis-SOURCE_VERSION/4.0/axis-label_exp/: ['https://nightly.tails.boum.org/build_IUKs/configurations/axis-SOURCE_VERSION/4.0/axis-label_exp/isobuilder1%2520%257C%257C%2520isobuilder2%2520%257C%257C%2520isobuilder3%2520%257C%257C%2520isobuilder4/', 'https://nightly.tails.boum.org/build_IUKs/configurations/axis-SOURCE_VERSION/4.0/axis-label_exp/isobuilder1.lizard%2520%257C%257C%2520isobuilder2.lizard%2520%257C%257C%2520isobuilder3.lizard%2520%257C%257C%2520isobuilder4.lizard/']
Possible solutions:
- make
get_jenkins_iuks_urls()
pick the newestlabel_urls
e.g. by sorting by date some how - "follow" each of
label_urls
and see which has/builds/${MATCHING_JENKINS_IMAGES_BUILD_ID}/
.
Edited by intrigeri