You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Mock Testing (Safe) workflow runs the inline-defined Python test script screen_lock_e2e_test.py (created at runtime in screen-lock-e2e-test.yml via heredoc). After the setuptools fix landed in PR #21835 (closes #21796), the script now boots successfully and runs all 6 mock tests. 5 pass; 1 fails:
The Security - Credential Protection test returns None (which falsy-checks as failure in the test runner). 5 passes + 1 failure → report.tests_failed > 0 → sys.exit(1) → workflow red.
The mock test method for Security - Credential Protection likely doesn't return TestResult(...) like its siblings — it just returns implicitly (None). The test runner correctly classifies None as a failure.
Look at the inline-heredoc'd script at .github/workflows/screen-lock-e2e-test.yml (the section starting around line 188 with cat > .github/workflows/scripts/screen_lock_e2e_test.py << 'EOFTEST'). Search for the credential-protection test method and ensure it returns a proper TestResult(passed=True/False, …).
Discovery context
Before PR #21835, this test never ran because the script crashed at boot with ModuleNotFoundError: No module named 'pkg_resources'. The setuptools fix in #21835 unblocked execution and exposed this latent bug. The credential-protection test has been broken since the workflow was authored; the boot crash was masking it.
Scope
Small fix — likely a 1–3 line change to the inline test script in screen-lock-e2e-test.yml to return a proper TestResult. Not blocking PR #21835 from merging since:
Symptom
The
Mock Testing (Safe)workflow runs the inline-defined Python test scriptscreen_lock_e2e_test.py(created at runtime inscreen-lock-e2e-test.ymlvia heredoc). After the setuptools fix landed in PR #21835 (closes #21796), the script now boots successfully and runs all 6 mock tests. 5 pass; 1 fails:The
Security - Credential Protectiontest returnsNone(which falsy-checks as failure in the test runner). 5 passes + 1 failure →report.tests_failed > 0→sys.exit(1)→ workflow red.Failing check
Mock Testing (Safe)(latest job 73092390027)Root cause hypothesis
The mock test method for
Security - Credential Protectionlikely doesn'treturn TestResult(...)like its siblings — it just returns implicitly (None). The test runner correctly classifiesNoneas a failure.Look at the inline-heredoc'd script at
.github/workflows/screen-lock-e2e-test.yml(the section starting around line 188 withcat > .github/workflows/scripts/screen_lock_e2e_test.py << 'EOFTEST'). Search for the credential-protection test method and ensure it returns a properTestResult(passed=True/False, …).Discovery context
Before PR #21835, this test never ran because the script crashed at boot with
ModuleNotFoundError: No module named 'pkg_resources'. The setuptools fix in #21835 unblocked execution and exposed this latent bug. The credential-protection test has been broken since the workflow was authored; the boot crash was masking it.Scope
Small fix — likely a 1–3 line change to the inline test script in
screen-lock-e2e-test.ymlto return a properTestResult. Not blocking PR #21835 from merging since:.env.examplegap)Suggested labels
ci/cd,ci-failure,bug(the test code returns None instead of a TestResult)