Repository navigation
Closed
Labels
Description
Summary
A full tests/run-full.sh against a freshly rebuilt local stack on 2026-10-09 came back FAILED in 7 of 10 tiers. Triage found one product bug (#3441); the rest are tests and fixtures that drifted behind merged product changes, or tests that depend on ambient state of the machine they run on. This issue tracks the drifted ones that are not already covered by #2420 and #3272.
The defects
| Tier | Symptom | Cause |
|---|---|---|
| scheduler | 70 of 243 fail: table schedule_executions has no column named chain_depth, then no such column: claim_token |
tests/scheduler_tests/conftest.py hand-mirrors the schedule_executions DDL and lags two columns the scheduler now reads/writes |
| integration | test_circuit_breaker.py::TestDormantState::test_dormant_transition_emits_operator_queue_alert — assert 0 == 1 |
The dormant alert moved to the platform-alert seam (platform_alerts.observe → create_platform_operator_queue_item, #3246); the test still asserts the old create_operator_queue_item writer |
| unit | 15 failures in test_1661_sanitizer_linear.py::TestChainedPairs, only when tests/setup-env.sh is sourced |
The agent sanitizer's stage 1 redacts exact values of sensitive-named env vars. setup-env.sh exports TRINITY_TEST_PASSWORD; when the admin password is the literal word password, the KEY in password=hunter2xyz is redacted before the KEY=value pass under test runs |
| api | 14 setup errors in test_ip_rate_limit_fix.py: cannot import name 'status' from 'fastapi' |
The file's minimal fastapi stub has no status; routers/public.py now imports services.rate_limiter, which needs it |
| api | test_operator_queue.py::test_respond_to_pending_item — 422 response_not_an_offered_option |
The test answers whatever item is pending with a hardcoded approve; an approval carrying its own options only accepts one of them |
| api | test_parallel_task.py::TestAsyncModeExecution (2) — status queued not in [running, success, failed] |
queued is the row's legitimate first state; an async task read one second after acceptance may not be claimed yet |
Acceptance Criteria
-
pytest tests/scheduler_testspasses (243) -
test_dormant_transition_emits_operator_queue_alertasserts the platform-alert seam and passes -
test_1661_sanitizer_linear.pypasses withTRINITY_TEST_PASSWORD=passwordin the environment -
test_ip_rate_limit_fix.pypasses (14) - The operator-queue respond tests answer with a decision the item offers
- The async-mode tests accept
queued
Technical Notes
Not in scope here, recorded so they are not lost:
- The scheduler fixture will drift again on the next column; building it from
src/backend/db/schema.pyinstead of a hand copy is the durable fix. tests/run-full.shwrites itsapisummary row asBinary file …/api.log matcheswhen the log contains non-text bytes (grepwithout-a), andclassify-skipstrips on the same log.pytest-randomlyis installed in the local test venv althoughtests/requirements-test.txtexcludes it; with-qthe seed is not recorded, so a randomized full-run order cannot be replayed.tests/security/test_agent_auth_isolation.pyneedscurlimages/curl:latest; when the image is absent and the host's Docker credential helper hangs, the tier times out rather than skipping with a named reason.
Activity
fix(tests): repair the tests and fixtures a full run-full.sh found dr…