Skip to content

DO NOT MERGE: verify xcresult capture in CI - #596

Closed
kieran-osgood-shopify wants to merge 1 commit into
kieran-osgood/swift-artifact-upload/xcresult-step-summaryfrom
kieran-osgood/swift-artifact-upload/verify-xcresult-capture
Closed

DO NOT MERGE: verify xcresult capture in CI#596
kieran-osgood-shopify wants to merge 1 commit into
kieran-osgood/swift-artifact-upload/xcresult-step-summaryfrom
kieran-osgood/swift-artifact-upload/verify-xcresult-capture

Conversation

@kieran-osgood-shopify

@kieran-osgood-shopify kieran-osgood-shopify commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Warning

DO NOT MERGE. This branch breaks two builds on purpose. Delete it once CI has been observed.

Stack Context

Stacked on #595, which adds -resultBundlePath to xcode_run and an if: failure() artifact upload to the shared Swift workflow.

Everything in #595 was verified locally except the upload step itself, which needs a real GitHub run. This branch forces that run.

What?

Two deliberate failures:

Break Job it fails Artifact expected
LockedValueTests.testGetReturnsInitialValue asserts a wrong value Run Package Tests swift-package-tests-xcresult
PriceFormatter.swift declares a String constant with an Int literal Build Sample Apps swift-sample-builds-xcresult

Why break the second sample app?

build_samples builds CheckoutKitSwiftDemo first, then ShopifyAcceleratedCheckoutsApp, under set -euo pipefail.

Breaking the second app lets the first one finish. Two scheme-named bundles therefore land in .xcresults/, which is the only way to prove the bundle names do not collide. Breaking the first app would write just one bundle and prove nothing about naming.

Pass criteria

  • Run Package Tests fails and attaches swift-package-tests-xcresult
  • Build Sample Apps fails and attaches swift-sample-builds-xcresult
  • The sample artifact contains two .xcresult bundles, one per scheme
  • Both bundles open in Xcode and show the failure
  • Branch deleted afterwards

🤖 Generated with Claude Code

@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Aug 6, 2026

kieran-osgood-shopify commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kieran-osgood-shopify
kieran-osgood-shopify marked this pull request as ready for review August 6, 2026 12:53
@kieran-osgood-shopify
kieran-osgood-shopify requested a review from a team as a code owner August 6, 2026 12:53
@bitrise

bitrise Bot commented Aug 6, 2026

Copy link
Copy Markdown

Install this build

Open Tophat, select your target device, then click Install. Links open on the Mac running Tophat.

SDK Install
Swift Install with Tophat

Checkout Kit E2E results

Status Suite Target Platform OS version tag Device
tests/shared/launch-smoke.yaml swift ios latest iPhone 15
iOS 27 Beta

@kieran-osgood-shopify
kieran-osgood-shopify force-pushed the kieran-osgood/swift-artifact-upload/verify-xcresult-capture branch from 8eef2b7 to 198d566 Compare August 6, 2026 13:06
Breaks two builds on purpose to prove the artifact upload added in #595
actually attaches a bundle. Delete this branch once CI has been observed.

Two deliberate failures:

- LockedValueTests.testGetReturnsInitialValue asserts a wrong value, so the
  Run Package Tests job fails and should attach swift-package-tests-xcresult.
- PriceFormatter.swift declares a String constant with an Int literal, so
  ShopifyAcceleratedCheckoutsApp fails to compile and the Build Sample Apps
  job should attach swift-sample-builds-xcresult.

The sample break targets the second app on purpose. build_samples builds
CheckoutKitSwiftDemo first and uses set -euo pipefail, so breaking the second
app lets the first one finish. That leaves two scheme-named bundles in
.xcresults, which is what proves the names do not collide.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kieran-osgood-shopify
kieran-osgood-shopify changed the base branch from swift-artifact-upload to graphite-base/596 August 6, 2026 13:57
@kieran-osgood-shopify
kieran-osgood-shopify force-pushed the kieran-osgood/swift-artifact-upload/verify-xcresult-capture branch from 198d566 to 3d95e31 Compare August 6, 2026 13:57
@kieran-osgood-shopify
kieran-osgood-shopify changed the base branch from graphite-base/596 to kieran-osgood/swift-artifact-upload/xcresult-step-summary August 6, 2026 13:57
@kieran-osgood-shopify
kieran-osgood-shopify deleted the kieran-osgood/swift-artifact-upload/verify-xcresult-capture branch August 7, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant