mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-19 14:33:38 +00:00
🥅 ci: Run Playwright After Merges to Dev and Guard Specs Under Test Selection (#18049)
* 🥅 ci: Run Playwright After Every Merge to Dev The mock e2e suite ran on pull requests, nightly on main and on demand, so when a spec broke on dev no run on dev could go red: the vote workflow that runs the suite after merges cannot fail by design. Add a push trigger for dev with the pull request path filter. A push runs the pull request profile with no lane narrowed (10 memory shards, 2 Redis transport shards, both MCP lanes and MCP Apps), and the gate job reports it. Pushes take their own concurrency group that never cancels: the run in progress finishes, and GitHub keeps one pending run per group, so merges that land meanwhile collapse into one run of the newest commit. Pull request, nightly and manual runs keep their per-ref cancelling group. The matrix test now evaluates the workflow's own expressions per event rather than matching their text. * 🔭 ci: Always Run Source-Scanning Guard Specs Under Test Selection Codegraph test selection narrows a pull request run to the test files an import graph reaches. A spec that reads source with fs has no import edge to what it reads: toolCapabilityGates.spec.js scans four source trees, was not selected when #17864 changed one of the files it counts, and failed on dev afterwards. List every such spec, with the paths it reads, in .github/guard-specs.json. Both selectors now add a workspace's guards to a FILES decision and turn a NONE into a guards-only run when the change touches a path one of them reads, renames a file, or edits the list. A list that cannot be read runs the workspace FULL. FULL decisions and every earlier fail-open path are unchanged. The rule keys off the decision, not the event. A selection with no file left in the checkout gets no guards, so the test job still runs FULL on a stale selection instead of running only the guards. guard-specs.test.mjs fails when a spec in a gated workspace reads the repository through fs without being listed, when a listed path is missing, and when a workflow would not run for a path one of its guards reads. That last check adds the five backend and one frontend paths the triggers lacked. The test also runs both real select steps against canned codegraph responses.
This commit is contained in:
parent
1469f5ad75
commit
97f7fcdbac
10 changed files with 1229 additions and 23 deletions
53
.github/workflows/backend-review.yml
vendored
53
.github/workflows/backend-review.yml
vendored
|
|
@ -15,6 +15,15 @@ on:
|
|||
- '.bun-version'
|
||||
- 'config/circular-deps.mjs'
|
||||
- '.github/workflows/backend-review.yml'
|
||||
# The guard spec list, its reader and their test, then every path a backend guard spec
|
||||
# reads outside the trees above; guard-specs.test.mjs fails when one is missing here.
|
||||
- '.github/guard-specs.json'
|
||||
- '.github/scripts/guard-specs*.mjs'
|
||||
- '.env.example'
|
||||
- 'librechat.example.yaml'
|
||||
- 'client/public/mcp-sandbox.html'
|
||||
- 'e2e/setup/fake-model.js'
|
||||
- 'vendor/code/**'
|
||||
- '!**.md'
|
||||
pull_request:
|
||||
paths:
|
||||
|
|
@ -25,6 +34,15 @@ on:
|
|||
- '.bun-version'
|
||||
- 'config/circular-deps.mjs'
|
||||
- '.github/workflows/backend-review.yml'
|
||||
# The guard spec list, its reader and their test, then every path a backend guard spec
|
||||
# reads outside the trees above; guard-specs.test.mjs fails when one is missing here.
|
||||
- '.github/guard-specs.json'
|
||||
- '.github/scripts/guard-specs*.mjs'
|
||||
- '.env.example'
|
||||
- 'librechat.example.yaml'
|
||||
- 'client/public/mcp-sandbox.html'
|
||||
- 'e2e/setup/fake-model.js'
|
||||
- 'vendor/code/**'
|
||||
- '!**.md'
|
||||
# Promotion requires full CI at the exact dev SHA, including path-filtered commits.
|
||||
workflow_dispatch:
|
||||
|
|
@ -140,6 +158,9 @@ jobs:
|
|||
# graph, unclassifiable change, root/lockfile floors => mode FULL per workspace), and this
|
||||
# job emits nothing unless the response parses end to end — the worst case at every layer
|
||||
# is "CI runs everything", which is the pre-gating behavior.
|
||||
#
|
||||
# The graph follows imports, so a spec that reads source with fs is invisible to it. Those
|
||||
# guard specs are listed in .github/guard-specs.json and run with every narrowed decision.
|
||||
codegraph_select:
|
||||
name: Codegraph select
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -159,6 +180,14 @@ jobs:
|
|||
dataschemas_run: ${{ steps.sel.outputs.dataschemas_run }}
|
||||
dataschemas_files: ${{ steps.sel.outputs.dataschemas_files }}
|
||||
steps:
|
||||
# The commit under test, for the guard spec list, its reader and the reader's check that
|
||||
# a selection is not stale. Best effort: without it the select step runs every narrowed
|
||||
# workspace FULL, so a failed checkout never fails this job.
|
||||
- uses: actions/checkout@v5
|
||||
continue-on-error: true
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Select tests, fail open on any doubt
|
||||
id: sel
|
||||
env:
|
||||
|
|
@ -227,6 +256,23 @@ jobs:
|
|||
if [ "$mode" = "FILES" ] && [ -z "$files" ]; then mode="NONE"; fi
|
||||
fi
|
||||
fi
|
||||
# Guard specs read source with fs, so no import edge selects them. A narrowed run
|
||||
# carries its workspace's guards, and a skip becomes a guards-only run when the
|
||||
# change touches what they read (.github/guard-specs.json; the rules are in
|
||||
# .github/scripts/guard-specs.mjs). A list that cannot be read runs FULL. A selection
|
||||
# with no file left in this checkout gets no guards: the test job runs FULL on a
|
||||
# stale selection, and guards that exist would turn that into a guards-only run.
|
||||
guard_note=""
|
||||
if [ "$mode" = "FILES" ] || [ "$mode" = "NONE" ]; then
|
||||
guarded=$(SELECTED="$files" node .github/scripts/guard-specs.mjs "$mode" "$ws" files.json "$ignore"); grc=$?
|
||||
if [ "$grc" -ne 0 ]; then
|
||||
mode="FULL"; files=""
|
||||
note "| $ws | guard specs unreadable (exit $grc); running FULL |"
|
||||
elif [ -n "$guarded" ]; then
|
||||
if [ "$mode" = "NONE" ]; then guard_note=", guard specs only"; fi
|
||||
mode="FILES"; files="$guarded"
|
||||
fi
|
||||
fi
|
||||
if [ "$mode" = "NONE" ]; then
|
||||
echo "${key}_run=false" >> "$GITHUB_OUTPUT"
|
||||
note "| $ws | skip (no reachable tests) |"
|
||||
|
|
@ -234,7 +280,7 @@ jobs:
|
|||
n=$(echo "$files" | wc -w | tr -d ' ')
|
||||
echo "${key}_run=true" >> "$GITHUB_OUTPUT"
|
||||
echo "${key}_files=$files" >> "$GITHUB_OUTPUT"
|
||||
note "| $ws | $n selected files |"
|
||||
note "| $ws | $n selected files$guard_note |"
|
||||
else
|
||||
echo "${key}_run=true" >> "$GITHUB_OUTPUT"
|
||||
note "| $ws | FULL |"
|
||||
|
|
@ -357,6 +403,11 @@ jobs:
|
|||
- name: Detect circular dependencies
|
||||
run: node config/circular-deps.mjs
|
||||
|
||||
# Here because this job has node_modules, always runs and gates no other job.
|
||||
- name: Test guard spec selection
|
||||
if: ${{ !cancelled() }}
|
||||
run: node --test .github/scripts/guard-specs.test.mjs
|
||||
|
||||
test-api:
|
||||
name: 'Tests: api (shard ${{ matrix.shard }}/3)'
|
||||
needs: [build, codegraph_select]
|
||||
|
|
|
|||
9
.github/workflows/codegraph-e2e-votes.yml
vendored
9
.github/workflows/codegraph-e2e-votes.yml
vendored
|
|
@ -1,9 +1,10 @@
|
|||
# Codegraph e2e VOTES — observe-only, post-merge, time-boxed.
|
||||
#
|
||||
# Playwright never runs on pushes to dev, so evidence for the e2e skip election would
|
||||
# otherwise wait on rare organic PR spec failures. This workflow runs the FULL mock suite after
|
||||
# merges: each run is one graduation trial for every spec it executes, and doubles as the
|
||||
# post-merge safety net the jest workflows already have via their dev-push triggers.
|
||||
# Evidence for the e2e skip election would otherwise wait on rare organic PR spec failures, so
|
||||
# this workflow runs the FULL mock suite after merges: each run is one graduation trial for
|
||||
# every spec it executes. It is not the post-merge safety net: its test step cannot fail (see
|
||||
# below), so a regression on dev leaves it green. The run that goes red is playwright-mock.yml's
|
||||
# own dev-push trigger.
|
||||
#
|
||||
# By default every merge votes (the push trigger). Each run costs about 154 job-minutes on ten
|
||||
# runners, so with repo variable CODEGRAPH_E2E_VOTE_MIN_HOURS set to N > 0 a push run votes
|
||||
|
|
|
|||
44
.github/workflows/frontend-review.yml
vendored
44
.github/workflows/frontend-review.yml
vendored
|
|
@ -13,6 +13,11 @@ on:
|
|||
- 'package-lock.json'
|
||||
- '.bun-version'
|
||||
- '.github/workflows/frontend-review.yml'
|
||||
# The guard spec list, its reader and their test, then every path a frontend guard spec
|
||||
# reads outside the trees above; guard-specs.test.mjs fails when one is missing here.
|
||||
- '.github/guard-specs.json'
|
||||
- '.github/scripts/guard-specs*.mjs'
|
||||
- 'eslint-suppressions.json'
|
||||
- '!**.md'
|
||||
# Post-merge safety net and full-run baseline for gated selection (same rationale as
|
||||
# backend-review.yml stage 1): every dev merge touching frontend paths runs the full suite.
|
||||
|
|
@ -30,6 +35,11 @@ on:
|
|||
- 'package-lock.json'
|
||||
- '.bun-version'
|
||||
- '.github/workflows/frontend-review.yml'
|
||||
# The guard spec list, its reader and their test, then every path a frontend guard spec
|
||||
# reads outside the trees above; guard-specs.test.mjs fails when one is missing here.
|
||||
- '.github/guard-specs.json'
|
||||
- '.github/scripts/guard-specs*.mjs'
|
||||
- 'eslint-suppressions.json'
|
||||
# Promotion requires full CI at the exact dev SHA, including path-filtered commits.
|
||||
workflow_dispatch:
|
||||
|
||||
|
|
@ -102,6 +112,10 @@ jobs:
|
|||
- run: npm run test:client-build
|
||||
env:
|
||||
PLAYWRIGHT_CHANNEL: chrome
|
||||
# Here because this job has node_modules, always runs and gates no other job.
|
||||
- name: Test guard spec selection
|
||||
if: ${{ !cancelled() }}
|
||||
run: node --test .github/scripts/guard-specs.test.mjs
|
||||
|
||||
# Stage 1.5 of codegraph gating (stage 1 = backend jest, #15132; stage 2 = matrix lanes,
|
||||
# #15136). Same mechanism, same record: across 604 finalized shadow receipts the frontend
|
||||
|
|
@ -110,6 +124,9 @@ jobs:
|
|||
# every dev push, and on any doubt. A workspace skips ONLY on an explicit NONE. Kill switch:
|
||||
# repo variable CODEGRAPH_GATING=off. Neither frontend workspace defines
|
||||
# testPathIgnorePatterns, so --runTestsByPath needs no exclude mirroring here.
|
||||
#
|
||||
# The graph follows imports, so a spec that reads source with fs is invisible to it. Those
|
||||
# guard specs are listed in .github/guard-specs.json and run with every narrowed decision.
|
||||
codegraph_select:
|
||||
name: Codegraph select
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -125,6 +142,14 @@ jobs:
|
|||
clientpkg_run: ${{ steps.sel.outputs.clientpkg_run }}
|
||||
clientpkg_files: ${{ steps.sel.outputs.clientpkg_files }}
|
||||
steps:
|
||||
# The commit under test, for the guard spec list, its reader and the reader's check that
|
||||
# a selection is not stale. Best effort: without it the select step runs every narrowed
|
||||
# workspace FULL, so a failed checkout never fails this job.
|
||||
- uses: actions/checkout@v5
|
||||
continue-on-error: true
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Select tests, fail open on any doubt
|
||||
id: sel
|
||||
env:
|
||||
|
|
@ -180,6 +205,23 @@ jobs:
|
|||
if [ "$spaced" != "0" ]; then mode="FULL"; files=""; fi
|
||||
fi
|
||||
fi
|
||||
# Guard specs read source with fs, so no import edge selects them. A narrowed run
|
||||
# carries its workspace's guards, and a skip becomes a guards-only run when the
|
||||
# change touches what they read (.github/guard-specs.json; the rules are in
|
||||
# .github/scripts/guard-specs.mjs). A list that cannot be read runs FULL. A selection
|
||||
# with no file left in this checkout gets no guards: the test job runs FULL on a
|
||||
# stale selection, and guards that exist would turn that into a guards-only run.
|
||||
guard_note=""
|
||||
if [ "$mode" = "FILES" ] || [ "$mode" = "NONE" ]; then
|
||||
guarded=$(SELECTED="$files" node .github/scripts/guard-specs.mjs "$mode" "$ws" files.json ""); grc=$?
|
||||
if [ "$grc" -ne 0 ]; then
|
||||
mode="FULL"; files=""
|
||||
note "| $ws | guard specs unreadable (exit $grc); running FULL |"
|
||||
elif [ -n "$guarded" ]; then
|
||||
if [ "$mode" = "NONE" ]; then guard_note=", guard specs only"; fi
|
||||
mode="FILES"; files="$guarded"
|
||||
fi
|
||||
fi
|
||||
if [ "$mode" = "NONE" ]; then
|
||||
echo "${key}_run=false" >> "$GITHUB_OUTPUT"
|
||||
note "| $ws | skip (no reachable tests) |"
|
||||
|
|
@ -187,7 +229,7 @@ jobs:
|
|||
n=$(echo "$files" | wc -w | tr -d ' ')
|
||||
echo "${key}_run=true" >> "$GITHUB_OUTPUT"
|
||||
echo "${key}_files=$files" >> "$GITHUB_OUTPUT"
|
||||
note "| $ws | $n selected files |"
|
||||
note "| $ws | $n selected files$guard_note |"
|
||||
else
|
||||
echo "${key}_run=true" >> "$GITHUB_OUTPUT"
|
||||
note "| $ws | FULL |"
|
||||
|
|
|
|||
43
.github/workflows/playwright-mock.yml
vendored
43
.github/workflows/playwright-mock.yml
vendored
|
|
@ -7,6 +7,19 @@ on:
|
|||
- '!**.md'
|
||||
- '!.github/workflows/**'
|
||||
- '.github/workflows/playwright-mock.yml'
|
||||
# Post-merge safety net, as backend-review.yml and frontend-review.yml have for jest. A
|
||||
# regression that reaches dev fails this suite on every open pull request, and without a run
|
||||
# on dev itself nothing names the merge that caused it. A push runs the pull request profile
|
||||
# with no lane narrowed, so a red run on dev is what the next pull request would see. The
|
||||
# nightly stays on the default branch, where it covers the full suite on both stores.
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
paths:
|
||||
- '**'
|
||||
- '!**.md'
|
||||
- '!.github/workflows/**'
|
||||
- '.github/workflows/playwright-mock.yml'
|
||||
schedule:
|
||||
- cron: '0 5 * * *'
|
||||
workflow_dispatch:
|
||||
|
|
@ -27,8 +40,16 @@ permissions:
|
|||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: playwright-mock-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
# Pull requests, the nightly and manual runs keep a per-ref group in which a newer run cancels
|
||||
# the older one. Pushes to dev take a group of their own that never cancels, so the run in
|
||||
# progress always finishes; GitHub holds one pending run per group and a newer one replaces
|
||||
# it, so merges that land meanwhile collapse into a single run of the newest commit. A
|
||||
# cancelling group would rarely finish on a busy day (nine merges landed within 89 seconds on
|
||||
# 2026-11-09) and a run per commit, which the jest workflows use, costs about 190
|
||||
# runner-minutes on 15 runners each time. A red run therefore names a range of merges, from
|
||||
# the commit of the last finished run to its own, and the dev tip always gets a run.
|
||||
group: playwright-mock-${{ github.event_name == 'push' && 'post-merge-' || '' }}${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name != 'push' }}
|
||||
|
||||
env:
|
||||
NODE_OPTIONS: '--max-old-space-size=${{ secrets.NODE_MAX_OLD_SPACE_SIZE || 6144 }}'
|
||||
|
|
@ -39,9 +60,9 @@ jobs:
|
|||
# two matrix lanes whose relevance is a reachability question: the redis-transport shards (the
|
||||
# stream-boundary specs under a real Redis round-trip) and the MCP list_changed lanes. Memory
|
||||
# shards always run. Monotone and fail-open: a lane is dropped ONLY on an explicit `false` from
|
||||
# the service; unavailable/unconfigured/non-synchronize events keep the full matrix. Lock
|
||||
# attribution rides along so a backend dependency bump (reaches nothing in the graph) still
|
||||
# earns both lanes. Kill switch: repo variable CODEGRAPH_GATING=off.
|
||||
# the service; unavailable/unconfigured/non-synchronize events (dev pushes among them) keep the
|
||||
# full matrix. Lock attribution rides along so a backend dependency bump (reaches nothing in
|
||||
# the graph) still earns both lanes. Kill switch: repo variable CODEGRAPH_GATING=off.
|
||||
codegraph_select:
|
||||
name: Codegraph select
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -153,7 +174,7 @@ jobs:
|
|||
fi
|
||||
echo "decided=true" >> "$GITHUB_OUTPUT"
|
||||
note ""
|
||||
note "memory shards always run · kill switch: repo variable \`CODEGRAPH_GATING=off\` · full matrix on PR open and nightly"
|
||||
note "memory shards always run · kill switch: repo variable \`CODEGRAPH_GATING=off\` · full matrix on PR open, on every dev push and nightly"
|
||||
exit 0
|
||||
|
||||
e2e_shards:
|
||||
|
|
@ -163,6 +184,7 @@ jobs:
|
|||
!cancelled() &&
|
||||
(github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'push' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
github.event.pull_request != null &&
|
||||
(contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) ||
|
||||
|
|
@ -177,7 +199,7 @@ jobs:
|
|||
${{
|
||||
(github.event_name == 'pull_request' && needs.codegraph_select.outputs.e2e_include != '' &&
|
||||
fromJSON(needs.codegraph_select.outputs.e2e_include)) ||
|
||||
((github.event_name == 'pull_request' || inputs.coverage == 'pr') &&
|
||||
((github.event_name == 'pull_request' || github.event_name == 'push' || inputs.coverage == 'pr') &&
|
||||
fromJSON('{"include":[{"name":"memory, shard 1/10","stream_store":"memory","redis_image":"","suite":"full","shard":"1/10","artifact":"memory-1-of-10","email_change":"true"},{"name":"memory, shard 2/10","stream_store":"memory","redis_image":"","suite":"full","shard":"2/10","artifact":"memory-2-of-10"},{"name":"memory, shard 3/10","stream_store":"memory","redis_image":"","suite":"full","shard":"3/10","artifact":"memory-3-of-10"},{"name":"memory, shard 4/10","stream_store":"memory","redis_image":"","suite":"full","shard":"4/10","artifact":"memory-4-of-10"},{"name":"memory, shard 5/10","stream_store":"memory","redis_image":"","suite":"full","shard":"5/10","artifact":"memory-5-of-10"},{"name":"memory, shard 6/10","stream_store":"memory","redis_image":"","suite":"full","shard":"6/10","artifact":"memory-6-of-10"},{"name":"memory, shard 7/10","stream_store":"memory","redis_image":"","suite":"full","shard":"7/10","artifact":"memory-7-of-10"},{"name":"memory, shard 8/10","stream_store":"memory","redis_image":"","suite":"full","shard":"8/10","artifact":"memory-8-of-10"},{"name":"memory, shard 9/10","stream_store":"memory","redis_image":"","suite":"full","shard":"9/10","artifact":"memory-9-of-10"},{"name":"memory, shard 10/10","stream_store":"memory","redis_image":"","suite":"full","shard":"10/10","artifact":"memory-10-of-10"},{"name":"redis transport, shard 1/2","stream_store":"redis","redis_image":"redis:7-alpine","suite":"transport","shard":"1/2","artifact":"redis-transport-1-of-2"},{"name":"redis transport, shard 2/2","stream_store":"redis","redis_image":"redis:7-alpine","suite":"transport","shard":"2/2","artifact":"redis-transport-2-of-2"}]}')) ||
|
||||
fromJSON('{"include":[{"name":"memory, shard 1/10","stream_store":"memory","redis_image":"","suite":"full","shard":"1/10","artifact":"memory-1-of-10","email_change":"true"},{"name":"memory, shard 2/10","stream_store":"memory","redis_image":"","suite":"full","shard":"2/10","artifact":"memory-2-of-10"},{"name":"memory, shard 3/10","stream_store":"memory","redis_image":"","suite":"full","shard":"3/10","artifact":"memory-3-of-10"},{"name":"memory, shard 4/10","stream_store":"memory","redis_image":"","suite":"full","shard":"4/10","artifact":"memory-4-of-10"},{"name":"memory, shard 5/10","stream_store":"memory","redis_image":"","suite":"full","shard":"5/10","artifact":"memory-5-of-10"},{"name":"memory, shard 6/10","stream_store":"memory","redis_image":"","suite":"full","shard":"6/10","artifact":"memory-6-of-10"},{"name":"memory, shard 7/10","stream_store":"memory","redis_image":"","suite":"full","shard":"7/10","artifact":"memory-7-of-10"},{"name":"memory, shard 8/10","stream_store":"memory","redis_image":"","suite":"full","shard":"8/10","artifact":"memory-8-of-10"},{"name":"memory, shard 9/10","stream_store":"memory","redis_image":"","suite":"full","shard":"9/10","artifact":"memory-9-of-10"},{"name":"memory, shard 10/10","stream_store":"memory","redis_image":"","suite":"full","shard":"10/10","artifact":"memory-10-of-10"},{"name":"redis, shard 1/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"1/10","artifact":"redis-1-of-10"},{"name":"redis, shard 2/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"2/10","artifact":"redis-2-of-10"},{"name":"redis, shard 3/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"3/10","artifact":"redis-3-of-10"},{"name":"redis, shard 4/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"4/10","artifact":"redis-4-of-10"},{"name":"redis, shard 5/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"5/10","artifact":"redis-5-of-10"},{"name":"redis, shard 6/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"6/10","artifact":"redis-6-of-10"},{"name":"redis, shard 7/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"7/10","artifact":"redis-7-of-10"},{"name":"redis, shard 8/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"8/10","artifact":"redis-8-of-10"},{"name":"redis, shard 9/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"9/10","artifact":"redis-9-of-10"},{"name":"redis, shard 10/10","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"10/10","artifact":"redis-10-of-10"}]}')
|
||||
}}
|
||||
|
|
@ -438,6 +460,7 @@ jobs:
|
|||
needs.codegraph_select.outputs.mcp_run != 'false' &&
|
||||
(github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'push' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
github.event.pull_request != null &&
|
||||
(contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) ||
|
||||
|
|
@ -588,11 +611,12 @@ jobs:
|
|||
|
||||
mcp_apps:
|
||||
name: MCP Apps (browser and server)
|
||||
# Always run the dedicated fixture on eligible PRs, schedule, and manual runs. The regular
|
||||
# mock shards skip it unless E2E_MCP_APPS=true; codegraph gating must not omit this lane.
|
||||
# Always run the dedicated fixture on eligible PRs, dev pushes, schedule, and manual runs. The
|
||||
# regular mock shards skip it unless E2E_MCP_APPS=true; codegraph gating must not omit this lane.
|
||||
if: >-
|
||||
github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'push' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
github.event.pull_request != null &&
|
||||
(contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) ||
|
||||
|
|
@ -675,6 +699,7 @@ jobs:
|
|||
!cancelled() &&
|
||||
(github.event_name == 'schedule' ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'push' ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
github.event.pull_request != null &&
|
||||
(contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue