Skip to content

Commit

Permalink
infra: introduce daily cron job to trigger tests against latest compose
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou committed Jan 16, 2025
1 parent 0b55835 commit 9ebf4ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: nightly
on:
schedule:
- cron: '0 1 * * *'
# can be run manually on https://github.com/rhinstaller/anaconda-webui/actions
workflow_dispatch:
jobs:
trigger:
permissions:
statuses: write
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Trigger updates-testing scenario
run: |
make bots
mkdir -p ~/.config/cockpit-dev
echo "${{ github.token }}" >> ~/.config/cockpit-dev/github-token
bots/tests-trigger --force "-" "${TEST_OS}/compose-${COMPOSE_ID}"
4 changes: 4 additions & 0 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
# expensive - expensive tests (test which run a full installation)
# other - non-expensive tests
# compose-{compose-id} - run tests on a specific compose


set -eux
Expand All @@ -21,6 +22,9 @@ RE_EXPENSIVE='E2E'

# every known case needs to set RUN_OPTS to something non-empty, so that we can check if we hit any branch
case "${TEST_SCENARIO:=}" in
*compose-*)
RUN_OPTS="$ALL_TESTS"; export TEST_COMPOSE="${TEST_SCENARIO#compose-}"
;;
*efi*) RUN_OPTS="$ALL_TESTS"; export TEST_FIRMWARE="efi" ;;&
*expensive*)
RUN_OPTS="$(echo "$ALL_TESTS" | grep -E "$RE_EXPENSIVE")"
Expand Down

0 comments on commit 9ebf4ec

Please sign in to comment.