fix(ci): workflow path verification, stale legacy path cleanup, integration smoke test#10
Open
amar-python wants to merge 1 commit into
Open
Conversation
…ration smoke test - Add tools/verify_workflow_paths.py: stdlib-only checker that parses .github/workflows/*.yml and fails if any run:/uses: reference points at a file or directory that no longer exists - Stage a 'validation' job in docs/ci/quality-gate.yml that runs the checker (maintainer must copy to .github/workflows/ — the CI bot has no 'workflows' permission) - Fix stale legacy root paths (tests/, build/, evals/) left behind by the backend/migration restructure in scripts/eval_list.py, eval_summary.py, eval_compare.py, run_qa.ps1, test.sh, test.ps1, preflight.sh, preflight.ps1 - Add backend/tests/integration/test_smoke.py asserting /api/health returns 200 OK
This was referenced Jul 16, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI & Infrastructure Stability (High Priority)
Based on
feature/schema-validation(PR #7) since that branch contains the restructuredbackend/layout these fixes target. Merging PR #7 first will bring these changes intomaincleanly.1. Workflow Path Verification
tools/verify_workflow_paths.py— stdlib-only checker that parses every.github/workflows/*.yml, extracts file/directory references fromrun:commands and localuses:actions, and exits non-zero if any reference no longer exists in the working tree. Prevents the "repo restructured but CI still points at old paths" failure class permanently.validationCI job staged indocs/ci/quality-gate.ymlthat runs the checker on every push/PR.workflowspermission, so the updated workflow is staged indocs/ci/quality-gate.yml(the repo's existing convention). Please copy it to.github/workflows/quality-gate.ymlwhen merging.2. Global Path Update (stale legacy roots →
backend/migration/…)Fixed all remaining references to the pre-restructure locations (
tests/,build/,evals/):scripts/eval_list.py,scripts/eval_summary.py,scripts/eval_compare.py—REPORTS_DIRpointed at the non-existent rootevals/reports/; nowbackend/migration/evals/reports/(matches whererunner.pyactually writes)scripts/run_qa.ps1— all pytest/coverage/lint targets updatedscripts/test.sh,scripts/test.ps1— layer 2/3 runner paths updatedpreflight.sh,preflight.ps1— project-root existence checks updated3. Integration Smoke Test
backend/tests/integration/test_smoke.py— assertsGET /api/healthreturns 200 OK (plus payload shape and root-route checks), marked@pytest.mark.integration, runs on the existing SQLite-backed pytest fixtures.Verification
python3 tools/verify_workflow_paths.py --verbose→ 8 references checked, all resolve ✔ (and correctly fails on a synthetic stale workflow)pytest backend/tests/→ 41 passed (38 existing + 3 new)bash -nclean on all touched shell scripts;preflight.shpasses its project-file checksChecklist