Skip to content

fix(ci): companion 릴리스의 staple 단계에 재시도 추가하기 - #251

Merged
tkhwang merged 1 commit into
mainfrom
fix/staple-retry
Oct 17, 2026
Merged

tkhwang merged 1 commit into
mainfrom
fix/staple-retry

Conversation

@tkhwang

@tkhwang tkhwang commented Oct 17, 2026

Copy link
Copy Markdown
Owner

문제

companion v2.31.0 과 v2.34.0 이 Homebrew tap 에 반영되지 않았습니다. 두 번 모두 Companion Release 의 Notarize and staple 단계에서 실패했습니다.

  • notarytool submit: Accepted (공증 통과)
  • 바로 다음 xcrun stapler staple: Apple CloudKit 연결 끊김 (NSURLErrorDomain -1005, Error 68)
  • 그 뒤 zip 업로드, cask 갱신 단계가 건너뛰어짐 → 릴리스에 zip 없음, tap 은 이전 버전 유지
버전 실행 결과
v2.31.0 38964753170 staple 실패
v2.32.0 38971268876 성공
v2.33.0 38999787080 성공
v2.34.0 39065095403 staple 실패 (재실행 중)

코드 문제가 아니라 일시적인 네트워크 오류지만, 최근 4번 중 2번 발생했습니다.

변경

.github/workflows/companion-release.yml: xcrun stapler staple 을 30초 간격으로 최대 5번 시도합니다. 5번 모두 실패하면 지금처럼 단계가 실패합니다.

.github 는 루트 exclude-paths 에 있고 apps/companion 밖이라 이 커밋은 어떤 릴리스도 만들지 않습니다.

확인

  • Ruby YAML 로 워크플로 파싱: 통과
  • 해당 단계 run 스크립트 bash -n: 통과
  • git diff --check: 통과
  • 재시도 루프만 떼어 가짜 xcrun 으로 실행 (sleep 0):
    • 0번 실패: 1번째에 통과
    • 2번 실패: 3번째에 통과
    • 4번 실패: 5번째에 통과
    • 5번 실패: stapler failed after 5 attempts, exit 1

CLI 코드는 바뀌지 않아 ./apps/cli/tests/run.sh 는 돌리지 않았습니다.

🤖 Generated with Claude Code

Apple 공증이 Accepted 된 직후 `xcrun stapler staple` 이 Apple CDN 연결
끊김(exit 68)으로 실패해 zip 업로드와 cask 갱신이 건너뛰어졌다
(workbranch-companion v2.31.0, v2.34.0). staple 을 30초 간격으로 최대
5번 시도한다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T20:53:24.510305Z dcfa51d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6542bc78-b0d5-45b9-a959-66e919ef41a3
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@tkhwang
tkhwang merged commit b0c5d91 into main Oct 17, 2026
3 checks passed
@tkhwang
tkhwang deleted the fix/staple-retry branch October 17, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant