Repository navigation
test: cover Lightning receive on local Spark - #317
Conversation
|
@piotr-iohk thanks for the local Spark setup and
Your call on which, if any, are worth the CI time. |
talosmachina
left a comment
There was a problem hiding this comment.
1 finding (1 P1). Adds the shared @spark_1 Lightning receive case, the Spark fixture commands in local-backend, and the local nightly mode of the Slack reporter. Reviewed 1ae6c76, full tier.
What I checked, and 4 candidates I ruled out
Read in full: scripts/local-backend, scripts/run-spark-e2e.sh, scripts/build-ios-sim.sh, scripts/slack_summary.py, test/specs/spark.e2e.ts, test/helpers/receive-invoice.ts
Traced: every caller of build-ios-sim.sh (README, .agents/commands/archive-release.md, the bitkit-ios nightly in synonymdev/bitkit-ios#1371); the simulator slices of the BitkitCore.xcframework that bitkit-ios pins (0.8.0-rc15)
Build: skipped, the PR-run gate could not read the author's permission on this repo, so nothing here was executed
CI: no checks reported on this branch
Ruled out
env -u CIdefeats retry skipping: intended, each dedicated run must pay again, and the app workflows retry the whole step.editGateLightningInvoice()with no argument: the optional chaining keeps the old callers' comparison and only drops the check for the new caller, which assertsinvoice !== originalInvoiceitself.spark_buildcache load of a stale archive: the cache key includesBITKIT_DOCKER_REVISION, and a faileddocker image inspectfalls through to a rebuild.- Cold reader: it did not answer within the time limit on the P1, so that finding stands on the trace below without a second opinion.
Merge confidence: 3/5, the P1 on the default iOS build.
Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed (the session does not surface the setting to the reviewer)
talosmachina
left a comment
There was a problem hiding this comment.
Re-review of 0bffc49 after 1ae6c76. 1 earlier finding: 1 fixed. 0 new findings. Adds the shared @spark_1 Lightning receive case, the Spark fixture commands in local-backend, and the local nightly mode of the Slack reporter. Full tier.
What I checked
Diff since 1ae6c76: scripts/build-ios-sim.sh only (one commit, 0bffc49).
Earlier P1, default simulator arch: fixed. ARCHS=${IOS_SIMULATOR_ARCH:-arm64} is now always passed, so the README's BACKEND=local ./scripts/build-ios-sim.sh, the Spark section and archive-release.md's BACKEND=regtest TREZOR_BRIDGE=true ./scripts/build-ios-sim.sh build the arm64 slice that the pinned BitkitCore.xcframework ships, and the nightly's explicit IOS_SIMULATOR_ARCH still overrides it. git grep ARCHS at the head finds no second place that sets it.
Build: not run, iOS does not build on this host.
CI: no checks reported on this branch; the author's linked app-repo runs are the only execution evidence.
Merge confidence: 4/5, no findings open, but no CI on this repo exercises the iOS build script and it was not built here.
There was a problem hiding this comment.
Verdict: ✅ Approve
Findings: None.
QA for 0bffc49:
Check: Shared nightly reporting ✅ Shared Python tests pass, including Android/iOS nightly and existing staging/migration rendering.
Checked with the repository's Python test suite; Slack transport was mocked. Shell syntax and diff whitespace checks also passed.
Check: Default iOS simulator build ✅ The default build compiles and links an arm64 simulator app.
Built with Xcode 27.0 and IOS_SIMULATOR_ARCH unset, using the app revision from the linked iOS run. Verified the binary architecture and that the built app embeds exactly the generated Spark settings.
Check: Pinned Spark wallet settings ✅ Initialization emits the expected loopback settings using preloaded images.
Ran spark-init-env against Docker a73f84c. It completed without starting dependencies; decoded operator, SSP and chain endpoints match the documented loopback ports.
Receive Lightning into Spark on Android ✅ Passed in the linked CI run at b7e445a; the payment flow is unchanged.
Reused the Android run, whose log confirms one passing @spark_1. It verifies the 10,000-sat receive, spending balance, received activity and final Spark balance.
Receive Lightning into Spark on iOS ✅ Passed in the linked CI run at b7e445a; the payment flow is unchanged.
Reused the iOS run, whose log confirms one passing @spark_1. It verifies the same 10,000-sat receive and balance/activity assertions.
No new device run: the changes since the linked runs leave the fixture, runner and receive helper unchanged. The spec only loses status-reporting wrappers around the same actions and assertions; the reporter formatting and default architecture changes are covered above. Cold image building and the complete fixture startup were not repeated.
Full review: b49d1ab…0bffc49, eight changed files. The earlier simulator architecture finding is fixed.
Reviewed by gpt-6.1-sol-high
Description
Validation
@spark_1againsta73f84c.@spark_1case onmacmini1on the first test attempt after Docker Desktop recovered. The run reused the exact pinned Spark images and the hosted ARM64 simulator build. Passing iOS job · Runner recovery@spark_1on the cold and warm runs. Restoring images reduced fixture setup from 24m 19s to 7m 44s. Cold run, Warm run@spark_1passed and both reports reached Slack. Android run · iOS run