Test selection shadow
After every full run of api-tests-master, e2e-tests-master, api-tests-production, e2e-tests-production, each test is asked: since it last passed on the same branch, did anything it depends on change? This page shows how many tests that selection would have run and three ways of judging it: did it catch every test that newly failed, did it cover the functionality the change reached, and did any route answer differently in a test it would have skipped. An LLM reviews each selection beside the rules; its additions and removals are scored, not applied. Jenkins still runs everything.
OBS_TEST_SELECT_SHADOW on the ingester.Misses
Tests that passed at their verification point, failed in this run, and would not have been selected. A miss the triage agent calls flaky or environment would not have been caught by any selection; a miss of a real change means a link is missing between that test and what changed.
| Run | Test | Calls | Triage verdict |
|---|---|---|---|
| api-tests-master #591 | automation/tests/docsvc/test_edl_tracking.py::TestEDLTracking::test_04_no_metadata_inheritance verified at #590 |
docsvc | flaky (history) |
| api-tests-master #591 | automation/tests/workplansvc/test_work_plan_task.py::TestWorkPlanTaskRejectAndDelete::test_reject_review_task_records_outcome_and_skips_downstream verified at #590 |
workplansvc | flaky (history) |
| api-tests-master #591 | automation/tests/workplansvc/test_work_plan_task.py::TestWorkPlanTaskRejectAndDelete::test_delete_last_todo_on_checklist_task_pins_backend_behavior verified at #590 |
workplansvc | flaky (history) |
Routes that answered differently in tests the selection would skip
The test may still have passed, but the route gave it a different kind of answer than at the test's last pass (a 2xx became a 5xx, a 404 became a 409). That is functionality the change touched that the selection would not have run.
| Run | Test file | Route | Was | Now |
|---|---|---|---|---|
| api-tests-master #591 | automation/tests/docsvc/test_document_share_grants.py | PATCH /api/documents/v2 | 2xx, 5xx | 2xx |
| api-tests-master #591 | automation/tests/docsvc/test_document_tmf_promotion.py | PATCH /api/documents/v2 | 2xx, 5xx | 2xx |
| api-tests-master #591 | automation/tests/docsvc/test_update_association.py | PATCH /api/documents/v2 | 2xx, 5xx | 2xx |
| api-tests-master #591 | automation/tests/onboardingsvc/organization/smo/test_create_smo.py | DELETE /api/organizations/{}/members/{} | 2xx, 403 | 2xx, 403, 5xx |
Changed, and no test calls them
Routes whose code changed in the scored runs that neither suite calls. No selection can check these; each is a candidate for the test agent.
| Route | Runs it changed in |
|---|---|
| GET /api/monitor/controls/{} | 5 |
| GET /api/monitor/sidepanel/{} | 5 |
| DELETE /api/docQC/study/{}/plans/{} | 4 |
| DELETE /api/documents | 4 |
| DELETE /api/documents/archives | 4 |
| DELETE /api/documents/folders/manager/{} | 4 |
| DELETE /api/documents/folders/subArtifacts/{} | 4 |
| DELETE /api/documents/notes/{} | 4 |
| DELETE /api/documents/{}/comments/{} | 4 |
| DELETE /api/documents/{}/query/{} | 4 |
| DELETE /api/events/{}/placeholders/matches | 4 |
| DELETE /api/events/{}/placeholders/{}/matches | 4 |
| DELETE /api/organizations/{} | 4 |
| DELETE /api/partners/{} | 4 |
| DELETE /api/scale/organizations/{}/purge | 4 |
| DELETE /api/sites/{}/locations/{} | 4 |
| DELETE /api/trialexec/careplan/{}/ae/{}/activity/question/flag/{} | 4 |
| DELETE /api/trialexec/careplan/{}/visit/{}/activity/question/flag/{} | 4 |
| DELETE /api/workflow | 4 |
| DELETE /api/workflow/study | 4 |
| GET /api/docQC/study/{}/plans | 4 |
| GET /api/docQC/study/{}/plans/{} | 4 |
| GET /api/documents/notes | 4 |
| GET /api/documents/notes/{} | 4 |
| GET /api/documents/{}/comments | 4 |
| GET /api/documents/{}/query/{} | 4 |
| GET /api/monitor/studysitepanel/{}/{} | 4 |
| GET /api/scale/organizations/{}/purge | 4 |
| DELETE /api/documents/collections/{} | 3 |
| DELETE /api/documents/collections/{}/documents | 3 |
| DELETE /api/documents/documentAttributes/{}/{} | 3 |
| DELETE /api/documents/folders/{}/content | 3 |
| DELETE /api/documents/org/reports/{} | 3 |
| DELETE /api/documents/study/{}/reports/{} | 3 |
| DELETE /api/documents/{}/enhance/fields/{} | 3 |
| DELETE /api/documents/{}/enhance/signers/{} | 3 |
| DELETE /api/fileassets/{} | 3 |
| DELETE /api/studies/{}/notification-digests/{} | 3 |
| DELETE /api/studies/{}/notifications/{} | 3 |
| DELETE /api/studio/activities/{} | 3 |
Why tests were selected, and where it runs more than it needs
Over the scored runs, how many tests each reason selected, and how many that reason alone selected: the tests a sharper version of that reason could leave out. A reason that selects many tests on its own is the place to refine before any run is cut short.
| Reason | Tests selected | Selected by this reason alone | Share of all tests run |
|---|---|---|---|
| the code behind a route it calls changed | 2,760 | 17 | 0% |
| suite configuration every test loads changed | 2,699 | 0 | 0% |
| a suite file it imports changed | 2,699 | 0 | 0% |
| a service it calls changed in code the route map cannot see (Python, go.mod, code no route reaches) | 1,446 | 273 | 6% |
| a service it calls consumes a Pub/Sub topic whose publisher changed | 586 | 0 | 0% |
| the test's own file changed | 362 | 0 | 0% |
| never passed on this branch in the window | 293 | 293 | 6% |
| what changed could not be read | 2 | 2 | 0% |
Shared code that marked services as changed
The folders whose changes made the most deployments count as changed. A folder that marks many services at once (tildaobj, common/authlib) selects most of the suite for any edit; tracking which of its definitions each service uses would narrow that.
| Folder | Services it marked | Which |
|---|---|---|
| api/auth.go | 15 | advpsvc, dashql, docsvc, dslsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, studiosvc, tusker, workplansvc |
| common/authzlib | 15 | advpsvc, dashql, docsvc, dslsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, studiosvc, tusker, workplansvc |
| common/changeLog | 15 | advpsvc, dashql, docsvc, dslsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, studiosvc, tusker, workplansvc |
| common/notiflib | 15 | advpsvc, dashql, docsvc, dslsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, studiosvc, tusker, workplansvc |
| tildaobj/output_obj_defs.go | 15 | advpsvc, dashql, dashrsvc, docsvc, dslsvc, enrollsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, studiosvc, tusker, workplansvc |
| common/careplanlib | 11 | docsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, tusker, workplansvc |
| tildaobj/exec_obj_defs.go | 8 | advpsvc, dashql, dashrsvc, dslsvc, patientsvc, schedsvc, studiosvc, tusker |
| common/doclib | 8 | docsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, regsvc, workplansvc |
| common/params | 8 | advpsvc, dashql, dashrsvc, dslsvc, patientsvc, schedsvc, studiosvc, tusker |
| tildaobj/model.go | 8 | advpsvc, dashql, dashrsvc, dslsvc, patientsvc, schedsvc, tusker, workplansvc |
| common/edlaudit | 8 | docsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, regsvc, workplansvc |
| tildaobj/pubsub_defs.go | 7 | advpsvc, dashql, dashrsvc, dslsvc, patientsvc, schedsvc, tusker |
| tildaobj/agent_actor.go | 6 | dashql, dashrsvc, dslsvc, patientsvc, schedsvc, tusker |
| tildaobj/doc_obj_defs.go | 6 | dashql, dashrsvc, dslsvc, patientsvc, schedsvc, tusker |
| tildaobj/edl_obj_defs.go | 6 | dashql, dashrsvc, dslsvc, patientsvc, schedsvc, tusker |
Runs
| Run | Branch | Would run | Newly failed | Caught | Missed |
|---|---|---|---|---|---|
| api-tests-master #599 6d ago |
master | 1069/1069 | 7 | 7 | 0 |
| api-tests-master #597 8d ago |
master | 1012/1012 | 27 | 27 | 0 |
| api-tests-master #593 11d ago |
master | 908/908 | 11 | 11 | 0 |
| api-tests-master #592 12d ago |
master | 800/800 | 3 | 3 | 0 |
| api-tests-master #591 13d ago |
master | 19/799 | 4 | 1 | 3 |