Skip to content

CI: retry the unit test task once (Robolectric download flake) - #12

Merged
GothwadTech merged 1 commit into
mainfrom
ci/retry-unit-tests
Nov 23, 2026
Merged

GothwadTech merged 1 commit into
mainfrom
ci/retry-unit-tests

Conversation

@GothwadTech

@GothwadTech GothwadTech commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Quality Gate & Tests on main (run 45221240488) failed with:

ExampleRobolectricTest > classMethod FAILED
    java.lang.AssertionError at MavenArtifactFetcher.java:129
UrlUtilsTest > classMethod FAILED
    java.lang.AssertionError at MavenArtifactFetcher.java:129
3 tests completed, 2 failed
BUILD FAILED in 16s

MavenArtifactFetcher is Robolectric downloading its android-all runtime. The same commit
had passed on the pull-request run two minutes earlier, so this is a network flake, not a
test failure.

Change

One retry of :app:testDebugUnitTest inside the existing step (no new workflow file, no
change to what the gate checks). A real test failure still fails the job — it just runs twice
and says so in the log.

Checks

The PR's own Quality Gate & Tests run is the proof.

Summary by CodeRabbit

  • Tests
    • Unit tests are retried once if the initial run fails. If the retry also fails, the test step still reports a failure.

The main-push run failed at MavenArtifactFetcher.java:129 — Robolectric could not
download its android-all runtime, not a test failure (the same commit passed on the
PR two minutes earlier). Retry the task once, then surface the real failure.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

Changes: Unit test retry

Layer / File(s) Summary
Unit test step retry
.github/workflows/quality.yml
The workflow renames the unit-test step and retries :app:testDebugUnitTest once after a failed attempt. Both attempts append output to gradle.log, and a failed retry fails the step.

Change: Other

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@GothwadTech
GothwadTech merged commit 1c73099 into main Nov 23, 2026
4 of 5 checks passed
@GothwadTech
GothwadTech deleted the ci/retry-unit-tests branch November 23, 2026 16:58
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