mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-31 22:14:25 +01:00
test: register the train-42 replies fixture; keep a run URL and a low-entropy fake key out of the secrets scan
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
93085fcb55
commit
63475440e6
3 files changed
+3
-2
No files matched your search
@@ -280,7 +280,7 @@ describe('cookie workflow judge input', () => {
|
|||||||
replies: Array<{ id: string; model: string; stop_reason: string; text: string }> };
|
replies: Array<{ id: string; model: string; stop_reason: string; text: string }> };
|
||||||
expect(replies.map(reply => reply.id)).toEqual(['msg_011CgVnRtVj5vyLvb56m6KJH', 'msg_011CgVne5GStZ6f9pRoCvgWE']);
|
expect(replies.map(reply => reply.id)).toEqual(['msg_011CgVnRtVj5vyLvb56m6KJH', 'msg_011CgVne5GStZ6f9pRoCvgWE']);
|
||||||
const original = process.env.ANTHROPIC_API_KEY;
|
const original = process.env.ANTHROPIC_API_KEY;
|
||||||
process.env.ANTHROPIC_API_KEY = 'test-only-key';
|
process.env.ANTHROPIC_API_KEY = 'fake';
|
||||||
const create = spyOn(Messages.prototype, 'create');
|
const create = spyOn(Messages.prototype, 'create');
|
||||||
try {
|
try {
|
||||||
for (const reply of replies) {
|
for (const reply of replies) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"scope": "cookie workflow judge transport only",
|
"scope": "cookie workflow judge transport only",
|
||||||
"recorded_result": "runs/comparison-1.result.json",
|
"recorded_result": "runs/comparison-1.result.json",
|
||||||
"train_red": {
|
"train_red": {
|
||||||
"run": 40809051510,
|
"gate_run": "https://github.com/garrytan/gstack/actions/runs/40809051510",
|
||||||
"responses": [
|
"responses": [
|
||||||
"msg_011CgVnRtVj5vyLvb56m6KJH",
|
"msg_011CgVnRtVj5vyLvb56m6KJH",
|
||||||
"msg_011CgVne5GStZ6f9pRoCvgWE"
|
"msg_011CgVne5GStZ6f9pRoCvgWE"
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ export const FREE_FIXTURES: Readonly<Record<string, readonly string[]>> = {
|
|||||||
'test/fixtures/context-bill/**': ['test/context-bill.test.ts', 'test/context-budget-ratchet.test.ts'],
|
'test/fixtures/context-bill/**': ['test/context-bill.test.ts', 'test/context-budget-ratchet.test.ts'],
|
||||||
'test/fixtures/context-budget.json': ['test/helpers/capture-context-budget.ts', 'test/test-value-bar.test.ts'],
|
'test/fixtures/context-budget.json': ['test/helpers/capture-context-budget.ts', 'test/test-value-bar.test.ts'],
|
||||||
'test/fixtures/context-restore-fragment-match-captures.json': ['test/context-restore-fragment-verdict.test.ts'],
|
'test/fixtures/context-restore-fragment-match-captures.json': ['test/context-restore-fragment-verdict.test.ts'],
|
||||||
|
'test/fixtures/cookie-judge-train42-replies.json': ['test/cookie-workflow-judge-input.test.ts'],
|
||||||
'test/fixtures/coverage-audit-cd-chain.json': ['test/coverage-audit-evidence.test.ts'],
|
'test/fixtures/coverage-audit-cd-chain.json': ['test/coverage-audit-evidence.test.ts'],
|
||||||
'test/fixtures/coverage-audit-parallel-column.json': ['test/coverage-audit-evidence.test.ts'],
|
'test/fixtures/coverage-audit-parallel-column.json': ['test/coverage-audit-evidence.test.ts'],
|
||||||
'test/fixtures/coverage-audit-separator-collision.json': ['test/coverage-audit-evidence.test.ts'],
|
'test/fixtures/coverage-audit-separator-collision.json': ['test/coverage-audit-evidence.test.ts'],
|
||||||
|
|||||||
Reference in new issue
Block a user