fix(ci): FE-GATE-013 provider 시험의 exit=125 묶음을 고친다 #58
Open
donghyeon.kang
wants to merge 4 commits from
donghyeon.kang/ci/provider-exit-125 AGit into main
pull from: donghyeon.kang/ci/provider-exit-125
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#58
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.
무엇을, 왜
FE-GATE-013에서
tests/system/ci-runner/ci-artifact-contract.test.ts의 provider 시험 18개가 한꺼번에sandboxed external provider failed: exit=125, signal=none으로 떨어지는 일이 desktop에서 대략 4회에 1회 있었다. 79번째 시험(671줄)은 이 파일에서 처음으로 provider를 실제로 띄우는 시험이다. 그래서 「그 컨테이너에서는 provider 띄우기가 처음부터 전부 실패」였다.waitForProvider가 그 이유 줄을 provider 출력으로 보고 버렸다. 이제 우리 단계가 쓰는 고정 문구만 실패 메시지에 남긴다(scripts/lib/provider-sandbox-diagnostics.ts). 진단을 넣은 트리에서 다시 났을 때 남은 줄은 11건 모두 같았다:sandbox reported: provider cgroup enforcement failed: cannot read memory.max./의cgroup.subtree_control이 비어 있었다. procs에는 docker exec 프로세스가 있었고, user.slice 아래에는 제어기가 하나도 없었다.scripts/run-in-system-container.sh는docker run -d바로 뒤에docker exec … systemctl is-system-running --wait를 띄운다.init.scope로 옮기고, 그 뒤에 root에 제어기를 켠다. 그 사이에 닿은 exec는 root cgroup에 들어간다.memory.max파일이 없고, 게이트가 exit 125를 낸다.init.scope로 옮기고 root에 제어기를 켠 다음/sbin/init를 exec한다. 그 뒤로는 exec가 root에 들어갈 수 없다.scripts/check-system-test-prerequisites.ts)은 이 상태에서도 PASS를 냈다. 이제 user manager가 cpu·memory·pids 제어기를 받았는지 본다.docs/ledger/flaky-tests.jsonl에 671줄의 원인과 고침, 반복 실행 중 따로 본 983줄 흔들림(아래)을 적었다. CHANGELOG 미출시 절과 착수 예측도 함께 적었다.고른 방법과 버린 대안
max와 숫자만, 오류 코드는 errno·Node 오류 이름만 받는다. 시험은 gate의 실제 shell과 limit 확인 함수를 돌려, 나온 줄이 남는지 본다.provider로 넓히기. provider가 같은 접두로 비밀을 쓰면 그 비밀이 실패 메시지에 실린다.is-system-running을--wait없이 짧게 묻기. 짧은 exec라도 그 순간에 걸리면 같은 일이 난다.위험과 영향
--cgroupns=private·cgroup v2를 가정한다. 전과 같은 가정이다. cgroup v2가 아니면 옮기기를 건너뛰고 전처럼 부팅한다.bwrap:등)는 전처럼 접두만 보고, 그 뒤는 512자까지 자유 문구다. liveness 채널 줄도 우리 고정 접두 뒤에 Node 오류 문구를 싣는다. provider가 이 접두나 우리 template과 똑같은 줄을 쓰면 그 줄은 남는다.tests/unit/feature-shape-growth.test.ts가 깨끗한 main(e98d8ee9)에서도 실패한다.config/scale/feature-shape-ceilings.json의perContextGzipBytes가 기록 28, 빌드 7로 어긋난다(desktop/tmp/claude-gates/fe125-base-005/). 이 PR의 merge / tests job도 여기서 빨개질 수 있다. 이 PR에 섞지 않았다.ci-artifact-contract.test.ts:983「fails closed when the guardian dies after scope collection and before commit」이 반복 실행 4회 중 1회 실패했다(시작 load 15.34). supervisor가 guardian commit 쓰기(scripts/lib/provider-guardian-client.ts:286)에서 처리되지 않은write EPIPE로 죽었다. 원인은 조사하지 않았고 장부에만 적었다.검증
scripts/verify.sh docsOK.memory.max없음(RED). 새 부팅은 6/6이 root에cpu memory pids포함, exec는init.scope,memory.max=1073741824(GREEN).scripts/verify.sh merge(트리 8a0f24a4, 최종에서 착수 예측 한 줄만 빠짐, 그 파일을 읽는 merge 게이트 없음): 13/14 rc=0, FE-GATE-005 rc=1(위 「main 쪽 실패」와 같은 시험·같은 값). FE-GATE-013 rc=0(183초).scripts/verify.sh gate FE-GATE-029(최종 트리980fb152): rc=0.리뷰어가 볼 곳
scripts/run-in-system-container.sh의boot=부분: 작은따옴표 bash 문자열을/bin/sh -c에 넘긴다.scripts/lib/provider-sandbox-diagnostics.ts의 정규식들과 줄 다시 맞추기.scripts/check-system-test-prerequisites.ts의findProviderScopeControllerFailure.관련
docs/ledger/flaky-tests.jsonl(671줄 원인과 고침, 983줄 새 흔들림)ci/manual.md8.3절,conventions/delegation-loop.md12.1절View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.