Skip to content

Commit

Permalink
Update CI for aarch64 AlmaLinux#5
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravk committed Nov 6, 2024
1 parent e6efaf6 commit d6fa8a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/almalinux-compose-test-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ jobs:
;;
esac
echo "[Debug] $(sudo vagrant ssh almalinux -c 'tmt --version')"
- name: Run tests
id: run-tests
continue-on-error: true
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/almalinux-compose-test-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,23 +210,23 @@ jobs:
10-kitten*)
sudo vagrant ssh almalinux -c "sudo dnf install -y --enablerepo='extras-common' almalinux-kitten-release-devel"
sudo vagrant ssh almalinux -c "sudo dnf install -y --enablerepo='${enable_repo,,} devel' python3-pip beakerlib"
sudo vagrant ssh almalinux -c "sudo pip install tmt"
sudo vagrant ssh almalinux -c "sudo sh -c 'pip install tmt && ln -s /usr/local/bin/tmt /usr/bin/tmt'"
;;
*)
sudo vagrant ssh almalinux -c "sudo dnf -y install epel-release"
sudo vagrant ssh almalinux -c "sudo dnf install -y --enablerepo=${enable_repo,,} tmt"
;;
esac
echo "[Debug] $(sudo vagrant ssh almalinux -c 'export PATH=$PATH:/usr/local/bin; tmt --version')"
echo "[Debug] $(sudo vagrant ssh almalinux -c 'tmt --version')"
- name: Get compose-tests
run: sudo vagrant ssh almalinux -c 'sudo cp -a /vagrant /compose-tests'

- name: Run tests
id: run-tests
continue-on-error: true
run: sudo vagrant ssh almalinux -c "sudo sh -c 'export pungi_repository=${{ inputs.pungi_repository }}; export pulp_repository=${{ inputs.pulp_repository }}; export PATH=$PATH:/usr/local/bin; cd /compose-tests; tmt -vvv -c distro=centos-stream-${{ env.release_version }} run --all provision --how=local ${{ env.tmt_options }}'"
run: sudo vagrant ssh almalinux -c "sudo sh -c 'export pungi_repository=${{ inputs.pungi_repository }}; export pulp_repository=${{ inputs.pulp_repository }}; cd /compose-tests; tmt -vvv -c distro=centos-stream-${{ env.release_version }} run --all provision --how=local ${{ env.tmt_options }}'"

- name: Print tests results
run: |
Expand Down Expand Up @@ -288,7 +288,7 @@ jobs:
# Re-run specific failed test
if [ "${{ inputs.rerun_failed }}" = "true" ]; then
if sudo vagrant ssh almalinux -c "sudo sh -c 'export pungi_repository=${{ inputs.pungi_repository }}; export pulp_repository=${{ inputs.pulp_repository }}; export PATH=$PATH:/usr/local/bin; cd /compose-tests; tmt -vvv -c distro=centos-stream-${{ env.release_version }} run --all provision --how=local ${{ env.tmt_options }} test --name ${test_failed}'"; then
if sudo vagrant ssh almalinux -c "sudo sh -c 'export pungi_repository=${{ inputs.pungi_repository }}; export pulp_repository=${{ inputs.pulp_repository }}; cd /compose-tests; tmt -vvv -c distro=centos-stream-${{ env.release_version }} run --all provision --how=local ${{ env.tmt_options }} test --name ${test_failed}'"; then
test_result="${test_failed} [re-run ✅]"
else
test_result="${test_failed} [re-run ❌]"
Expand Down Expand Up @@ -323,4 +323,4 @@ jobs:
.addList(['pulp - ${{ inputs.pulp_repository && '✅' || '❌'}}','pungi - ${{ inputs.pungi_repository && '✅' || '❌'}}'], true)
.addHeading('${{ env.summary_header }}', '4')
.addList([${{ env.rerun_results }}], true)
.write()
.write()

0 comments on commit d6fa8a2

Please sign in to comment.