diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index c4c2a271..29de8acd 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -92,6 +92,23 @@ jobs: timeout-minutes: 15 steps: - uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2 + # A job container on either runner here has no IPv6 route (the runner makes each job's Docker + # network without IPv6), and DNS still answers AAAA. When the A answer is lost and the AAAA one + # arrives, glibc returns the IPv6 addresses alone, lychee's connection fails at once with + # "Network unreachable", and lychee does not retry a connection error: run 452 lost the A + # answer for www.postgresql.org on laptop-runner and failed on ten live links. no-aaaa asks + # for A alone, as getaddrinfo's AI_ADDRCONFIG would on such a host, so a lost answer is asked + # again like any other. DNS that stays down, or no internet at all, still fails. `ip route get` + # only looks up a route and sends nothing; a runner with an IPv6 route keeps AAAA, and so does + # an image without `ip`, which cannot tell (a failed `ip` would otherwise read as "no route"). + - name: Resolve IPv4 only when the job has no IPv6 route + run: | + if ! command -v ip >/dev/null 2>&1; then + echo "No ip command in this job image: lychee keeps asking for AAAA records." + elif ! ip -6 route get 2001:db8::1 >/dev/null 2>&1; then + echo "No IPv6 route in this job: lychee resolves A records only (RES_OPTIONS=no-aaaa)." + echo "RES_OPTIONS=no-aaaa" >> "$GITHUB_ENV" + fi # v2.9.0 runs lychee v0.24.2. v2.0.2 ran v0.16.1, which has no --root-dir at all; a relative # --root-dir works from lychee v0.22.0. The job token is this Gitea's and means nothing to the # GitHub hosts lychee would send it to, so none is passed, and Gitea has no job summary page. diff --git a/docs/work/reference/gates.md b/docs/work/reference/gates.md index f8b6fa09..d6140975 100644 --- a/docs/work/reference/gates.md +++ b/docs/work/reference/gates.md @@ -85,7 +85,7 @@ workflow에만 있는 job: `pr.yml` `done`의 마지막 step과 `main.yml`의 `v - 커밋하는 수정이 그 source set에 없던 의존성을 쓰면 lockfile도 같은 커밋에 넣는다. desktop worktree에서 `./gradlew :resolveAndLockAll --write-locks`로 다시 만들어 가져오고 `verifyDependencyLocks`로 본다. 손으로 고친 lockfile은 Gradle이 실제로 고른 버전과 다를 수 있다. - 탐침이 그 source set에 없는 의존성을 써야 하면 버릴 worktree에서만 `build.gradle` 한 줄을 더하고 `--write-locks`로 돌린다. 바꾼 줄(빌드 파일, lockfile)을 실행 기록에 적는다. 그렇게 하지 않기로 했으면 코드 읽기 증거(E1)로 판정한다. -**링크 검사**: 상대 링크는 PR마다 `scripts/check-docs.py`의 `link`가 살아 있는 문서 전부(`src/**/AGENTS.md`, `.claude/` 아래 문서 포함)를 본다. 외부 URL까지 보는 lychee는 문서 검사라 main 단계다(`main.yml` `links`, 범위 `README.md`, `docs/build.md`, `src/**/README.md`, `src/**/AGENTS.md`, `docs/**/*.md`, `.github/**/*.md`. 폴더 `CLAUDE.md`는 `@AGENTS.md` 한 줄이라 링크가 없다). 시간 초과나 429를 받은 요청은 5·10·20·40·80초 뒤에 다시 묻는다(`--max-retries 5 --retry-wait-time 5`). 시도마다 20초 시한이라, 시간 초과가 이어지면 마지막 시도는 첫 시도 4분쯤 뒤에 시작한다(바로 오는 429는 2분 반쯤). 그 안에 다시 답하면 통과하고, 마지막 시도에도 답이 없으면 실패다. 다른 실패(4xx·5xx 응답, DNS·연결 실패)도 그대로 실패다. 시간 초과를 받아 주지 않는다(`--accept-timeouts`는 패킷을 버리는 죽은 호스트와 바깥으로 나가지 못하는 runner를 통과시킨다). 저장소 밖 경로와 `file:line`은 링크로 쓰지 않는다(lychee가 따라가지 못한다). +**링크 검사**: 상대 링크는 PR마다 `scripts/check-docs.py`의 `link`가 살아 있는 문서 전부(`src/**/AGENTS.md`, `.claude/` 아래 문서 포함)를 본다. 외부 URL까지 보는 lychee는 문서 검사라 main 단계다(`main.yml` `links`, 범위 `README.md`, `docs/build.md`, `src/**/README.md`, `src/**/AGENTS.md`, `docs/**/*.md`, `.github/**/*.md`. 폴더 `CLAUDE.md`는 `@AGENTS.md` 한 줄이라 링크가 없다). 시간 초과나 429를 받은 요청은 5·10·20·40·80초 뒤에 다시 묻는다(`--max-retries 5 --retry-wait-time 5`). 시도마다 20초 시한이라, 시간 초과가 이어지면 마지막 시도는 첫 시도 4분쯤 뒤에 시작한다(바로 오는 429는 2분 반쯤). 그 안에 다시 답하면 통과하고, 마지막 시도에도 답이 없으면 실패다. 다른 실패(4xx·5xx 응답, DNS·연결 실패)도 그대로 실패다. job 컨테이너에 IPv6 경로가 없으면(2026-11-21 기준 두 runner 모두 그렇다) lychee 앞 step이 `RES_OPTIONS=no-aaaa`를 둬 A 레코드만 묻는다. 그러지 않으면 A 답을 잃고 AAAA 답만 온 이름은 IPv6 주소만 받아 연결이 바로 「Network unreachable」로 끝나고, lychee는 연결 실패를 다시 묻지 않는다(2026-11-21 main push run에서 살아 있는 링크 10개가 이렇게 실패했다). DNS가 계속 죽었거나 인터넷이 없으면 여전히 실패다. 시간 초과를 받아 주지 않는다(`--accept-timeouts`는 패킷을 버리는 죽은 호스트와 바깥으로 나가지 못하는 runner를 통과시킨다). 저장소 밖 경로와 `file:line`은 링크로 쓰지 않는다(lychee가 따라가지 못한다). ## 3. 라운드 끝 — 합친 트리의 전체 묶음