test(ci): 공급자 시험이 감독 시한 판정을 벽시계 대신 결과로 단언한다 #57
Open
donghyeon.kang
wants to merge 1 commits from
donghyeon.kang/test/provider-completion-deadline AGit into main
pull from: donghyeon.kang/test/provider-completion-deadline
merge into: :main
:main
:fix/r9-structure-locale
:fix/r9-adapter-carryover
:test/shared-build-lock-order
:ci/dependency-cache-same-filesystem
:ci/release-tag-for-a11y-review
:ci/merge-dependency-cache
:fix/test-timeouts-measured
:fix/feature-residue-word-boundary
:fix/provider-wait-stderr
:fix/provider-job-host-requirements
:fix/ungated-vitest-spec
:fix/a11y-evidence-routes
:fix/verify-parts-diagnostics
:claude/w2-fe-ci-perf-dce080
:fix/child-process-test-timeouts
:chore/layout-rules-r2-r5
:claude/fe-b-docs-korean-645f55
:chore/ci-merge-jobs
:chore/layout-3-merge
:claude/fe-c-harness-0ae061
:chore/layout-2-sample-removal
:chore/layout-1-cleanup
:docs/review-guide-pointer
:fix/maturity-review-2026-11-06
:fix/maturity-review-2026-11-05-b
:docs/improvement-manual
:fix/maturity-review-2026-11-05
:fix/session-subject-required
:fix/ui-design-audit-2026-11-01
:fix/maturity-review-2026-09-25
:lane/D
:lane/B
:fix/src-review-round3
:refactor/domain-scalable
:develop
:feature-frontend-optional-adapter-recipes
:feature-frontend-supply-chain-verification
:feature-frontend-test-registry-evidence-hardening
:frontend-test-registry-evidence-hardening
:feature-frontend-diagnostics-telemetry-runtime
:feature-frontend-i18n-message-formatting-contract
:feature-frontend-design-system-platform
:feature-frontend-form-page-platform
:feature-frontend-reference-feature-vertical-slice
:feature-frontend-routing-release-recovery-runtime
:feature-frontend-http-query-contract-execution
:feature-frontend-application-boundary-runtime
:feature-frontend-typescript-tooling-foundation
:feature-frontend-platform-capability-review
:feature-frontend-performance-route-contract
:feature-frontend-starter-experience-quality-contract
:feature-frontend-responsive-theme-contract
:feature-frontend-ui-primitives-gallery-contract
:feature-frontend-app-shell-navigation-contract
:feature-frontend-runtime-composition-contract
:feature-frontend-ci-quality-gates-contract
:feature-web-vitals-performance-budget-contract
:feature-frontend-release-cache-rollback-contract
:feature-accessibility-baseline-contract
:feature-frontend-project-bootstrap-toolchain-contract
:feature-frontend-operational-runbook-contract
:feature-frontend-contract-compatibility-governance
:feature-frontend-contract-registry-governance
:feature-frontend-browser-security-boundary-contract
:feature-frontend-build-bundle-supply-chain-contract
:feature-tailwind-design-token-styling-contract
:feature-sample-feature-slice-contract-fixture
:feature-frontend-render-recovery-boundary-contract
:feature-routing-navigation-guard-contract
:feature-boundary-mapper-viewmodel-contract
:feature-async-ui-state-contract
:feature-frontend-observability-logging-trace-contract
:feature-frontend-storage-registry-contract
:feature-server-state-caching-contract
:feature-frontend-auth-session-integration-contract
:feature-frontend-error-classification-boundary-contract
:feature-runtime-schema-validation-contract
:feature-api-client-response-envelope-contract
:feature-frontend-env-runtime-config-contract
:feature-frontend-architecture-enforcement-lint-contract
:feature-frontend-test-taxonomy-contract
:feature-frontend-clean-architecture-layering-contract
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
donghyeon.kang (동현 강)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: donghyeon.kang/clean-architecture-frontend-template#57
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
무엇을, 왜
main의 system 시험 하나가 감독 시한 판정을 벽시계로 해서 흔들렸다. runner run 294(FE-GATE-013, 이 파일을 안 건드린 #55의 run)에서
tests/system/ci-runner/ci-artifact-contract.test.ts:892가expected 4271 to be less than 4000으로 실패했다. 같은 run에서 바로 앞의result.code === 0은 통과했다.PROVIDER_SUPERVISOR_TIMEOUT_MS) 전에 스스로 끝났다.sandboxed external provider command timed out을 던지고 실패로 끝난다(scripts/run-and-validate-provider.tswaitForProvider). 그 반대쪽은 같은 파일의 「kills descendants and collects the scope」 timeout 경우가 이미 시험한다. 그래서 exit 0과timed out없음이 결정적 증거다.expect(result.stderr).not.toMatch(/timed out/iu)와 근거 주석을 둔다.tests/system/**의 벽시계 상한 단언)은 하나 더 있었다. 「enforces CPU RLIMIT before the independent wall-clock timeout」의Date.now() - started < 5000이다. 감독 자신의 시작과 정리까지 재고, 시한 판정은 이미not.toMatch(/timed out/)가 한다. 이것도 지운다.docs/ledger/flaky-tests.jsonl에 run 294 한 줄(fixed-time)과 반복 실행에서 본 다른 흔들림 한 줄(아래 「위험과 영향」),docs/ledger/estimates.jsonl에 이 작업의 착수 예측 한 줄.고른 방법과 버린 대안
ci/manual.md8.4절(벽시계 상한을 단언하지 않는다, 실제 지연이 기능이면 그 동작이 일어났는지를 단언한다)과 같다.위험과 영향
ActiveState: active에서 거짓 실패할 수 있다.spawnTimeoutMs: 7_000. hang 막이이고 감독 시한(5초)보다 커서, 시한이 터지면timed out이 먼저 보인다.fixed_by는 이 PR 번호(프론트 #57)로 적었다.sandboxed external provider failed: exit=125로 실패하는 일을 봤다. 11-13 mainc5f29344에서도 3회 중 1회 같은 묶음이 나왔으니 이 변경 전부터 있었다. 부하와 상관 없어 보이고 runner에서는 아직 안 봤다. 125는 cgroup 강제 게이트(scripts/lib/provider-cgroup.ts)나 scope wrapper가 내는데, waitForProvider가bwrap|prlimit|systemd-run|systemctl:줄만 남겨 그 이유가 버려진다. 이유를 로그에 남기는 진단(진단 줄 정규식 넓히기, 발급 경로라 보안 렌즈 필요)을 거친 원인 수정은 따로 한다. 장부에fixed_by없이 한 줄 적었다.검증
기준: main
cfb32a66위 1커밋, head86569da2(트리119d021d. 시험 파일은 아래 실행의 트리 a34dd34d와 같고, 장부 줄 하나만 더했다). 지금 maine98d8ee9와git merge-tree충돌 없음. 실행은 모두 desktop 시스템 컨테이너(scripts/run-in-system-container.sh) 안./tmp/claude-gates/fe-b-probe1/, load 10.72). 감독은 2574 ms에 exit 0,timed out없이 끝났고(그 단언 둘 통과), 옛 892줄이expected 5180 to be less than 4000으로 실패했다.expected 1 to be +0, stderrsandboxed external provider command timed out으로 실패한다(/tmp/claude-gates/fe-b-probe2/).node scripts/run-vitest.ts run tests/system/ci-runner/ci-artifact-contract.test.ts를 8회 돌렸다(/tmp/claude-gates/fe-b-green1..5/,fe-b-diag1..3/). 6회 110/110 통과. 나머지 2회(green1·4)는 아래 「다른 흔들림」 묶음 18개가 실패했고, 바꾼 두 시험도 그 묶음에 들어 exit=125로 실패했다. 묶음 밖 6회에서 바꾼 두 시험은 모두 통과했다.scripts/verify.sh docsrc=0(장부 형식).spawnTimeoutMs: 7_000남음 → hang 막이라 그대로, 「위험과 영향」).scripts/verify.sh merge전체. 바뀐 것이 system 시험 한 파일과 장부 두 줄이라, 그 파일 반복(FE-GATE-013의 해당 부분)과 이 PR의 runner merge job 셋으로 본다.리뷰어가 볼 곳
tests/system/ci-runner/ci-artifact-contract.test.ts두 시험의 바뀐 단언과 주석.scripts/run-and-validate-provider.tswaitForProvider의 시한 경로(시한이 터지면 늘 throw하는지).관련
ci/manual.md8.3·8.4·8.5절,conventions/delegation-loop.md12.1절.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.