Skip to content

test: align two tests left red by merged PRs (#4335 db-rules count + #4271 arena metadata) - #4346

Merged
diegosouzapw merged 2 commits into
release/v3.8.30from
fix/db-rules-count-28
Jun 20, 2026
Merged

diegosouzapw merged 2 commits into
release/v3.8.30from
fix/db-rules-count-28

Conversation

@diegosouzapw

@diegosouzapw diegosouzapw commented Jun 20, 2026 •

Copy link
Copy Markdown
Owner

Two test-only alignments for unit tests left red on release/v3.8.30 by merged PRs that changed source/config without updating the matching assertion. Both only surface under the full unit suite (__RUN_ALL__), so the narrow Fast-QG of the merging PRs didn't catch them.

1. db-rules audited-module count (from #4335)

#4335 added apiKeyColumnFallbacks + apiKeyUsageLimitFields to INTENTIONALLY_INTERNAL (both db-internal, imported only by db/apiKeys.ts) but didn't update check-db-rules-classification.test.ts, which hard-codes the audited list and asserts exactly 26. Now 28 → red. Added the two modules to expected and bumped the count to 28.

2. lmarena split-cookie metadata (from #4271)

#4271/#4331 updated webSessionCredentials.ts for lmarena's split auth cookie (new placeholder + arena-auth-prod-v1.0/.1 storageKeys) but didn't update web-session-credentials.test.ts, which still asserted the old placeholder + 3-key array. Aligned the expected metadata to the merged source.

Validation (Hard Rule #18)

Both were red → green:

  • check-db-rules-classification.test.ts: 5/5.
  • web-session-credentials.test.ts: 4/4.

Test-only; no production code change.

#4335 added apiKeyColumnFallbacks + apiKeyUsageLimitFields to INTENTIONALLY_INTERNAL
(both db-internal, consumed only by db/apiKeys.ts) but did not update the parity test
in check-db-rules-classification.test.ts, which still expected exactly 26 audited
modules — leaving it red on release/v3.8.30 (28 != 26). Add the two modules to the
expected list and bump the count to 28. Test-only alignment; no production change.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

…4271)

#4271/#4331 updated webSessionCredentials.ts for lmarena's split auth cookie —
new placeholder text and storageKeys arena-auth-prod-v1.0/.1 — but did not update
web-session-credentials.test.ts, which still asserted the old placeholder + 3-key
storageKeys. Align the expected metadata to the merged source; test-only, no prod change.
@diegosouzapw diegosouzapw changed the title test(db-rules): align audited-module count to 28 (apiKey db helpers from #4335) test: align two tests left red by merged PRs (#4335 db-rules count + #4271 arena metadata) Jun 20, 2026
@diegosouzapw
diegosouzapw merged commit 832fde5 into release/v3.8.30 Jun 20, 2026
4 checks passed
@diegosouzapw
diegosouzapw deleted the fix/db-rules-count-28 branch June 20, 2026 04:21
@diegosouzapw diegosouzapw mentioned this pull request Jun 20, 2026
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
…les count + diegosouzapw#4271 arena metadata) (diegosouzapw#4346)

* test(db-rules): align audited-module count to 28 (apiKey db helpers)

diegosouzapw#4335 added apiKeyColumnFallbacks + apiKeyUsageLimitFields to INTENTIONALLY_INTERNAL
(both db-internal, consumed only by db/apiKeys.ts) but did not update the parity test
in check-db-rules-classification.test.ts, which still expected exactly 26 audited
modules — leaving it red on release/v3.8.30 (28 != 26). Add the two modules to the
expected list and bump the count to 28. Test-only alignment; no production change.

* test(web-session): align lmarena metadata to the split-cookie source (diegosouzapw#4271)

diegosouzapw#4271/diegosouzapw#4331 updated webSessionCredentials.ts for lmarena's split auth cookie —
new placeholder text and storageKeys arena-auth-prod-v1.0/.1 — but did not update
web-session-credentials.test.ts, which still asserted the old placeholder + 3-key
storageKeys. Align the expected metadata to the merged source; test-only, no prod change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant