-
Notifications
You must be signed in to change notification settings - Fork 1
Fix nightly package repo syncs #325
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ff6c95f
Add sync_group variable
Alex-Welsh 7f4ebcf
Increase package sync timeout
Alex-Welsh 791feda
Merge branch 'main' into fix-nightly
Alex-Welsh 5bccb7d
Add Ubuntu to nightly package repo sync matrix
Alex-Welsh 776eb95
Remove stray file
Alex-Welsh 224fc95
Post-review fixes
Alex-Welsh 6c3a2f7
Revert "Increase package sync timeout"
Alex-Welsh 4f6e434
Move debug print to separate job
Alex-Welsh e28c3ca
Use non-broken ubuntu package mirrors
Alex-Welsh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,52 @@ on: | |
env: | ||
ANSIBLE_FORCE_COLOR: True | ||
jobs: | ||
sync-matrix-build: | ||
name: Build package matrix of package repo sync jobs | ||
runs-on: arc-release-train-runner | ||
outputs: | ||
matrix: ${{ steps.matrix-build.outputs.matrix }} | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install wget | ||
|
||
- name: Install YQ | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Create sync matrix | ||
id: matrix-build | ||
# Use YQ to make a list of all unique sync groups, and format as a GH | ||
# actions matrix | ||
run: | | ||
groups=$(yq -o=json -I=0 \ | ||
'([.rpm_package_repos[] | .sync_group | select(.) ]) + ([.deb_package_repos[] | .sync_group | select(.) ]) | unique' \ | ||
ansible/inventory/group_vars/all/package-repos) | ||
echo -n "matrix={\"sync_group\": " >> $GITHUB_OUTPUT | ||
echo -n $groups >> $GITHUB_OUTPUT | ||
echo "}" >> $GITHUB_OUTPUT | ||
|
||
- name: Print sync matrix | ||
run: | | ||
echo "Package sync matrix:" | ||
echo -n "${{ steps.matrix-build.outputs.matrix }}" | ||
|
||
sync-matrix-run: | ||
name: Sync | ||
needs: | ||
- sync-matrix-build | ||
strategy: | ||
matrix: | ||
filter: ['rocky','(centos|rhel|epel|^docker|opensearch|grafana|rabbitmq|^treasuredata|elasticsearch)', 'jammy', 'focal', 'ubuntu_cloud_archive'] | ||
matrix: ${{ fromJson(needs.sync-matrix-build.outputs.matrix) }} | ||
max-parallel: 1 | ||
fail-fast: False | ||
uses: stackhpc/stackhpc-release-train/.github/workflows/package-sync.yml@main | ||
with: | ||
sync_ark: True | ||
sync_test: False | ||
filter: ${{ matrix.filter }} | ||
package_sync_group: ${{ matrix.sync_group }} | ||
secrets: inherit |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.