Skip to content

Make build image on RHEL Rocky more stable#3184

Draft
hanwen-cluster wants to merge 2 commits into
aws:developfrom
hanwen-cluster:developmay18
Draft

Make build image on RHEL Rocky more stable#3184
hanwen-cluster wants to merge 2 commits into
aws:developfrom
hanwen-cluster:developmay18

Conversation

@hanwen-cluster
Copy link
Copy Markdown
Contributor

Description of changes

  • Describe what you're changing and why you're doing these changes.

Tests

  • Describe the automated and/or manual tests executed to validate the patch.
  • Describe the added/modified tests.

References

  • Link to impacted open issues.
  • Link to related PRs in other packages (i.e. cookbook, node).
  • Link to documentation useful to understand the changes.

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… out of sync repositories

Generalizes the approach created by aws#3060

Introduces a `robust_package` resource that wraps the Chef `package`
resource with a metadata-refresh retry strategy on RHEL/Rocky to mitigate transient build failures from out-of-sync RHUI
mirrors. On Amazon Linux and Debian-based platforms it falls back to
the stock `package` resource with retries, so behavior is unchanged.

In addition, this commit does some refactor to reduce code duplication.
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.

1 participant