Skip to content

test(security): the onboarding auth regression test leaves a stub in sys.modules, which fails the run #20456

Closed as not planned

Description

@mrveiss

autobot-backend/tests/security/test_onboarding_auth_regression.py leaves onboarding.doctor in sys.modules, and the file isn't on repo_tests/sys_modules_leak_baseline.txt. So a pytest run that includes it fails with exit code 1 even though every test passed.

Seen running llc/tests tests/security together on #20426's merge with main at 45f10d1773: 2913 passed, 2 skipped, exit 1, printed by the sys.modules leak guard. That file isn't in #20426. Whether a CI shard hits it depends on what the shard collects, which isn't established.

Acceptance criteria

  • The file installs and removes its stub in one try/finally, so the guard stays quiet with this selection (test by running it).

Activity

  1. added
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Nov 1, 2026
  2. github-actions commented on Nov 1, 2026

    @github-actions
    Contributor

    needs-structure: this issue is missing:

    • a native parent issue (add one, or write Parent: #N in the body), unless this is an umbrella with sub-issues

    The label clears on the next issue event once all three are present (#19522).

  3. mrveiss commented on Nov 1, 2026

    @mrveiss
    OwnerAuthor

    Duplicate of #18181, which holds this leak.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't workingneeds-structureMissing goal milestone, matching phase label or native parent (#19522)phase:M2.1Company and company boundariespriority: low

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions