Skip to content

[v10] APT/YUM publishing fixes#17646

Merged
wadells merged 5 commits into
branch/v10from
walt/v10-fix-yum-race
Oct 21, 2022
Merged

[v10] APT/YUM publishing fixes#17646
wadells merged 5 commits into
branch/v10from
walt/v10-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:

No further changes changes/merged conflic resolution was needed for v10 beyond what I did for v11 in #17645

Testing

Tag: https://drone.platform.teleport.sh/gravitational/teleport/16752
Promote: https://drone.platform.teleport.sh/gravitational/teleport/16758

I won't merge until I see both of these are green.

These were running in parallel, but we want them to run serially.
Therefore, we add a dependency between each step and its previous step.
Copy link
Copy Markdown
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the v10 version of this patch stack is the same as the v11 version. I do not plan to run a build and promote specifically for v10.

Can you test it? Last 2 v10 releases had hiccups related to apt/yum publishing so I'd rather not take chances and make sure it works.

@wadells
Copy link
Copy Markdown
Contributor Author

wadells commented Oct 21, 2022

Can you test it? Last 2 v10 releases had hiccups related to apt/yum publishing so I'd rather not take chances and make sure it works.

Sure -- I'll update the description in a moment with links.

edit: updated

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 merged commit df8d0af into branch/v10 Oct 21, 2022
@wadells wadells deleted the walt/v10-fix-yum-race branch October 21, 2022 17:49
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