Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v11] APT/YUM publishing fixes #17645

Merged
merged 4 commits into from
Oct 21, 2022
Merged

[v11] APT/YUM publishing fixes #17645

merged 4 commits into from
Oct 21, 2022

Conversation

wadells
Copy link
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:

There were a range of merge conflicts, primarily stemming from master's version of this being developed on top of #16688, which touched some shared functions.

Testing

Tag: https://drone.platform.teleport.sh/gravitational/teleport/16750
Promote: https://drone.platform.teleport.sh/gravitational/teleport/16755

I won't merge until these are both green.

@wadells wadells marked this pull request as ready for review October 21, 2022 00:17
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.
All other roles environment variables end in AWS_ROLE, and consistency
is our friend here.
@wadells wadells force-pushed the walt/v11-fix-yum-race branch from 2e3d712 to c4720b4 Compare October 21, 2022 01:27
@wadells wadells merged commit d670b58 into branch/v11 Oct 21, 2022
@wadells wadells deleted the walt/v11-fix-yum-race branch October 21, 2022 03:38
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.

4 participants