Skip to content

APT/YUM publishing fixes#17638

Merged
wadells merged 4 commits into
masterfrom
walt/fix-yum-race
Oct 21, 2022
Merged

APT/YUM publishing fixes#17638
wadells merged 4 commits into
masterfrom
walt/fix-yum-race

Conversation

@wadells
Copy link
Copy Markdown
Contributor

@wadells wadells commented Oct 20, 2022

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

Backports

Testing

I won't merge until these are both green.

@wadells wadells requested a review from r0mant October 20, 2022 21:29
@wadells wadells marked this pull request as ready for review October 20, 2022 23:13
@wadells wadells changed the title Apt/Yum publishing fixes APT/YUM publishing fixes Oct 20, 2022
@r0mant
Copy link
Copy Markdown
Collaborator

r0mant commented Oct 21, 2022

@wadells Why did the build-ent-amis pipeline fail on your test build? https://drone.platform.teleport.sh/gravitational/teleport/16741/14/1

@wadells
Copy link
Copy Markdown
Contributor Author

wadells commented Oct 21, 2022

@wadells Why did the build-ent-amis pipeline fail on your test build? https://drone.platform.teleport.sh/gravitational/teleport/16741/14/1

Network Timeout:

teleport-aws-linux: Could not retrieve mirrorlist https://amazonlinux-2-repos-us-west-2.s3.dualstack.us-west-2.amazonaws.com/2/core/latest/x86_64/mirror.list error was
teleport-aws-linux: 12: Timeout on https://amazonlinux-2-repos-us-west-2.s3.dualstack.us-west-2.amazonaws.com/2/core/latest/x86_64/mirror.list: (28, 'Resolving timed out after 5000 milliseconds')

I didn't touch the AMI pipelines, so this is unrelated to my changes. Nonetheless, since I'm waiting on other tests to merge, I'll go ahead and re-run this dev build and promote, to get a green build on these steps as well.

Tag: https://drone.platform.teleport.sh/gravitational/teleport/16757
Promote: https://drone.platform.teleport.sh/gravitational/teleport/16763

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 enabled auto-merge (squash) October 21, 2022 05:14
@wadells wadells merged commit d6f07e4 into master Oct 21, 2022
@wadells wadells deleted the walt/fix-yum-race branch October 21, 2022 06:23
@wadells wadells restored the walt/fix-yum-race branch October 21, 2022 23:21
@wadells wadells deleted the walt/fix-yum-race branch September 15, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants