Skip to content

bug: test suite drifted behind merged changes — scheduler fixture, dormant-alert seam, sanitizer env leak, stale api assertions #3442

Closed

Description

@vybe

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_tests passes (243)
  • test_dormant_transition_emits_operator_queue_alert asserts the platform-alert seam and passes
  • test_1661_sanitizer_linear.py passes with TRINITY_TEST_PASSWORD=password in the environment
  • test_ip_rate_limit_fix.py passes (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.py instead of a hand copy is the durable fix.
  • tests/run-full.sh writes its api summary row as Binary file …/api.log matches when the log contains non-text bytes (grep without -a), and classify-skips trips on the same log.
  • pytest-randomly is installed in the local test venv although tests/requirements-test.txt excludes it; with -q the seed is not recorded, so a randomized full-run order cannot be replayed.
  • tests/security/test_agent_auth_isolation.py needs curlimages/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

  1. added
    priority-p2
    type-bug
    theme-devex
    status-ready
    on Oct 9, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Oct 9, 2026
  3. added
    status-in-dev
    and removed
    status-in-progress
    on Oct 9, 2026
  4. removed
    status-in-dev
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-p2theme-devextype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions