Skip to content

test: enable local Spark E2E on iOS - #1371

Draft
piotr-iohk wants to merge 10 commits into
masterfrom
codex/spark-receive
Draft

piotr-iohk wants to merge 10 commits into
masterfrom
codex/spark-receive

Conversation

@piotr-iohk

@piotr-iohk piotr-iohk commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Twin: synonymdev/bitkit-android#1980
Dependency: synonymdev/bitkit-e2e-tests#317

Merge the shared E2E fixture first so the Spark workflow can use E2E main.

Description

  • Read the pinned Spark operator and chain settings in local debug E2E builds.
  • Add Spark to the local E2E nightly. Its scheduled and manual runs build the configured app and runs the shared @spark_1 case on the simulator.
  • Prepare pinned ARM64 fixture images and wallet settings on hosted Linux. Build the configured simulator app on hosted macOS.
  • Reuse exact preloaded images on the shared Mac and start the fixture without registry access.
  • Allow up to three attempts, with separate artifacts and a failing job if all attempts fail.
  • Expose the Spark balance row to Appium and simplify the existing sweep test’s byte assembly for Xcode 26.0.1.

Design

N/A.

Preview

N/A.

QA Notes

Setup

Use the shared Spark fixture instructions in the E2E dependency. Local E2E Nightly runs at 05:35 UTC and can also be dispatched manually. Set e2e_branch to select a companion ref.

Journeys

N/A.

Manual Tests

N/A.

Automated Checks

  • The local E2E nightly runs only @spark_1. It pays a 10,000-sat invoice and verifies the received activity and the Spark spending balance.

Evidence

  • @spark_1 passed on the local iOS simulator against Docker revision a73f84c.
  • SwiftFormat passed. The XCTest unit target selected 4,137 tests with zero failures and five skips.
  • The hosted image and ARM64 simulator builds passed. The Mac stopped before Appium. A previous attempt exhausted disk space, and a read-only probe found 4.4 GiB available and an unresponsive Docker server on macmini1. iOS validation, Disk-space failure, Mac Docker health probe
  • actionlint passed. The workflow uses the dedicated Spark setup and matches the regular E2E retry and recording settings.

Gaps

The targeted iOS test awaits a responsive Docker server on the shared Mac. GitHub activates the new nightly after it lands on the default branch.

Models used

  • Planning and scoping gpt-6.2-sol (reasoning high)
  • Implementation gpt-6.2-sol (reasoning high)
  • Review gpt-6.2-sol (reasoning high)

@ovitrif

ovitrif commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Spark goes to production in 3.2.0, so its end-to-end tests are part of the release. This PR now closes #1372, which tracks it in milestone 3.2.0. The shared fixture and @spark_1 case in synonymdev/bitkit-e2e-tests#317 merge first.

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.

2 participants