Skip to content

ci: run iOS integration on hosted macOS - #1343

Closed
piotr-iohk wants to merge 1 commit into
masterfrom
codex/hosted-integration-checks
Closed

piotr-iohk wants to merge 1 commit into
masterfrom
codex/hosted-integration-checks

Conversation

@piotr-iohk

Copy link
Copy Markdown
Collaborator

Companion: #1340

This PR runs the required XCTest integration check on GitHub-hosted macos-26 for same-repository PRs. It uses authenticated staging funding and mining so the integration job can run while Appium E2E is using the Mac mini.

Description

  • Keeps the Run Integration Tests check on PRs and pushes to master, with manual dispatch and retarget reporting available.
  • Runs all three integration suites against the same authenticated staging chain. Fork PRs and older retarget snapshots use the isolated regtest stack.
  • Allows CI to specify the replacement faucet URL, Electrum URL, and credentials together when the replacement is deployed.

Design

N/A. CI and test infrastructure only.

Preview

N/A.

QA Notes

Setup

The hosted job uses Xcode 26.6 and an iPhone 17 on iOS 26.5. It defaults to the existing staging hosts and BLOCKTANK_REGTEST_AUTH. For a replacement backend, set both INTEGRATION_REGTEST_API_URL and INTEGRATION_REGTEST_ELECTRUM_URL as Actions variables and INTEGRATION_REGTEST_AUTH as an Actions secret.

Journeys

N/A.

Manual Tests

  • 1. Dispatch integration-tests on the PR branch in Actions and confirm the hosted job completes the three XCTest suites.

Automated Checks

  • Updated UtxoSelectionTests.swift and AddressTypeIntegrationTests.swift to use the configured faucet for test funding and confirmation.
  • Ran 73 existing retarget tests. All passed.
  • Checked seven backend routing cases locally, covering same-repository PRs, forks, dispatch and older snapshots.

Evidence

  • The manual pilot at 7552c3f passed all 28 tests on GitHub-hosted macos-26 with authenticated staging. The test step took 10m 57s with XCTest retries disabled. Pilot run
  • SwiftFormat 0.64.6, Swift parsing, workflow YAML and shell syntax checks passed for 313d08f.

Gaps

  • The automatic run of the PR revision starts when the PR opens. The replacement staging configuration and a real fork run still need CI coverage.

Models used

  • Planning/scoping: Unknown
  • Implementation: Unknown
  • Review: Not performed

Metadata note: The session does not expose the exact model or reasoning setting.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Moves same-repository integration runs to GitHub-hosted macOS with authenticated staging funding and mining.

  • Integration checks choose hosted staging or a local regtest stack.
  • Integration tests can fund and mine on staging or local regtest.

No actionable issues were found. This review checked source and workflow wiring; it did not run XCTest.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Integration run] --> B{Fork PR?}
    B -->|Yes| L[Namespace runner with local regtest]
    B -->|No| C{Pinned snapshot lacks staging support?}
    C -->|Yes| L
    C -->|No| S[Hosted macOS with authenticated staging]
    L --> T[Run three XCTest suites]
    S --> T
    T --> R[Report test result]
Loading

Reviews (1) · Last reviewed commit: "ci: run iOS integration on hosted macOS" · Reviewed by Greptile

@piotr-iohk

Copy link
Copy Markdown
Collaborator Author

Closing this pilot since Maxim is handling the split in #1340. The manual run passed all 28 integration tests on GitHub-hosted macos-26 with authenticated staging. The branch is available if any of the changes are useful for the follow-up. Pilot run

@piotr-iohk piotr-iohk closed this Nov 16, 2026
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.

1 participant