devtest -c with --offline and specific DIB_REPOREF_<project>'s fails if cache is older than refs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Expired
|
Medium
|
Unassigned |
Bug Description
Hopefully not the worst bug summary ever
Scenario
1. run devtest.sh --trash-my-machine on Monday
2. on Tuesday, export DIB_REPOREF_
3. ~/.cache/
4. run devtest.sh --trash-my-machine -c (with export DIB_COMMON_
It will fail with an unknown ref error when refreshing
Updating cache of http://
error: no such remote ref 429445d97b292aa
Changed in tripleo: | |
assignee: | nobody → Jon-Paul Sullivan (jonpaul-sullivan) |
Changed in tripleo: | |
importance: | Undecided → Medium |
Looking at diskimage- builder/ elements/ source- repositories/ extra-data. d/98-source- repositories the problematic section seems to be
if [ -z "$DIB_OFFLINE" -o -z "$HAS_REF" ] ; then
fi
changing
to
eliminates this error - while this may make the fetch more extensive, and slightly slower, given its only updating cached repos and the other approach results in errors, I think the fix is preferable