test: install ansible collection from tar.gz package#463
Merged
cgwalters merged 1 commit intobootc-dev:mainfrom Apr 7, 2024
Merged
test: install ansible collection from tar.gz package#463cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters merged 1 commit intobootc-dev:mainfrom
Conversation
To avoid galaxy server unstable issue, like 504 gateway timeout, error when getting available versions of collection community.general, download two required collection packages and install then locally Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
cgwalters
approved these changes
Apr 7, 2024
| - unzip | ||
| - how: shell | ||
| script: ansible-galaxy collection install community.general ansible.posix | ||
| script: ansible-galaxy collection install https://ansible-collection.s3.amazonaws.com/ansible-posix-1.5.4.tar.gz https://ansible-collection.s3.amazonaws.com/community-general-8.5.0.tar.gz |
Collaborator
There was a problem hiding this comment.
OK, but it seems better to retry this task in a loop; this approach seems to be bypassing their metadata servers; e.g. what if they decided to store things in GCP or quay.io instead?
Collaborator
Author
There was a problem hiding this comment.
Sometimes it failed for a long time, like this time(still flaky since Saturday). So retry does not work in this case.
I think saving to quay.io adds complex. Both GCP and S3 work for me.
BTW, I've tried to run ansible inside a container, but I dropped that for two reasons:
- it adds a lot of complexity and test code is not easy to understand.
- libvirt scenario blocked me.
cgwalters
added a commit
to cgwalters/bootc
that referenced
this pull request
Nov 5, 2024
…son-1.0.96 build(deps): bump serde_json from 1.0.95 to 1.0.96
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To avoid galaxy server unstable issue, like
504 gateway timeout,error when getting available versions of collection community.general, download two required collection packages and install them locally. And those two collections are more general and do not have too much update often.