Skip to content

ci: use the pinned iOS regtest backend - #1348

Merged
piotr-iohk merged 3 commits into
masterfrom
codex/ios-shared-regtest
Nov 17, 2026
Merged

piotr-iohk merged 3 commits into
masterfrom
codex/ios-shared-regtest

Conversation

@piotr-iohk

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

Copy link
Copy Markdown
Collaborator

Twin: synonymdev/bitkit-android#1939
Dependency: synonymdev/bitkit-e2e-tests#313
Dependency: synonymdev/bitkit-docker#41

Move the Mac mini Appium gate to the same pinned regtest and Trezor fixture as Android. This follows #1340 and is part of synonymdev/bitkit-e2e-tests#210.

Description

  • Start regtest through the E2E checkout's pinned launcher and pass its Electrum, LND and Docker settings to all three Appium attempts.
  • Reset one Compose project across pinned and historical E2E refs so an interrupted run can be recovered after switching refs.
  • Scope the npm cache key to the E2E lockfile.
  • Use the legacy 1 sat/vB regtest fallback fee so the iOS manual channel funding Max case runs against the fixture it was written for.

Design

N/A. Workflow configuration only.

Preview

N/A.

QA Notes

Setup

Dispatch e2e-tests.yml on codex/ios-shared-regtest with e2e_branch=codex/android-shared-regtest. The E2E head is 46abebb, which pins bitkit-docker at a73f84c. The iOS Mac mini runs @ios_gate with local Bitcoin, Electrum and LND plus the Mac Trezor Bridge.

Journeys

N/A. Workflow configuration only.

Manual Tests

N/A.

Automated Checks

  • ran the workflow shell steps with a stubbed CLI (after merge) — verifies pinned and legacy setup, failure before export, cleanup and project identity.
  • ran docker compose config --format json (after merge) — confirms the Compose project, published ports and Mac Trezor contract match the runner environment.

Evidence

  • Shell and Compose checks passed on iOS 256fdf477 with E2E 46abebb and Docker a73f84c. The checks exercised the workflow shell with a stubbed CLI and rendered the Android default and iOS fee configurations.

  • The hosted build and unit suite passed on b895ed9ee with zero failures. The follow-up changes the Appium workflow and fixture pin. Unit CI

  • The initial Appium gate passed 12 of 13 cases, including all Trezor cases. @multi_address_4 failed coin selection at 2 sat/vB in all three attempts. The legacy fixture completed the same 74,573-sat funding at 1 sat/vB. Initial Appium CI

  • The corrected Mac mini gate passed all 13 cases on the first attempt on iOS 256fdf477, E2E 46abebb and Docker a73f84c. The Max channel case and Docker cleanup passed. Appium CI

  • The PR merge gate passed all 13 Appium cases on E2E main at da776257 using Docker a73f84c. Hosted unit, integration, and SwiftFormat checks also passed. PR Appium CI

Gaps

None for the cutover.

Models used

  • Planning/scoping: gpt-6.1-sol (reasoning: high)
  • Implementation: gpt-6.1-sol (reasoning: high)
  • Review: gpt-6.1-sol (reasoning: high)
  • Review rounds: 3

@piotr-iohk
piotr-iohk marked this pull request as ready for review November 16, 2026 22:09
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed workflow changes appear safe to merge; no blocking issue was established.

Summary

The workflow starts regtest through the E2E checkout’s pinned launcher, with a fallback for older refs.

  • The iOS gate starts the regtest that matches its E2E ref.
  • The iOS gate uses the legacy fee for channel funding.
  • The npm cache key follows the E2E lockfile.

No actionable issues were established. The external launcher and Compose sources could not be checked, and no runtime checks were run.

Reviews (1) · Last reviewed commit: "ci: retain the iOS gate regtest fallback..." · Reviewed by Greptile

@talosmachina talosmachina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. Moves the Mac mini @ios_gate job onto the pinned shared regtest stack, with one Compose project across pinned and legacy refs and the 1 sat/vB fallback fee. Reviewed 256fdf4, full tier, from the code and CI (iOS does not build on this Linux box).

What I checked, and the candidates I ruled out

Read in full: the e2e-tests-local job of e2e-tests.yml, against bitkit-e2e-tests#313 at 46abebb and bitkit-docker#41 at a73f84c
CI: Appium run 43926422361 succeeded on this exact head

Ruled out

  • Fee override ignored: BITCOIN_FALLBACK_FEE is job env, and docker#41 interpolates it into fallbackfee.
  • Reset misses containers from the other ref: COMPOSE_PROJECT_NAME: docker makes the pinned checkout use the legacy project name, and down --remove-orphans -v runs before up.
  • Electrum wait on a moved port: the pinned stack still publishes 60001.
  • Lost reset step: the old continue-on-error reset is folded into the setup step, with || true kept on the legacy branch.

Merge confidence: 5/5, no findings and the Appium gate passed on this head.

Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed (the runner does not report it)

@piotr-iohk
piotr-iohk requested review from a team, ben-kaufman and ovitrif and removed request for a team November 17, 2026 00:11

@ovi-reviewer ovi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: ✅ Approve

Posted as a comment: not every planned case passed.

Findings: None.

QA for 256fdf4:

Check: workflow syntax and expressions ✅ No new actionlint diagnostics; YAML, shell syntax and whitespace checks passed.

actionlint 1.7.12 reports the same two unsupported, pre-existing cache-mode keys at the base and head. Its optional ShellCheck integration was disabled. bash -n accepted every embedded shell block, and git diff --check passed.

Check: pinned setup, failure handling and cleanup ✅ The workflow shell orders setup correctly and exports settings to all three attempts.

Executed the workflow's shell with a stubbed backend CLI. Verified prepare, reset, startup and environment export in order; a failure at any setup stage stops later commands. All three retry commands received the exported backend and LND settings. Cleanup selected the launcher and tolerated teardown errors.

Check: legacy setup and cleanup ✅ Older refs retain the bundled stack and shared project settings.

Executed the fallback shell with a stubbed Docker CLI, covering both an absent and a non-executable launcher. Verified the bundled working directory, reset-error tolerance, LND directory permissions, shared Compose project and fee settings, and cleanup with the Trezor profile and orphan removal.

Check: exact-head iOS gate evidence ✅ The existing Appium gate passed on its first attempt and removed the fixture afterward.

Verified the head and logs of the iOS Appium run: iOS 256fdf4, E2E 46abebb, Docker a73f84c, and BITCOIN_FALLBACK_FEE=0.00001. The initial attempt passed all cases, including manual channel funding Max and Trezor; subsequent retries were skipped. Cleanup removed the Trezor container and backend resources.

No fresh app build or device run: this changes only workflow configuration, and journeys and manual tests are N/A. The linked exact-head CI covers the running app. Failure branches and historical-ref fallback were checked through shell execution with stubbed commands.

Relied on the pinned launcher review and Docker fixture review for backend startup, credentials, fee configuration and Trezor execution.

Full review: 0682103…256fdf4, the single changed workflow and reached backend consumers, with an independent review.

Twin: bitkit-android#1939 ci: use the pinned Android regtest backend matches the launcher and cache cutover; iOS additionally retains its legacy fee and resets the persistent Compose project.



Reviewed by gpt-6.1-sol-high

@ben-kaufman ben-kaufman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No material findings in the workflow-only cutover to the pinned regtest and Trezor fixture at 256fdf477a7bb1af5b6427545035204334a9a3af. Both dependency PRs are merged.

The existing exact-head Appium run passed all 13 cases. Current selected checks are 10 passed, 14 skipped and 1 neutral, with none failing or pending. Historical setup and failure branches were inspected statically. No fresh local Docker, simulator or app execution was performed for this review.

Reviewer model: gpt-6.1-sol
Reasoning effort: xhigh

@piotr-iohk
piotr-iohk merged commit 3f5bd08 into master Nov 17, 2026
51 checks passed
@piotr-iohk
piotr-iohk deleted the codex/ios-shared-regtest branch November 17, 2026 21:03
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.

3 participants