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-production #621 | automation/tests/workplansvc/test_work_plan_config.py::TestWorkPlanConfig::test_create_config_async_returns_milestones_when_ready verified at #620 |
execsvc, onboardingsvc, virtual-assistant, workplansvc | unknown |
| api-tests-production #621 | automation/tests/workplansvc/test_work_plan_config.py::TestWorkPlanConfig::test_work_order_config_reads_back_over_v2_with_its_draft verified at #620 |
execsvc, onboardingsvc, virtual-assistant, workplansvc | unknown |
| api-tests-production #621 | automation/tests/workplansvc/test_work_plan_config.py::TestWorkPlanConfig::test_patch_config_then_update_instructions_then_add_user_task_item verified at #620 |
execsvc, onboardingsvc, virtual-assistant, workplansvc | unknown |
| api-tests-production #618 | automation/tests/virtualassistant/test_work_order_language.py::TestWorkOrderLanguage::test_inbound_reply_translation_trail_mail_and_org_toggle verified at #617 |
docsvc, onboardingsvc, virtual-assistant | flaky (history) |
| api-tests-production #617 | automation/tests/workplansvc/test_work_plan_task.py::TestWorkPlanTask::test_get_checklist_task_returns_todos verified at #616 |
workplansvc | flaky (history) |
| api-tests-production #617 | automation/tests/workplansvc/test_work_plan_task.py::TestWorkPlanTask::test_add_and_complete_todos_finishes_checklist_task verified at #616 |
workplansvc | flaky (history) |
| api-tests-production #617 | automation/tests/workplansvc/test_work_plan_task.py::TestWorkPlanTask::test_approve_review_task_completes_item verified at #616 |
workplansvc | flaky (history) |
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 |
|---|---|
| DELETE /api/documents | 4 |
| DELETE /api/documents/notes/{} | 4 |
| DELETE /api/documents/{}/comments/{} | 4 |
| DELETE /api/documents/{}/query/{} | 4 |
| GET /api/documents/notes | 4 |
| GET /api/documents/notes/{} | 4 |
| GET /api/documents/{}/comments | 4 |
| GET /api/documents/{}/query/{} | 4 |
| POST /api/documents/notes | 4 |
| POST /api/documents/promote-from-tdm | 4 |
| POST /api/documents/v2/{}/view | 4 |
| POST /api/documents/{}/comments | 4 |
| POST /api/documents/{}/comments/{} | 4 |
| POST /api/workflow | 4 |
| POST /api/workflow/adopt | 4 |
| PUT /api/documents/notes/{} | 4 |
| PUT /api/documents/{}/assign-to-ai | 4 |
| PUT /api/documents/{}/comments/{} | 4 |
| PUT /api/documents/{}/enhance/values | 4 |
| PUT /api/documents/{}/query/{} | 4 |
| PUT /api/documents/unarchive | 3 |
| POST /api/documents/instantiate | 3 |
| POST /api/documents/live | 3 |
| POST /api/documents/system-templates/{}/apply | 3 |
| DELETE /api/documents/collections/{}/documents | 1 |
| DELETE /api/studio/protocols/{}/autoqueries/{} | 1 |
| DELETE /api/trialexec/careplan/{}/ae/{}/activity/question/query/{} | 1 |
| GET /api/trialexec/v2/cache/graph/{} | 1 |
| GET /api/trialexec/v2/cache/protocol/{}/graphs | 1 |
| GET /api/trialexec/v2/cache/protocol/{}/metadata | 1 |
| GET /api/trialexec/v2/cache/protocol/{}/stats | 1 |
| GET /api/trialexec/v2/cache/stats | 1 |
| POST /api/documents/collections | 1 |
| POST /api/documents/collections/{}/documents | 1 |
| POST /api/documents/folders/content | 1 |
| POST /api/documents/folders/{}/content | 1 |
| POST /api/documents/{}/assignments | 1 |
| POST /api/studio/protocols/{}/autoqueries | 1 |
| POST /api/trialexec/study/{}/subject/edc/add | 1 |
| POST /api/trialexec/study/{}/subject/freeze | 1 |
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 | 1,025 | 935 | 17% |
| a service it calls changed in code the route map cannot see (Python, go.mod, code no route reaches) | 262 | 172 | 3% |
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 |
|---|---|---|
| tildaobj/output_obj_defs.go | 15 | advpsvc, dashql, dashrsvc, docsvc, dslsvc, enrollsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, studiosvc, tusker, workplansvc |
| tildaobj/exec_obj_defs.go | 11 | advpsvc, dashql, dashrsvc, docsvc, dslsvc, onboardingsvc, patientsvc, schedsvc, studiosvc, tusker, workplansvc |
| common/careplanlib | 11 | docsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, patientsvc, regsvc, schedsvc, tusker, workplansvc |
| tildaobj/agent_actor.go | 9 | dashql, dashrsvc, docsvc, dslsvc, onboardingsvc, patientsvc, schedsvc, tusker, workplansvc |
| tildaobj/studio_obj_defs.go | 8 | dashql, dashrsvc, docsvc, dslsvc, onboardingsvc, patientsvc, schedsvc, tusker |
| common/doclib | 8 | docsvc, enrollsvc, execsvc, finsvc, notifsvc, onboardingsvc, regsvc, workplansvc |
| data-science/packages/tilda-litellm | 7 | chat-agent, data-monitor, ontologysvc, rag-agent, rag-agent-worker, studioaisvc, virtual-assistant |
| tildaobj/pubsub_defs.go | 6 | advpsvc, dslsvc, patientsvc, schedsvc, studiosvc, tusker |
| common/execlib | 5 | enrollsvc, execsvc, finsvc, notifsvc, regsvc |
| common/graphcache | 3 | advpsvc, studiosvc, workplansvc |
| common/graphlib | 3 | advpsvc, studiosvc, workplansvc |
| common/hdmlib | 3 | docsvc, onboardingsvc, workplansvc |
| common/studiolib | 2 | advpsvc, studiosvc |
| analytics/catalog | 2 | dashql, dashrsvc |
| data-science/packages/tilda-ocr | 2 | ontologysvc, virtual-assistant |
Runs
| Run | Branch | Would run | Newly failed | Caught | Missed |
|---|---|---|---|---|---|
| api-tests-production #621 6d ago |
production | 24/780 | 3 | 0 | 3 |
| api-tests-production #620 7d ago |
production | 353/780 | 0 | 0 | 0 |
| api-tests-production #619 8d ago |
production | 343/780 | 0 | 0 | 0 |
| api-tests-production #618 10d ago |
production | 24/780 | 1 | 0 | 1 |
| api-tests-production #617 11d ago |
production | 355/780 | 3 | 0 | 3 |
| api-tests-production #616 12d ago |
production | 83/780 | 0 | 0 | 0 |
| api-tests-production #615 13d ago |
production | 15/780 | 0 | 0 | 0 |