Repository navigation
87 lines (79 loc) · 2.84 KB
/
Copy pathspecula-release.yml
File metadata and controls
87 lines (79 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Specula release verification
on:
release:
types: [published]
workflow_dispatch:
inputs:
mode:
description: Verification operation (initialization and resume are explicit)
required: true
default: incremental
type: choice
options:
- incremental
- initialize
- resume
- preflight
release_tag:
description: Existing immutable microsoft/nvx release tag on dev ancestry
required: true
type: string
run_id:
description: Exact native run ID (required only for resume)
required: false
type: string
permissions:
contents: read
concurrency:
group: specula-openvmm-snapshot-restore
cancel-in-progress: false
jobs:
verify:
if: >-
github.repository == 'microsoft/nvx' &&
(github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/dev')
runs-on: [specula]
timeout-minutes: 720
defaults:
run:
shell: bash
env:
PYTHONDONTWRITEBYTECODE: "1"
SPECULA_STATE_ROOT: ${{ vars.SPECULA_STATE_ROOT || '/mnt/data/openvmm-verification' }}
SPECULA_TLC_MEMORY_LIMIT: ${{ vars.SPECULA_TLC_MEMORY_LIMIT || '96G' }}
SPECULA_TLC_WORKER_LIMIT: ${{ vars.SPECULA_TLC_WORKER_LIMIT || '16' }}
steps:
- name: Checkout trusted control code
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
repository: microsoft/nvx
ref: dev
persist-credentials: false
- name: Check the dedicated Specula runner
env:
RELEASE_TAG: ${{ inputs.release_tag || github.event.release.tag_name }}
run: python3 .github/specula/ci.py --mode preflight --tag "$RELEASE_TAG" --request-id "preflight-${GITHUB_RUN_ID}"
- name: Verify the release's pinned OpenVMM submodule
id: verify
timeout-minutes: 700
run: |
python3 .github/specula/ci.py \
--event-file "$GITHUB_EVENT_PATH" \
--event-name "$GITHUB_EVENT_NAME" \
--request-id "nvx-gh-${GITHUB_RUN_ID}"
- name: Publish the curated job summary
if: ${{ always() && steps.verify.outputs.artifact_dir != '' }}
env:
SPECULA_ARTIFACT_DIR: ${{ steps.verify.outputs.artifact_dir }}
run: |
cat -- "$SPECULA_ARTIFACT_DIR/summary.md" >> "$GITHUB_STEP_SUMMARY"
- name: Upload curated verification metadata
if: ${{ always() && steps.verify.outputs.artifact_dir != '' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: specula-release-${{ github.run_id }}-${{ github.run_attempt }}
path: |
${{ steps.verify.outputs.artifact_dir }}
if-no-files-found: error
include-hidden-files: false
retention-days: 14