mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 15:02:02 +00:00
🧑🍳 ci: Provision Redis Tools for Quality Reports (#18172)
Co-authored-by: Lia <lia@librechat.ai>
This commit is contained in:
parent
461a4c2c52
commit
1da68ffa4c
2 changed files with 29 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ interface Step {
|
|||
with?: Record<string, string | number | boolean>;
|
||||
env?: Record<string, string>;
|
||||
'working-directory'?: string;
|
||||
'timeout-minutes'?: number;
|
||||
}
|
||||
interface Job {
|
||||
env?: Record<string, string>;
|
||||
|
|
@ -180,6 +181,27 @@ test('PR updates retain PostgreSQL contracts without starting source quality rep
|
|||
assert.equal(report.steps[prewarm].with?.['working-directory'], 'source');
|
||||
});
|
||||
|
||||
test('API risk coverage provisions pinned host Redis before executing source tests', () => {
|
||||
const provision = report.steps.findIndex(
|
||||
({ uses }) => uses === './tooling/.github/actions/redis-binaries',
|
||||
);
|
||||
const node = report.steps.findIndex(({ uses }) => uses === 'actions/setup-node@v5');
|
||||
const tooling = report.steps.findIndex(({ name }) => name === 'Check out quality tooling');
|
||||
assert.ok(provision > node && provision > tooling, 'trusted provisioning needs Node and tooling');
|
||||
assert.ok(provision < report.steps.indexOf(runner), 'test fixtures need host Redis on PATH');
|
||||
assert.equal(
|
||||
report.steps[provision].if,
|
||||
"matrix.workspace == 'api' && matrix.task.check == 'risk'",
|
||||
);
|
||||
assert.equal(report.steps[provision]['timeout-minutes'], 8);
|
||||
assert.ok(
|
||||
workflow.jobs.verify.steps.some(
|
||||
({ run }) => run === 'node --test .github/actions/redis-binaries/provision.test.mjs',
|
||||
),
|
||||
);
|
||||
assert.ok(workflow.on.pull_request?.paths.includes('.github/actions/redis-binaries/**'));
|
||||
});
|
||||
|
||||
test('comment commands from humans and bots reach trusted admission before report jobs', () => {
|
||||
const request = workflow.jobs.request;
|
||||
assert.equal(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue