Skip to content

[v9] APT/YUM publishing fixes#17647

Merged
wadells merged 3 commits into
branch/v9from
walt/v9-fix-yum-race
Oct 21, 2022
Merged

[v9] APT/YUM publishing fixes#17647
wadells merged 3 commits into
branch/v9from
walt/v9-fix-yum-race

Conversation

@wadells
Copy link
Copy Markdown
Contributor

@wadells wadells commented Oct 21, 2022

Backports #17638

This PR includes a variety of fixes and improvements to our apt & yum promotion pipelines. These are broken out by commit:

The only change needed for v9 was dropping Swap YUM_REPO_NEW_ROLE to YUM_REPO_NEW_AWS_ROLE as that fix was already added to this branch in #17255

Testing

Tag: https://drone.platform.teleport.sh/gravitational/teleport/16760
Promote: https://drone.platform.teleport.sh/gravitational/teleport/16764

These were running in parallel, but we want them to run serially.
Therefore, we add a dependency between each step and its previous step.
This helps test a couple more changes from this pipeline when cutting a
dev build.  Particularly, we saw the download and role assumption steps
fail in #17334, and this
change would have allowed us to catch that error during testing.
This bug does not appear to affect anything currently.  However it
should be fixed in case the rm is important at some point in the future.

The bug is: when a wildcard is inside quotes, it is treated as a literal
filename.  So rm -rf "$ARTIFACT_PATH/*" tries to remove the file named
'*' instead of trying to remove everything in artifact path.
@wadells wadells force-pushed the walt/v9-fix-yum-race branch from 9aae06e to fd587b2 Compare October 21, 2022 01:31
@wadells wadells enabled auto-merge (squash) October 21, 2022 06:19
@wadells wadells merged commit 935c804 into branch/v9 Oct 21, 2022
@wadells wadells deleted the walt/v9-fix-yum-race branch October 21, 2022 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants