forked from runxhq/runx
-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (84 loc) · 2.78 KB
/
Copy pathruntime-quality.yml
File metadata and controls
103 lines (84 loc) · 2.78 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: runtime quality
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: "17 3 * * 1"
concurrency:
group: runtime-quality-${{ github.sha }}
cancel-in-progress: false
permissions:
contents: read
env:
CARGO_INCREMENTAL: "0"
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
runtime-quality:
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- name: Checkout exact revision
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 10.18.2
- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 24
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Setup Rust
run: rustup show
- name: Install cargo-deny
uses: taiki-e/install-action@v2.85.5
with:
tool: cargo-deny
- name: Cargo cache
uses: Swatinem/rust-cache@v2
with:
workspaces: crates
- name: Install workspace dependencies
run: pnpm install --frozen-lockfile
- name: Build native inspection and worker binaries
run: cargo build --manifest-path crates/Cargo.toml -p runx-cli -p runx-js-worker
- name: Audit official skills and receipt ownership
run: |
pnpm core-skills:audit
pnpm receipts:canonical-check
pnpm receipts:importer-audit
- name: Audit Rust dependency advisories
run: cargo deny --manifest-path crates/Cargo.toml check advisories
- name: Exercise runtime stress boundaries
run: |
pnpm stress:runtime:mcp
pnpm stress:runtime:cli-tool
pnpm stress:runtime:external-adapter
pnpm stress:runtime:fanout
- name: Verify performance harness
run: pnpm perf:harness-check
- name: Capture focused runtime performance evidence
run: |
pnpm perf:runtime:capture -- \
--output .runx/evidence/runtime-quality.json \
--workloads native_capability_dispatch,pure_module_session_reuse,bounded_parallel_fanout \
--sample-size 10 \
--warm-up-time 1 \
--measurement-time 2
- name: Upload exact-commit performance evidence
uses: actions/upload-artifact@v7
with:
name: runtime-quality-${{ github.sha }}
path: .runx/evidence/runtime-quality.json
if-no-files-found: error
retention-days: 30
- name: Enforce runtime resource budgets
env:
EXPECTED_COMMIT: ${{ github.sha }}
run: |
node scripts/runtime-throughput.mjs verify-quality \
--candidate .runx/evidence/runtime-quality.json \
--expected-source-commit "$EXPECTED_COMMIT"