Skip to content

CI: get GitHub Actions green on Xcode 27 - #256

Merged
chrisballinger merged 9 commits into
masterfrom
ci-xcode-27
Sep 28, 2026
Merged

chrisballinger merged 9 commits into
masterfrom
ci-xcode-27

Conversation

@chrisballinger

@chrisballinger chrisballinger commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Why CI was never green

Every CI and Pull Request Validation run since the move to runs-on: macos-26-arm64 sat queued until GitHub cancelled it at 24h. No hosted runner has that label. The macos-26 images also only ship Xcode 26, which can't build the iOS 27 SDK project.

What changed

  • Runner. All macOS workflows now run on runs-on: xcode-27 ([macOS] Xcode 27 is now available as a public preview actions/runner-images#14404): macOS 27, DEVELOPER_DIR=/Applications/Xcode_27.1.app (27A9269, the same build as local). The destination is iPhone 18 Pro Max, OS=27.0; iOS 27.0 is the only simulator runtime on the image.
  • Shared workflow. New reusable build-and-test.yml, called by ci.yml (push to master/develop, manual dispatch) and pr.yml (PRs). A PR no longer builds twice.
  • App job. Builds the iBurn scheme, which also builds iBurnWatch, then tests iBurnTests. That scheme also covers PlayaKitTests and PlayaGeocoderTests. The stale PlayaKitTests scheme reference is gone.
  • Packages job. Runs swift test for PlayaAPI, PlayaColors, PlayaDB, PlayaGeo and PlayaSeed on one runner. A 5-way matrix used up the account's macOS concurrency.
  • Output. xcbeautify, which is on the image, replaces xcpretty, which isn't. shell: bash turns on pipefail; before, the pipe had been hiding xcodebuild failures.
  • Secret stubs. Fixed so they compile: BRCSecrets.m now imports Foundation (the README template had the same bug), and GoogleService-Info.plist is a valid placeholder that [FIRApp configure] accepts. CI needs no repository secrets.
  • Failed-test time. -collect-test-diagnostics never stops a 10-minute simulator diagnostics timeout after any test failure.
  • Ruby. CI drops its Ruby/bundler steps; only deploy.yml uses fastlane.
  • deploy.yml. Same image and Xcode.

App bug found by CI

The runner is on UTC, and that exposed a real bug in global search. The day and time-of-day filters bucketed event times with Calendar.current, while rows show BRC time. On a phone outside Pacific time, a 12:00 PM event wasn't "Afternoon".

  • The fix adds Calendar.burningMan and uses it for the bands, the day bounds and the dedupe step.
  • There's a regression test that pins the process zone to Tokyo. It fails without the fix.

Results

The details and each failure's root cause are in Docs/2026-09-26-ci-xcode-27.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi

chrisballinger and others added 2 commits September 26, 2026 09:17
The macos-26-arm64 label matches no GitHub-hosted runner, so every run since
the migration sat queued until the 24h timeout. Move to the `xcode-27` image
(macOS 27, Xcode 27.1, iOS 27.0 simulator runtime) and:

- factor the build into build-and-test.yml, called by ci.yml (pushes, manual
  runs) and pr.yml (pull requests), so a PR no longer builds twice;
- test iBurnTests only; the scheme already bundles PlayaKitTests and
  PlayaGeocoderTests, and there is no PlayaKitTests scheme;
- pipe through xcbeautify (on the image) instead of xcpretty (not installed),
  with shell: bash so pipefail surfaces xcodebuild failures;
- add a swift test matrix for PlayaAPI, PlayaColors, PlayaDB, PlayaGeo and
  PlayaSeed;
- drop the Ruby/bundler steps, which CI doesn't use (only deploy runs
  fastlane);
- stub the gitignored secret files without repository secrets, and skip the
  PR comment on fork PRs, whose token is read-only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
macos-26-arm64 is not a hosted runner label and macos-26 only has Xcode 26.
Match build-and-test.yml's image and toolchain. The Fastfile's beta lane already
passes -skipPackagePluginValidation -skipMacroValidation and has no pod steps.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
@github-actions

Copy link
Copy Markdown

❌ Pull Request validation cancelled

Commit: b73fa9e
Workflow: 36254936720

chrisballinger and others added 2 commits September 26, 2026 09:25
The prefix header is empty, so the stub BRCSecrets.m that CI writes failed with
"unknown type name 'NSString'". Real local copies already start with the
import; the CI, deploy and README templates now do too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
A per-package matrix took all of the account's concurrent macOS runners, so the
app job queued behind it. The suites take a minute or two each; run them in
sequence and report every failing package.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
@github-actions

Copy link
Copy Markdown

❌ Pull Request validation cancelled

Commit: df87889
Workflow: 36254980087

touch left an empty file, which CopyPlistFile rejects ("unable to read input
file as a property list"). The app also calls [FIRApp configure] at launch,
which throws on a malformed config, so write fake values in the formats
Firebase validates.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
@github-actions

Copy link
Copy Markdown

❌ Pull Request validation cancelled

Commit: 1c986a3
Workflow: 36255420344

@github-actions

Copy link
Copy Markdown

❌ Pull Request validation failure

Commit: 176274e
Workflow: 36255860833

chrisballinger and others added 3 commits September 26, 2026 10:06
The day and time-of-day filters used Calendar.current while event rows show
times in burningManTimeZone. On a device outside Pacific time a 12:00 PM event
was not "Afternoon" (in UTC it is 7pm), and the day picker's bounds and labels
shifted too. CI runs in UTC, where GlobalSearchViewModelTests.
testTimeOfDayFilterExcludesNonMatchingOccurrences failed.

Add Calendar.burningMan and use it for the bands, the day bounds and the
dedupe default. Label the festival days in BRC time. The filter tests now
build fixtures on that calendar, and a new regression test pins the process
zone to Asia/Tokyo; it fails without this change.

Full iBurnTests pass with TEST_RUNNER_TZ=UTC (700 tests).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
After a failure xcodebuild spent ten minutes timing out on a sysdiagnose-style
collection from the simulator. The xcresult is already uploaded.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
@github-actions

Copy link
Copy Markdown

✅ Pull Request validation passed

Commit: 137fcce
Workflow: 36257867229

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
@github-actions

Copy link
Copy Markdown

✅ Pull Request validation passed

Commit: d4422a6
Workflow: 36258927056

@chrisballinger
chrisballinger merged commit f5664b4 into master Sep 28, 2026
3 checks passed
aberlour1990-cloud pushed a commit to aberlour1990-cloud/iBurn-iOS that referenced this pull request Oct 17, 2026
Add public TimeZone.burningMan (America/Los_Angeles by identifier) and
Calendar.burningMan to PlayaAPI, the lowest package the app, the watch and
PlayaDB all link. The app drops its own TimeZone.burningManTimeZone
(TimeZone(abbreviation: "PDT")!) and iBurnApp#256's app-local Calendar.burningMan,
and folds the ad-hoc BRC calendars in SearchResultIndex, TimeOfDay, Right
Now and the AI workflow utilities into the shared one. Obj-C keeps
+[NSTimeZone brc_burningManTimeZone], now backed by the shared zone.

No behavior change: on Darwin the "PDT" abbreviation already resolved to
America/Los_Angeles.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EC732unEbatJ9kKG2oygMi
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