Skip to content

Do not auto-retry native builds before tests - #11

Open
ofalvai wants to merge 1 commit into
masterfrom
push-ptoxmustsqmk
Open

Do not auto-retry native builds before tests#11
ofalvai wants to merge 1 commit into
masterfrom
push-ptoxmustsqmk

Conversation

@ofalvai

@ofalvai ofalvai commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Context

E2E tests perform full native xcodebuild/gradle builds, and those builds can fail for various reasons (this is a kind of verification, even before any E2E test case actually runs). At the moment, those failures are retried automatically, citing:

The first time an iOS project is built, it fails because it does not finish building libReact.a before it builds the test app.

This is probably no longer true, and the retry makes test runs unnecessarily long when there is a genuine failure.

Changes

Remove that retry logic completely.

Also, the old iOS handler ended in return null on the second failure, so a genuinely broken build resolved as success and the failure surfaced later as a confusing "app not installed" error. Now a bad xcodebuild rejects and fails the run directly.

Edit: re-ran CI 4 times just to see if it's flaky, but every run was green.

@ofalvai
ofalvai marked this pull request as ready for review July 30, 2026 18:35
@bitrise-io bitrise-io deleted a comment from coderabbitai Bot Jul 31, 2026
@ofalvai
ofalvai force-pushed the push-ptoxmustsqmk branch from 1db66b8 to 566d945 Compare August 13, 2026 14:37
Comment thread test/test.ts
/**
* Build function of the test application, the command depends on the OS
*/
buildFunction(androidDirectory: string): Q.Promise<void> {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just inline this to the 1 remaining callsite

@ofalvai
ofalvai requested a balanced review from Copilot August 13, 2026 14:41

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

test/test.ts:341

  • realBuildApp now propagates every xcodebuild rejection, but the comment in buildApp at lines 288–293 still says this method swallows a failed retry and calls that behavior unchanged. That documentation now contradicts both this implementation and the PR’s purpose; remove the retry/swallowed-failure explanation or rewrite it to describe only why the output existence check is retained.
            .then<void>(() => { return null; });

@ofalvai
ofalvai force-pushed the push-ptoxmustsqmk branch from 566d945 to 27310e3 Compare August 13, 2026 15:04

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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