fix(tests): bump the APIKEY_PROVIDERS tripwire to 241 (Agnes AI China) - #13905
Merged
diegosouzapw merged 1 commit intoSep 16, 2026
Merged
Conversation
`APIKEY_PROVIDERS merges the 6 family files into 240 entries` fails on the release tip, taking a unit-test shard red on every open PR. Agnes AI China (#13399, cdcde97) added one `apikey/regional` entry, so the real count is 241 — confirmed at runtime: `Object.keys(APIKEY_PROVIDERS).length` is 241 and includes `agnes-cn`. The hardcoded number is deliberate, not an oversight: the test is a tripwire for silent loss or duplication across the six family files, and each bump is documented in the header with the provider and the PR that caused it. Kept that convention rather than deriving the count at runtime, which would make the test assert nothing.
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
diegosouzapw#13905) `APIKEY_PROVIDERS merges the 6 family files into 240 entries` fails on the release tip, taking a unit-test shard red on every open PR. Agnes AI China (diegosouzapw#13399, 517c4cf) added one `apikey/regional` entry, so the real count is 241 — confirmed at runtime: `Object.keys(APIKEY_PROVIDERS).length` is 241 and includes `agnes-cn`. The hardcoded number is deliberate, not an oversight: the test is a tripwire for silent loss or duplication across the six family files, and each bump is documented in the header with the provider and the PR that caused it. Kept that convention rather than deriving the count at runtime, which would make the test assert nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
APIKEY_PROVIDERS merges the 6 family files into 240 entries (no loss / no dup)fails on therelease tip, which takes a unit-test shard red on every open PR against
release/v3.8.51.Cause: Agnes AI China (#13399,
cdcde97c7) added oneapikey/regionalentry. The real countis 241 — confirmed at runtime:
Why not make it dynamic: the hardcoded number is the point. The test is a tripwire against
silent loss or duplication across the six family files; deriving the count at runtime would make it
assert nothing. The header documents every bump with the provider and the PR that caused it
(
… SeekAi … 238,… GreenPT and EURouter … 240), so this follows the same convention with a newline for Agnes AI.
Local: 4/4 in
tests/unit/providers-constants-split.test.ts.Not covered by #13880 (@HouMinXi), which heals the agent-skills sync and the reasoning-effort test —
this is a third, independent base red in the same wave.