Skip to content

ci: use the pinned Android regtest backend - #1939

Merged
piotr-iohk merged 2 commits into
masterfrom
codex/android-shared-regtest
Nov 16, 2026
Merged

piotr-iohk merged 2 commits into
masterfrom
codex/android-shared-regtest

Conversation

@piotr-iohk

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

Copy link
Copy Markdown
Collaborator

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

Part of the Android cutover tracked in synonymdev/bitkit-e2e-tests#210.

Description

  • Start the shared regtest stack through the E2E repo's pinned launcher for Android's local Appium shards.
  • Pull Trezor from the same pinned checkout for the Android staging hardware-wallet shard.
  • Preserve the bundled Compose fallback when the workflow selects an older E2E branch.
  • Scope the npm cache key to the E2E lockfile so cache cleanup finishes after the tests.

QA Notes

Setup

Dispatch E2E and E2E Staging with e2e_branch=codex/android-shared-regtest. The launcher fetches the exact upstream Docker SHA.

Evidence

  • A local-backend APK from 4abf7ea6b passed @onchain_1 on an isolated Android 13 emulator and fresh Compose volumes.
  • Shell syntax, workflow YAML, and the final Docker fixture startup passed. Independent review verified the local smoke result applies to the final candidate.
  • All seven local shards and the E2E status check passed against Android commit 911193f84 and E2E commit 6233464. Android local matrix
  • Staging hardware wallet and Pubky/Paykit passed on cutover commit 4abf7ea6b, before the npm cache-key and send-test follow-ups. Android staging

Models used

  • Planning/scoping: gpt-6.1-sol (reasoning: high)
  • Implementation: gpt-6.1-sol (reasoning: high)
  • Review: gpt-6.1-sol (reasoning: high), three independent passes

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Regtest APK

Built from 911193f (run).

Download bitkit-dev-debug universal APK (expires in 30 days).

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge; no actionable defect was established.

Summary

Updates Android E2E workflows to use the pinned backend through the E2E repository’s launcher.

  • Android’s local E2E shards start regtest through the selected checkout’s launcher.
  • The staging hardware-wallet shard pulls Trezor through the selected checkout’s launcher.
  • Both E2E workflows key the npm cache from the E2E checkout’s lockfile.

No actionable issues were established. Review covered the workflow changes and local callers; companion script behavior and runtime results were not independently verified.

Reviews (1) · Last reviewed commit: "ci: scope appium cache keys to the e2e l..." · 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 Android local and staging-Trezor E2E onto the E2E repo's pinned scripts/local-backend, keeping the bundled Compose path for older E2E refs. Reviewed 911193f, full tier, from the code and CI; the branch was not built here (build skipped: the author's permission could not be read with this token).

What I checked, and the candidates I ruled out

Read in full: e2e.yml and e2e-staging.yml setup steps, against bitkit-e2e-tests#313 at 46abebb (scripts/local-backend, scripts/trezor-emulator, ci_run_android.sh, test/helpers/constants.ts)
CI: the Android local matrix run 43891340222 succeeded on this exact head; staging run 43882280220 succeeded on 4abf7ea6b, before the cache-key follow-up

Ruled out

  • Reserved ports miss the new LND host ports: 23009, 23180 and 23735 are added, matching what local-backend github-env exports.
  • Tests still read docker/lnd credentials: github-env sets LND_TLS_PATH/LND_MACAROON_PATH, and constants.ts prefers them.
  • App dials the wrong LND port: ci_run_android.sh reverses LND_P2P_PORT on both sides and the LND test helper types the same variable.
  • Older E2E branch breaks: the -x ./scripts/local-backend test falls back to the old compose steps unchanged.

Merge confidence: 4/5, no findings and the local matrix is green on this head, but the staging hardware-wallet path last ran before the final commits.

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 16, 2026 23:03

@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

Findings: None.

QA for 911193f:

Check: workflow validation ✅ Both workflows pass actionlint, YAML parsing and shell syntax checks.

actionlint 1.7.12 ran without its optional ShellCheck integration; bash -n accepted all embedded shell blocks. git diff --check passed.

Check: backend selection ✅ The pinned launcher and legacy Compose paths match their callers.

Checked the launchers from bitkit-e2e-tests#313 at 46abebb and the pin from bitkit-docker#41 at a73f84c, including endpoint, credential and Trezor environment propagation.

Build: local-backend APK ✅ The local-backend debug APK builds at the reviewed head.

E2E=true ./gradlew --no-daemon assembleDevDebug at 911193f.

Check: local Android CI evidence ✅ The exact-head local matrix and npm cache cleanup passed.

Relied on the local matrix and the later local run using the final Docker pin. Both ran against 911193f; the later run checked out the merged E2E tree matching 46abebb and Docker a73f84c.

Check: staging CI evidence ✅ Trezor and Pubky/Paykit passed on the unchanged staging runtime setup.

Relied on the staging run at 4abf7ea with E2E b7e6c60 and Docker 962b674. The app's remaining delta only changes npm cache keys. The later E2E changes affect send-test assertions and the Docker pin; Docker's delta makes the fallback fee configurable while preserving its default. The staging launcher and Trezor implementation are unchanged.

No fresh device run: this CI-only change adds no user-visible behavior, and the existing device results above cover the unchanged runtime paths. The final staging cache-key edit was checked statically and uses the same expression exercised by the exact-head local run.

Full review: abf4665…911193f, both changed workflow files.

Twin: bitkit-ios#1348 ci: use the pinned iOS regtest backend matches the pinned launcher and cache cutover, with iOS-specific cleanup and fallback-fee settings.


Reviewed by gpt-6.1-sol-high

@ovitrif ovitrif left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

utAck

@piotr-iohk
piotr-iohk merged commit 1f851d5 into master Nov 16, 2026
78 of 84 checks passed
@piotr-iohk
piotr-iohk deleted the codex/android-shared-regtest branch November 16, 2026 23:23
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