Repository navigation
ci: lint 워크플로 Gradle 캐싱 소유자 통일 — 정책 테스트 모순으로 죽던 Run Unit Tests 복구 - #913
Merged
Merged
Conversation
Contributor
This was referenced Aug 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
develop 이 자기모순 상태다:
lint.ymlktlint job 의 setup-javacache: 'gradle'(ee88568, ktlint 전체 검사 게이트 추가 때 도입)을, 이후 강화된 supply-chain 정책 테스트 "Gradle caching has a single owner in every workflow"(4812bc1, #845 계열)가 금지한다.이 때문에 모든 열린 PR 의 Run Unit Tests 가 node 정책 테스트 단계(~10초)에서 실패해 Kotlin 유닛테스트가 아예 실행되지 않는다 — 실측: PR #911 run 32622105578.
수정
cache: 'gradle'제거gradle/actions/setup-gradle(cache-provider: basic,cache-read-only: true,validate-wrappers: true) 단계 추가 — 캐싱 소유자를 setup-gradle 하나로 통일하면서,./gradlew ktlintCheck실행 전 wrapper 검증(fail-closed)도 확보검증
node --test .github/scripts/*.test.mjs: 수정 전 46/47(유일한 실패가 바로 이 모순 —lint.yml uses setup-java caching) → 수정 후 47/47 통과cache: gradle·actions/cache@) — 위반은 lint.yml 25행 단 한 곳, 다른 워크플로에는 없음리뷰어에게