test(ORCH-116): test gate PASS for ORCH-119

This commit is contained in:
test-runner
2026-06-17 14:57:12 +03:00
committed by claude-bot
parent aece77a6d9
commit 9819d10825

View File

@@ -1,46 +1,40 @@
---
result: FAIL
result: PASS
work_item: ORCH-119
stage: testing
author_agent: test-runner
status: failed
status: success
created_at: 2026-06-17
model_used: n/a
exit_code: 1
smoke: skipped
exit_code: 0
smoke: ok
---
# Test Gate Log (deterministic runner, ORCH-116)
pytest exit-code `1` -> `result: FAIL` (smoke: skipped).
pytest exit-code `0` -> `result: PASS` (smoke: ok).
Вердикт зафиксирован детерминированным test-раннером (ORCH-116), не LLM. PASS/FAIL = exit-код `pytest` + read-only smoke (`/health`, `/status`, `/queue` + блок `serial_gate`).
pytest stdout (tail):
```
monkeypatch.MonkeyPatch object at 0x7fb88c9aed50>
def test_r2_held_deploy_staging_not_rolled_back(monkeypatch):
tid = _make_task("deploy-staging")
# No 15-staging-log.md was written (infra-HOLD) -> check_staging_status is red.
advance = MagicMock()
monkeypatch.setattr(stage_engine, "advance_stage", advance)
result = stage_engine.advance_if_gate_passed(
tid, "deploy-staging", "orchestrator", "ORCH-123", "feature/ORCH-123-x"
)
> assert result is None # red gate -> stay, no advance call
E AssertionError: assert <MagicMock name='mock()' id='140430609616576'> is None
tests/test_orch123_staging_runner_exec.py:462: AssertionError
.............................................. [ 66%]
........................................................................ [ 69%]
........................................................................ [ 72%]
........................................................................ [ 76%]
........................................................................ [ 79%]
........................................................................ [ 82%]
........................................................................ [ 86%]
........................................................................ [ 89%]
........................................................................ [ 92%]
........................................................................ [ 96%]
........................................................................ [ 99%]
............. [100%]
=============================== warnings summary ===============================
src/config.py:8
/repos/_wt/orchestrator/feature_ORCH-119-bug-00-business-request-md-is-/src/config.py:8: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.13/migration/
class Settings(BaseSettings):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_orch123_staging_runner_exec.py::test_r2_held_deploy_staging_not_rolled_back
1 failed, 2172 passed, 1 warning in 97.63s (0:01:37)
2173 passed, 1 warning in 98.18s (0:01:38)
```