Fix 12 failing board_sync tests blocking CI deployment #233
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/pal-e-api#233
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?
Type
Feature
Lineage
Repo
pal-e-api
User Story
As the superuser, I need pal-e-api CI green so the NoteType + validation column code deploys. 12 test failures in test_board_sync.py are blocking the update-kustomize-tag step, keeping the pod on an old image.
Context
Pipeline #61 shows: 670 passed, 12 failed. All failures in
tests/test_board_sync.py. The sync_board refactor (PR #210) changed phase discovery to use project notes instead of board items, but tests still expect old behavior.Failing tests (2 groups):
test_sync_creates_phase_items,test_sync_maps_status_to_column,test_sync_is_idempotent,test_sync_updates_changed_status,test_sync_deferred_maps_to_done,test_sync_null_status_maps_to_backlog,test_sync_ignores_non_phase_children,test_sync_sets_title_from_phase_notetest_update_phase_status_updates_board_item,test_update_phase_status_to_completed,test_update_phase_status_to_deferred,test_update_phase_on_multiple_boardsError patterns:
assert 0 == 3,KeyError: 'phase-sync-1',IndexError: list index out of rangeScope
Fix test_board_sync.py to match the new sync_board implementation from PR #210. The tests need to set up project notes with phase children (the new discovery mechanism) instead of relying on board items directly.
File Targets
tests/test_board_sync.py— update test fixtures and assertionsConstraints
pytest tests/test_board_sync.py -vto verify the 12 tests passAcceptance Criteria
Checklist
Test Expectations
pytest tests/test_board_sync.py -v— 12/12 passpytest(full suite) — 682/682 passRelated