Skip to content

Commit 9bde45d

Browse files
committed
ci: consolidate plugin e2e checks
1 parent cd87fe4 commit 9bde45d

5 files changed

Lines changed: 58 additions & 68 deletions

File tree

‎.github/workflows/grafana-observability.yml‎

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,8 @@ concurrency:
4242
cancel-in-progress: true
4343

4444
jobs:
45-
package:
46-
name: Packaged tests / Node ${{ matrix.node }}
47-
runs-on: ubuntu-latest
48-
timeout-minutes: 10
49-
strategy:
50-
fail-fast: false
51-
matrix:
52-
node: ["22.19.0", "24", "26"]
53-
steps:
54-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
55-
with:
56-
persist-credentials: false
57-
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
58-
with:
59-
node-version: ${{ matrix.node }}
60-
package-manager-cache: false
61-
- run: npm run validate
62-
- run: npm run verify:grafana:source
63-
- run: npm run test:grafana
64-
65-
grafana-live:
66-
name: Real Grafana / Docker
67-
needs: package
45+
grafana-e2e:
46+
name: Grafana E2E
6847
runs-on: ubuntu-latest
6948
timeout-minutes: 60
7049
steps:
@@ -75,6 +54,12 @@ jobs:
7554
with:
7655
node-version: "22.19.0"
7756
package-manager-cache: false
57+
- name: Validate package / Node 22.19
58+
run: npm run validate:grafana
59+
- name: Verify source / Node 22.19
60+
run: npm run verify:grafana:source
61+
- name: Packaged tests / Node 22.19
62+
run: npm run test:grafana
7863
- if: inputs.grafana_major != 'all'
7964
run: npm run test:grafana:live
8065
env:
@@ -85,3 +70,17 @@ jobs:
8570
run: npm run test:grafana:auth
8671
- name: Actual Codex installation and MCP launch
8772
run: npm run test:grafana:installed
73+
- name: Set up Node 24
74+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
75+
with:
76+
node-version: "24"
77+
package-manager-cache: false
78+
- name: Packaged tests / Node 24
79+
run: npm run test:grafana
80+
- name: Set up Node 26
81+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
82+
with:
83+
node-version: "26"
84+
package-manager-cache: false
85+
- name: Packaged tests / Node 26
86+
run: npm run test:grafana

‎.github/workflows/marketplace.yml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ concurrency:
3737

3838
jobs:
3939
validate:
40-
name: Validate marketplace
40+
name: Marketplace catalog
4141
runs-on: ubuntu-latest
4242
timeout-minutes: 10
4343
steps:
@@ -48,6 +48,4 @@ jobs:
4848
with:
4949
node-version: "22.19.0"
5050
package-manager-cache: false
51-
- run: npm --prefix plugins/reviewops-auditor-benchmark ci --ignore-scripts
5251
- run: npm run validate:marketplace
53-
- run: npm run test:marketplace

‎.github/workflows/reviewops-auditor-benchmark.yml‎

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -34,53 +34,39 @@ concurrency:
3434
cancel-in-progress: true
3535

3636
jobs:
37-
package:
38-
name: Offline package / Node ${{ matrix.node }}
37+
reviewops-e2e:
38+
name: ReviewOps E2E
3939
runs-on: ubuntu-latest
40-
timeout-minutes: 10
41-
strategy:
42-
fail-fast: false
43-
matrix:
44-
node: ["22.19.0", "24", "26"]
40+
timeout-minutes: 15
4541
steps:
4642
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4743
with:
4844
persist-credentials: false
4945
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
5046
with:
51-
node-version: ${{ matrix.node }}
47+
node-version: "22.19.0"
5248
package-manager-cache: false
53-
- run: npm --prefix plugins/reviewops-auditor-benchmark ci --ignore-scripts
54-
- run: npm run validate:marketplace
55-
- run: npm run test:reviewops-auditor-benchmark
49+
- name: Cold copied package / Node 22.19.0
50+
run: node --test --test-concurrency=1 tests/reviewops-auditor-benchmark/integration/packaged.test.mjs
51+
- name: Install ReviewOps dependencies
52+
run: npm --prefix plugins/reviewops-auditor-benchmark ci --ignore-scripts
53+
- name: Full ReviewOps qualification / Node 22.19.0
54+
run: npm run test:reviewops-auditor-benchmark
55+
- name: Audit runtime dependencies
56+
run: npm audit --prefix plugins/reviewops-auditor-benchmark --omit=dev
57+
- name: Verify reproducible source bundle
58+
run: npm run verify:reviewops-source
5659

57-
source:
58-
name: Reproducible source bundle
59-
runs-on: ubuntu-latest
60-
timeout-minutes: 15
61-
steps:
62-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
63-
with:
64-
persist-credentials: false
6560
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
6661
with:
67-
node-version: "22.19.0"
62+
node-version: "24"
6863
package-manager-cache: false
69-
- run: npm --prefix plugins/reviewops-auditor-benchmark ci --ignore-scripts
70-
- run: npm audit --prefix plugins/reviewops-auditor-benchmark --omit=dev
71-
- run: npm run verify:reviewops-source
64+
- name: Full uninstrumented suite / Node 24
65+
run: npm --prefix plugins/reviewops-auditor-benchmark run test
7266

73-
cold-package:
74-
name: Cold copied package
75-
needs: package
76-
runs-on: ubuntu-latest
77-
timeout-minutes: 10
78-
steps:
79-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
80-
with:
81-
persist-credentials: false
8267
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
8368
with:
84-
node-version: "22.19.0"
69+
node-version: "26"
8570
package-manager-cache: false
86-
- run: node --test --test-concurrency=1 tests/reviewops-auditor-benchmark/integration/packaged.test.mjs
71+
- name: Full uninstrumented suite / Node 26
72+
run: npm --prefix plugins/reviewops-auditor-benchmark run test

‎docs/reviewops-auditor-benchmark-implementation-plan.md‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,11 +1748,11 @@ Coverage remains an aggregate 90% line / 80% branch / 90% function source
17481748
gate, but every lane, metric, recommendation gate, and safety boundary needs
17491749
an explicit negative test; coverage alone is not sufficient.
17501750

1751-
The full 106-test suite runs before coverage on every supported Node version.
1752-
Coverage instrumentation is limited to the 78 deterministic unit suites
1753-
so it cannot distort the public CLI worker's fixed five-second safety
1754-
deadline; copied-package, accessibility, security, and CLI subprocess tests
1755-
still run uninstrumented as required end-to-end gates.
1751+
The full 106-test suite runs uninstrumented on every supported Node version.
1752+
Node 22.19 also runs coverage on the 78 deterministic unit suites so
1753+
instrumentation cannot distort the public CLI worker's fixed five-second
1754+
safety deadline; copied-package, accessibility, security, and CLI subprocess
1755+
tests still run uninstrumented as required end-to-end gates.
17561756

17571757
### Dedicated CI
17581758

@@ -1762,9 +1762,13 @@ The dedicated workflow must include:
17621762
package scripts, and plan/docs;
17631763
- `permissions: contents: read`, `persist-credentials: false`, pinned
17641764
actions, concurrency cancellation;
1765-
- 10-minute normal test timeout and explicit longer cold-install timeout;
1766-
- Node 22.19, 24, and 26 matrix for package/unit/security/benchmark tests;
1767-
- Linux copied-package smoke job;
1765+
- one visible ReviewOps E2E check instead of separate matrix, source, and
1766+
copied-package checks;
1767+
- Node 22.19 full qualification, coverage, dependency audit, source
1768+
verification, and pre-install copied-package smoke steps;
1769+
- Node 24 and 26 uninstrumented full-suite compatibility steps in the same
1770+
E2E job;
1771+
- a 15-minute bounded job timeout;
17681772
- no live provider, database, GitHub, customer-data, or runtime-network test;
17691773
- explicit skipped-gate ledger when a platform check is unavailable.
17701774

‎tests/reviewops-auditor-benchmark/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Tests are grouped by execution boundary:
1818
- `security/` keeps adversarial input, redaction, and isolation checks easy to
1919
audit separately.
2020

21+
CI exposes one ReviewOps E2E check. Node 22.19, 24, and 26 compatibility runs
22+
stay inside that check instead of multiplying GitHub status checks.
23+
2124
The fixture intentionally contains no customer data, provider credentials,
2225
private URLs, real prompts, real diffs, or live integration.
2326

0 commit comments

Comments
 (0)