add model override vars to expected CI env vars
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
pullfrog[bot]
co-authored by
Cursor
parent
002f550e56
commit
796c56a0c2
+4
-2
@@ -58,10 +58,12 @@ const crossagentTests = getTestNamesFromDir("crossagent");
|
|||||||
const agnosticTests = getTestNamesFromDir("agnostic");
|
const agnosticTests = getTestNamesFromDir("agnostic");
|
||||||
const adhocTests = getTestNamesFromDir("adhoc");
|
const adhocTests = getTestNamesFromDir("adhoc");
|
||||||
|
|
||||||
// all API key names from all agents + GITHUB_TOKEN
|
// all API key names from all agents + GITHUB_TOKEN + model overrides
|
||||||
const expectedAgentEnvVars = [
|
const expectedAgentEnvVars = [
|
||||||
"GITHUB_TOKEN",
|
"GITHUB_TOKEN",
|
||||||
...new Set(Object.values(agentsManifest).flatMap((a) => a.apiKeyNames)),
|
...new Set(Object.values(agentsManifest).flatMap((a) => a.apiKeyNames)),
|
||||||
|
"GEMINI_MODEL",
|
||||||
|
"OPENCODE_MODEL",
|
||||||
].sort();
|
].sort();
|
||||||
|
|
||||||
// agnostic tests only run with claude
|
// agnostic tests only run with claude
|
||||||
@@ -111,7 +113,7 @@ describe("ci workflow consistency", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("env vars cover all agent API keys", () => {
|
it("env vars cover all agent API keys", () => {
|
||||||
expect(getEnvVarNames(rootJob)).toEqual(expect.arrayContaining(expectedAgentEnvVars));
|
expect(getEnvVarNames(rootJob)).toEqual(expectedAgentEnvVars);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("fail-fast is enabled in both", () => {
|
it("fail-fast is enabled in both", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user