Bug Report BR-058: Missing Tests CI Workflow and Stale Pytest Failures
Bug ID: BR-058
Task ID: E7:S06:T08 (audit finding)
Priority: MEDIUM
Severity: MEDIUM (CI integration dead; local test signal degraded)
Status: OPEN
Created: 2026-03-25
Classification: CI/CD + test maintenance
Bug Summary
Update (2026-03-30, E5:S01:T69 / FR-064): update-badges.yml was removed from this repo (BYOB / orphan shields branch retirement). The former workflow_run: ["Tests"] dead trigger is therefore moot; only disabled intake reference files remain under .github/workflows/ aside from any future workflows.
Separately, pytest at repo root reports 7 failing tests (85 passed, 92 collected after fixing import drift in tests/test_validation.py). Failures indicate outdated tests relative to current CLI/backend APIs and environment-specific path expectations.
Problem Description
Observed Behavior
workflow_run.workflows: ["Tests"]inupdate-badges.ymlhas no matching workflow file.python3 -m pytest tests/(2026-03-25): 7 failures:tests/test_backends.py—PackageManagerBackendis abstract; tests instantiate it directly (3 failures).tests/test_integration.py—MockBackend()missing requirednameargument.tests/test_utils.py—get_project_rootresolves via/private/var/...on macOS while tests compare to/var/...(2 failures).tests/workflow-mgmt/test_implementation_cycle_workflow.py—test_icw_workflow_customizationexpects merged YAML to retainphaseskey; merge result differs.
Impact
- No automated pytest on push/PR for this repo.
- Badge updates tied to
Testscompletion are effectively dead code until aTestsworkflow exists or the trigger is removed/retargeted. - Contributors cannot rely on a green
pytestrun without addressing the above.
Proposed Solutions
- Add
.github/workflows/tests.yml(or rename existing) withname: Testsrunningpip install -e ".[dev]"/tests/requirements.txtandpytest, onpull_requestandpushto main/epic branches; or remove/rewrite theworkflow_runblock inupdate-badges.ymlif tests are intentionally not automated yet. - Update failing tests to match current APIs (
NpmBackend/PipBackendvs abstract base,MockBackendsignature,Path.resolve()in assertions, ICW YAML merge expectations).
Related Work
-
Workflow:
update-badges.ymlwas removed from this repo (see Bug Summary); historical file: update-badges.yml (last known commit search)