mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 23:13:35 +00:00
🛶 fix: Preserve Canary Sync Resolutions (#16361)
Retain the tracked-file integration outcomes recorded by original canary sync PR #16361. No new implementation is introduced. Shared and ambiguous corrections are carried by the final sync-resolution commit so the resulting tracked tree equals frozen canaryf66ad88e1c. Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16361 Resolution-Sources:6d7ba72b89,241c692b63,6113242b7b,3c8a5703e7,a45be88578,3789cbf590,81e038972f,c505db2256,420760d8b2
This commit is contained in:
parent
e6d6092448
commit
9dc8db0ea8
47 changed files with 839 additions and 498 deletions
13
.github/scripts/playwright-matrix.test.mjs
vendored
13
.github/scripts/playwright-matrix.test.mjs
vendored
|
|
@ -100,6 +100,16 @@ test('nightly and default manual runs retain full-suite coverage on both stores'
|
|||
assertPartition(defaults[1], 'redis', 'full', 2);
|
||||
});
|
||||
|
||||
test('PR and nightly matrices preserve both registered-email change modes on one memory shard', () => {
|
||||
for (const matrix of [prMatrix, ...defaults]) {
|
||||
const emailLanes = matrix.include.filter((lane) => lane.email_change === 'true');
|
||||
assert.equal(emailLanes.length, 1);
|
||||
assert.equal(emailLanes[0].stream_store, 'memory');
|
||||
assert.match(emailLanes[0].shard, /^1\//);
|
||||
}
|
||||
assert.equal(shards.steps.filter((step) => step.if === "matrix.email_change == 'true'").length, 2);
|
||||
});
|
||||
|
||||
test('manual PR coverage opts into the PR fallback matrix without bypassing the PR author gate', () => {
|
||||
assert.deepEqual(workflow.on.workflow_dispatch.inputs.coverage.options, ['full', 'pr']);
|
||||
assert.match(
|
||||
|
|
@ -188,11 +198,12 @@ test('graduated spec skips keep the same pool across shards and remain opt-in',
|
|||
test('the required gate still waits for all shards and rejects failures without fighting cancellation', () => {
|
||||
const gate = workflow.jobs.e2e;
|
||||
assert.equal(gate.name, 'e2e');
|
||||
assert.deepEqual(gate.needs, ['codegraph_select', 'e2e_shards', 'mcp_tool_list_changed']);
|
||||
assert.deepEqual(gate.needs, ['codegraph_select', 'e2e_shards', 'mcp_tool_list_changed', 'mcp_apps']);
|
||||
assert.equal(shards.strategy['fail-fast'], false);
|
||||
assert.match(gate.if, /!cancelled\(\)/);
|
||||
assert.match(shards.if, /!cancelled\(\)/);
|
||||
assert.match(gate.steps[0].if, /needs\.e2e_shards\.result != 'success'/);
|
||||
assert.match(gate.steps[0].if, /needs\.mcp_apps\.result != 'success'/);
|
||||
assert.match(gate.steps[0].if, /needs\.mcp_tool_list_changed\.result != 'success'/);
|
||||
assert.match(gate.steps[0].if, /needs\.codegraph_select\.outputs\.mcp_run == 'false'/);
|
||||
assert.equal(gate.steps[0].run, 'exit 1');
|
||||
|
|
|
|||
8
.github/workflows/playwright-mock.yml
vendored
8
.github/workflows/playwright-mock.yml
vendored
|
|
@ -70,7 +70,7 @@ jobs:
|
|||
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
CHANGED: ${{ github.event.pull_request.changed_files }}
|
||||
E2E_SKIP_ARMED: ${{ vars.CODEGRAPH_E2E_SKIP }}
|
||||
FULL_INCLUDE: '{"include":[{"name":"memory, shard 1/3","stream_store":"memory","redis_image":"","suite":"full","shard":"1/3","artifact":"memory-1-of-3","email_change":"true"},{"name":"memory, shard 2/3","stream_store":"memory","redis_image":"","suite":"full","shard":"2/3","artifact":"memory-2-of-3"},{"name":"memory, shard 3/3","stream_store":"memory","redis_image":"","suite":"full","shard":"3/3","artifact":"memory-3-of-3"},{"name":"redis transport","stream_store":"redis","redis_image":"redis:7-alpine","suite":"transport","shard":"","artifact":"redis-transport"}]}'
|
||||
FULL_INCLUDE: '{"include":[{"name":"memory, shard 1/6","stream_store":"memory","redis_image":"","suite":"full","shard":"1/6","artifact":"memory-1-of-6","email_change":"true"},{"name":"memory, shard 2/6","stream_store":"memory","redis_image":"","suite":"full","shard":"2/6","artifact":"memory-2-of-6"},{"name":"memory, shard 3/6","stream_store":"memory","redis_image":"","suite":"full","shard":"3/6","artifact":"memory-3-of-6"},{"name":"memory, shard 4/6","stream_store":"memory","redis_image":"","suite":"full","shard":"4/6","artifact":"memory-4-of-6"},{"name":"memory, shard 5/6","stream_store":"memory","redis_image":"","suite":"full","shard":"5/6","artifact":"memory-5-of-6"},{"name":"memory, shard 6/6","stream_store":"memory","redis_image":"","suite":"full","shard":"6/6","artifact":"memory-6-of-6"},{"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"}]}'
|
||||
run: |
|
||||
set +e
|
||||
note() { echo "$1" >> "$GITHUB_STEP_SUMMARY"; }
|
||||
|
|
@ -177,8 +177,8 @@ jobs:
|
|||
${{
|
||||
(github.event_name == 'pull_request' && needs.codegraph_select.outputs.e2e_include != '' &&
|
||||
fromJSON(needs.codegraph_select.outputs.e2e_include)) ||
|
||||
(github.event_name == 'pull_request' &&
|
||||
fromJSON('{"include":[{"name":"memory, shard 1/3","stream_store":"memory","redis_image":"","suite":"full","shard":"1/3","artifact":"memory-1-of-3","email_change":"true"},{"name":"memory, shard 2/3","stream_store":"memory","redis_image":"","suite":"full","shard":"2/3","artifact":"memory-2-of-3"},{"name":"memory, shard 3/3","stream_store":"memory","redis_image":"","suite":"full","shard":"3/3","artifact":"memory-3-of-3"},{"name":"redis transport","stream_store":"redis","redis_image":"redis:7-alpine","suite":"transport","shard":"","artifact":"redis-transport"}]}')) ||
|
||||
((github.event_name == 'pull_request' || inputs.coverage == 'pr') &&
|
||||
fromJSON('{"include":[{"name":"memory, shard 1/6","stream_store":"memory","redis_image":"","suite":"full","shard":"1/6","artifact":"memory-1-of-6","email_change":"true"},{"name":"memory, shard 2/6","stream_store":"memory","redis_image":"","suite":"full","shard":"2/6","artifact":"memory-2-of-6"},{"name":"memory, shard 3/6","stream_store":"memory","redis_image":"","suite":"full","shard":"3/6","artifact":"memory-3-of-6"},{"name":"memory, shard 4/6","stream_store":"memory","redis_image":"","suite":"full","shard":"4/6","artifact":"memory-4-of-6"},{"name":"memory, shard 5/6","stream_store":"memory","redis_image":"","suite":"full","shard":"5/6","artifact":"memory-5-of-6"},{"name":"memory, shard 6/6","stream_store":"memory","redis_image":"","suite":"full","shard":"6/6","artifact":"memory-6-of-6"},{"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/2","stream_store":"memory","redis_image":"","suite":"full","shard":"1/2","artifact":"memory-1-of-2","email_change":"true"},{"name":"memory, shard 2/2","stream_store":"memory","redis_image":"","suite":"full","shard":"2/2","artifact":"memory-2-of-2"},{"name":"redis, shard 1/2","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"1/2","artifact":"redis-1-of-2"},{"name":"redis, shard 2/2","stream_store":"redis","redis_image":"redis:7-alpine","suite":"full","shard":"2/2","artifact":"redis-2-of-2"}]}')
|
||||
}}
|
||||
services:
|
||||
|
|
@ -639,7 +639,7 @@ jobs:
|
|||
# run superseded by `cancel-in-progress` has nothing to adjudicate. Under `always()` it was
|
||||
# still dispatched onto a fresh runner while every other job went `cancelled`, then read
|
||||
# `needs.e2e_shards.result == 'cancelled'` and exited 1 — so each superseded push left this
|
||||
# required check red instead of cancelled. Matches the two lanes it gates.
|
||||
# required check red instead of cancelled. Matches all three lanes it gates.
|
||||
if: >-
|
||||
!cancelled() &&
|
||||
(github.event_name == 'schedule' ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue