Skip to content

test(gateway): use a 16+ char API_SERVER_KEY in the explicit-disable env test - #70273

Closed
teknium1 wants to merge 1 commit into
mainfrom
fix/test-config-api-server-key-strength
Closed

test(gateway): use a 16+ char API_SERVER_KEY in the explicit-disable env test#70273
teknium1 wants to merge 1 commit into
mainfrom
fix/test-config-api-server-key-strength

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Fixes the test failure currently red on main and failing CI slice 4/8 on every open PR: test_env_key_does_not_reenable_explicitly_disabled_api_server uses an 11-char API_SERVER_KEY, but 9e4b898 (merged this morning) added a load-time strength gate (has_usable_secret, min_length=16) to the api_server env branch — so the branch the test pins is now skipped entirely and its extra["key"] assertion fails.

Classic two-green-PRs collision: c7fd3eb's test and 9e4b898's gate each passed CI independently; the semantic conflict only manifests merged.

Changes

  • tests/gateway/test_config.py: use a 16+ char key so the test exercises the branch it was written to pin; comment explains the strength-gate dependency.

Validation

Before After
tests/gateway/test_config.py 148 pass / 1 fail (also fails on bare main) 149/149

Infographic

test-config-key-strength

…env test

9e4b898 added a load-time strength gate (has_usable_secret,
min_length=16) to the api_server env branch; the pre-existing test from
c7fd3eb used the 11-char 'secret-key', so the branch is now skipped
and the test fails on main and every open PR. Use a strong key so the
test exercises the branch it was written to pin.
@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery labels Jul 23, 2026
@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 3c9e2fd

all good!

@teknium1

Copy link
Copy Markdown
Contributor Author

Superseded by #70274, which landed the same fix (valid-length key) minutes ahead while this PR was in CI. Closing.

@teknium1 teknium1 closed this Jul 23, 2026
@teknium1
teknium1 deleted the fix/test-config-api-server-key-strength branch July 23, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants