Skip to content

main is green again: anon-auth fixture resets the token memo to its dict shape - #107824

Merged
teknium1 merged 1 commit into
mainfrom
fix/anon-auth-memo-fixture-shape
Sep 11, 2026
Merged

teknium1 merged 1 commit into
mainfrom
fix/anon-auth-memo-fixture-shape

Conversation

@teknium1

Copy link
Copy Markdown
Collaborator

tests/hermes_cli/test_anon_auth_core.py is green again on main (2 tests were red: test_tool_gateway_token_path_reexchanges, test_connector_path_replaces_a_dead_credential_once).

Two PRs crossed: #107611 changed hermes_cli.auth._RESOLVE_TOKEN_CACHE from Optional[tuple] to a per-profile dict; #107697, merged an hour later from an older base, added a fixture resetting it to None. resolve_nous_access_token raised AttributeError: 'NoneType' object has no attribute 'get', read_nous_access_token swallowed it and handed back the expired token.

Test-only, one token: reset to {} (matching test_resolve_token_memo.py and test_nous_portal_staging_allowlist.py). No production change.

Check Before After
test_anon_auth_core.py + test_resolve_token_memo.py 2 failed 38 passed

Surfaced as an unrelated red on #107815.

…n-auth fixture

#107611 (173105c) made _RESOLVE_TOKEN_CACHE a per-profile dict; #107697
(4bdd64b), merged from an older base, added a fixture resetting it to None.
resolve_nous_access_token then raised AttributeError on .get, read_nous_access_token
swallowed it and returned the expired token, and two tests in
test_anon_auth_core.py went red on main.
@github-actions

github-actions Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on fd9edee — test(auth): reset the resolve-token memo to its dict shape i

⚠️ Warnings

OSV vulnerability scan · View job

80 known vulnerabilities found in pinned dependencies.

How to fix:

Review the findings in the Security tab. Update the affected dependencies if a patched version is available.


debug info

CI timings

CI timings · View report · View job

Wall time 5m vs 4m49s (+3.8%). 10 job(s) slower, 4 faster,

  • Python tests / Run tests: -49.0s
  • OS-specific tests / macOS-only tests: +11.0s
  • OS-specific tests / Windows-only tests: +7.0s
  • Python tests / e2e: +5.0s
  • Python lints / Windows footguns (blocking): +5.0s

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard area/auth Authentication, OAuth, credential pools duplicate This issue or pull request already exists labels Sep 11, 2026
@alt-glitch

Copy link
Copy Markdown
Contributor

This was generated by AI during triage.

Duplicate of #107822 — same author, same two-line fixture change (_RESOLVE_TOKEN_CACHE reset to {}), opened 30 seconds apart. One of the two should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists 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