Skip to content

Add a no-upload store rehearsal and fix the flaky Xcode check - #36

Merged
sljeff merged 1 commit into
mainfrom
ci/release-rehearsal
Nov 15, 2026
Merged

sljeff merged 1 commit into
mainfrom
ci/release-rehearsal

Conversation

@sljeff

@sljeff sljeff commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a no-upload rehearsal for store candidates and fixes an intermittent
failure in the Xcode version check.

  • Rehearsal: release-core.yml gains rehearsal / rehearsal_build_number
    inputs. A rehearsal runs on a non-main branch that is temporarily admitted
    to the release environment and the Infisical release identity. It runs
    the real signed archive and export, then calls altool --validate-app
    instead of uploading. The upload step is skipped with
    if: ${{ !inputs.rehearsal }}. No build is uploaded and no build number is
    consumed. Tag-triggered runs keep every existing check: tag equals the
    project.yml version, and the commit is contained in main.
  • release-rehearsal.yml: dispatches the rehearsal with an explicit
    build number. Its comments document the two temporary admissions and how to
    revert them.
  • Flaky check: xcodebuild -version | head -1 | grep -q let head close
    the pipe early, so xcodebuild aborted on SIGPIPE and failed the step under
    pipefail. This happened in PR Upload to TestFlight with altool on Xcode 27 #32 and PR Bump build number to 2.0.0 (41) #33. The output is now captured
    before matching, in both ci.yml and release-core.yml.

Why

The previous candidates each failed on a different problem, found only after
a real tag:

  • rc-2.0.0+39: the extension path in the release checks.
  • rc-2.0.0+40: iTMSTransporter is missing from Xcode 27.
  • rc-2.0.0+41: App Store Connect rejected it with ITMS-90101.

A rehearsal surfaces these before any tag is created.

Evidence

Rehearsal run 43724224038 used this exact release-core.yml and ci.yml on
the release-rehearsal branch, with build 42 and the iPad fix from #34. It
fetched secrets, archived, signed and exported, then App Store Connect
returned VERIFY SUCCEEDED with no errors. The upload step was skipped.

Both temporary admissions were reverted afterwards. The GitHub release
environment again admits only rc-*, and the Infisical bound claims are
back to their original values.

Testing

  • The validate step was exercised locally for six cases:
    • rehearsal on a branch: passes;
    • rehearsal on main: rejected;
    • rehearsal with a malformed build number: rejected;
    • a real rc-* tag on a main commit: passes;
    • a real run from a branch: rejected;
    • a mismatched tag: rejected.
  • The new Xcode check accepts the pinned version and rejects a mismatch.
  • actionlint: the only finding is the known custom xcode-27 runner label.

…check

- release-core accepts rehearsal inputs: on a non-main branch temporarily
  admitted to the release environment (and the Infisical release identity),
  it runs the full signed archive/export path and asks App Store Connect to
  validate the IPA (altool --validate-app) instead of uploading. Tag
  triggered runs are unchanged.
- release-rehearsal.yml dispatches that rehearsal with an explicit build
  number and documents the temporary admissions to revert afterwards.
- Capture xcodebuild -version before matching it: piping into head made
  xcodebuild abort on a broken pipe and fail the check intermittently.

A rehearsal of 2.0.0 (42) passed App Store Connect validation with no
errors (run 43724224038).
@sljeff
sljeff merged commit e2b991a into main Nov 15, 2026
1 check passed
@sljeff
sljeff deleted the ci/release-rehearsal branch November 15, 2026 15:59
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