Skip to content

add artifact upload for swift test failures - #595

Open
kieran-osgood-shopify wants to merge 1 commit into
mainfrom
swift-artifact-upload
Open

add artifact upload for swift test failures#595
kieran-osgood-shopify wants to merge 1 commit into
mainfrom
swift-artifact-upload

Conversation

@kieran-osgood-shopify

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

Copy link
Copy Markdown
Contributor

What changes are you making?

We use annotations for quick views with inline warnings/failures but they cap out at 10 per workflow, 50 per job, and given swiftlint also posts to them some information may start to get lost as we scale our monorepo

this gives a table of results that can be easier to grok multiple failures in sequence

Exmaple here: https://github.com/Shopify/checkout-kit/actions/runs/31108425595?pr=596

image

How to test

See failing branch here: https://github.com/Shopify/checkout-kit/actions/runs/31108425595?pr=596


Before you merge

Important

  • I've added tests to support my implementation
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct
  • I've updated the relevant platform README (platforms/swift/README.md and/or platforms/android/README.md)

Releasing a new Swift version?
  • I have bumped the version in ShopifyCheckoutKit.podspec
  • I have bumped the version in platforms/swift/Sources/ShopifyCheckoutKit/ShopifyCheckoutKit.swift
  • I have updated the SwiftPM/CocoaPods version snippets in platforms/swift/README.md (major version only)
Releasing a new Embedded Checkout Protocol version?
  • I have bumped embeddedCheckoutProtocolAndroid in platforms/android/gradle/libs.versions.toml
  • I have updated protocol/languages/kotlin/embedded-checkout-protocol/api/embedded-checkout-protocol.api if the public API changed
Releasing a new Android version?
  • I have bumped checkoutKitAndroid in platforms/android/gradle/libs.versions.toml
  • I have updated the Gradle/Maven version snippets in platforms/android/README.md

Tip

See the Contributing documentation for the full release process per platform.

@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

kieran-osgood-shopify added a commit that referenced this pull request Aug 6, 2026
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 added a commit that referenced this pull request Aug 6, 2026
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 marked this pull request as ready for review August 7, 2026 10:39
@kieran-osgood-shopify
kieran-osgood-shopify requested a review from a team as a code owner August 7, 2026 10:39
@bitrise

bitrise Bot commented Aug 7, 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

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