Fix stale auth test blocking CI pipeline #66
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lineage
plan-2026-03-08-tryout-prep→ Phase 4 → Phase 4m (CI fix)Repo
forgejo_admin/basketball-apiUser Story
As a developer
I want CI to pass on main branch pushes
So that the Image Updater can detect new images and ArgoCD deploys automatically
Context
When the admin dashboard was made public for tryout day (commit
7b3e455), the auth testTestAdminDashboard::test_requires_authwas not updated. It still expects 401/403 but gets 200 since the endpoint is now public (intentionally).This has broken every pipeline since pipeline #42 (~40 pipelines). Because the
teststep fails, thebuild-and-pushstep never runs, so no new images reach Harbor, so ArgoCD Image Updater has nothing to update, so the cluster stays on the old image.Combined with the Woodpecker log streaming bug (empty logs), this was invisible.
136 tests pass. 1 stale test blocks everything.
File Targets
Files the agent should modify:
tests/test_tryouts.py— updateTestAdminDashboard::test_requires_authto expect 200 (endpoint is now intentionally public/unlisted, no auth required)Files the agent should NOT touch:
src/basketball_api/routes/tryouts.py— the endpoint behavior is correct, the test is wrongAcceptance Criteria
test_requires_authupdated to match current behavior (admin dashboard is public)pytestexits 0)ruff check .passesruff format --check .passesTest Expectations
pytest tests/test_tryouts.py -k test_requires_auth -vpytest(full suite, all 137 must pass)Constraints
test_admin_dashboard_is_publicortest_no_auth_required.Checklist
Related
project-westside-basketball