|
| 1 | +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json |
| 2 | + |
| 3 | +name: Weekly MSHV 6.18 |
| 4 | + |
| 5 | +# Runs the mshv3 tests and examples on the Azure Linux 3 pools with the MSHV |
| 6 | +# 6.18 kernel. PRs test only the default mshv3 pools. DailyBenchmarks.yml |
| 7 | +# benchmarks these pools. |
| 8 | + |
| 9 | +on: |
| 10 | + schedule: |
| 11 | + - cron: '0 3 * * 1' # Runs at 03:00 UTC every Monday |
| 12 | + workflow_dispatch: # Allow manual triggering |
| 13 | + |
| 14 | +permissions: |
| 15 | + contents: read |
| 16 | + |
| 17 | +jobs: |
| 18 | + build-guests: |
| 19 | + strategy: |
| 20 | + fail-fast: false |
| 21 | + matrix: |
| 22 | + config: [debug, release] |
| 23 | + uses: ./.github/workflows/dep_build_guests.yml |
| 24 | + secrets: inherit |
| 25 | + with: |
| 26 | + arch: X64 |
| 27 | + config: ${{ matrix.config }} |
| 28 | + |
| 29 | + build-test: |
| 30 | + needs: build-guests |
| 31 | + permissions: |
| 32 | + # checkout in the called workflow |
| 33 | + contents: read |
| 34 | + # pull goldens from GHCR in the called workflow |
| 35 | + packages: read |
| 36 | + strategy: |
| 37 | + fail-fast: false |
| 38 | + matrix: |
| 39 | + cpu_vendor: [amd, intel] |
| 40 | + config: [debug, release] |
| 41 | + uses: ./.github/workflows/dep_build_test.yml |
| 42 | + secrets: inherit |
| 43 | + with: |
| 44 | + hypervisor: mshv3 |
| 45 | + mshv_kernel: "6.18" |
| 46 | + cpu_vendor: ${{ matrix.cpu_vendor }} |
| 47 | + arch: X64 |
| 48 | + config: ${{ matrix.config }} |
| 49 | + |
| 50 | + run-examples: |
| 51 | + needs: build-guests |
| 52 | + strategy: |
| 53 | + fail-fast: false |
| 54 | + matrix: |
| 55 | + cpu_vendor: [amd, intel] |
| 56 | + config: [debug, release] |
| 57 | + uses: ./.github/workflows/dep_run_examples.yml |
| 58 | + secrets: inherit |
| 59 | + with: |
| 60 | + hypervisor: mshv3 |
| 61 | + mshv_kernel: "6.18" |
| 62 | + cpu_vendor: ${{ matrix.cpu_vendor }} |
| 63 | + arch: X64 |
| 64 | + config: ${{ matrix.config }} |
| 65 | + |
| 66 | + # The first label is the de-duplication key used by notify-ci-failure.sh, so |
| 67 | + # these failures share one release-blocking issue. That label must exist in |
| 68 | + # the repo or `gh issue create` fails. |
| 69 | + notify-failure: |
| 70 | + runs-on: ubuntu-latest |
| 71 | + needs: [build-guests, build-test, run-examples] |
| 72 | + if: always() && github.event_name != 'pull_request' && (needs.build-guests.result == 'failure' || needs.build-test.result == 'failure' || needs.run-examples.result == 'failure') |
| 73 | + permissions: |
| 74 | + # Job-level permissions replace the workflow-level grant, so checkout needs contents:read here. |
| 75 | + contents: read |
| 76 | + issues: write |
| 77 | + steps: |
| 78 | + - name: Checkout code |
| 79 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 80 | + |
| 81 | + - name: Notify Weekly MSHV 6.18 Failure |
| 82 | + run: ./dev/notify-ci-failure.sh --title="Weekly MSHV 6.18 Failure - ${{ github.run_number }}" --labels="area/ci-periodics-mshv-6.18,area/ci-periodics,area/testing,lifecycle/needs-review,release-blocker" |
| 83 | + env: |
| 84 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments