CI: fail if "error occurred" #145

Closed
opened 2026-05-22 10:28:36 +00:00 by guettli · 0 comments
guettli commented 2026-05-22 10:28:36 +00:00 (Migrated from codeberg.org)

Look at:

Test results will be streamed to [ https://console.firebase.google.com/project/sharedinbox-496103/testlab/histories/bh.e2f77c58eca6e2ca/matrices/8057574493482132177 ].
10:08:17 Test is Pending
10:09:07 Starting attempt 1.
10:09:07 Test is Running
10:13:14 A non-retryable error occurred.
10:13:14 Done. Test time = 183 (secs)
10:13:14 Starting results processing. Attempt: 1
10:13:14 Completed results processing. Time taken = 6 (secs)
10:13:14 Test is Finished
Instrumentation testing complete.
More details are available at [ https://console.firebase.google.com/project/sharedinbox-496103/testlab/histories/bh.e2f77c58eca6e2ca/matrices/8057574493482132177 ].
┌─────────┬───────────────────────┬──────────────┐
│ OUTCOME │    TEST_AXIS_VALUE    │ TEST_DETAILS │
├─────────┼───────────────────────┼──────────────┤
│ Passed  │ oriole-33-en-portrait │ --           │
└─────────┴───────────────────────┴──────────────┘
ERROR: Firebase error detected in output
Stderr:
Activated service account credentials for: [firebase-test-lab-ci@sharedinbox-496103.iam.gserviceaccount.com]
Updated property [core/project].
task: Failed to run task "test-android-firebase": exit status 1
::error title=Task 'test-android-firebase' failed::exit status 1

source: https://codeberg.org/guettli/sharedinbox/actions/runs/479/jobs/0/attempt/1#jobstep-4-362


It does not fail because of "error occurred", but because of

Stderr:
Activated service account credentials for: [firebase-test-lab-ci@sharedinbox-496103.iam.gserviceaccount.com]
Updated property [core/project].


Update that:

Ignore these stderr lines. But keep "fail if unknown stderr".

Additionally: fail if there is "error" in the output.

And: fail if the number of executed tests do not match.

Look at: ``` Test results will be streamed to [ https://console.firebase.google.com/project/sharedinbox-496103/testlab/histories/bh.e2f77c58eca6e2ca/matrices/8057574493482132177 ]. 10:08:17 Test is Pending 10:09:07 Starting attempt 1. 10:09:07 Test is Running 10:13:14 A non-retryable error occurred. 10:13:14 Done. Test time = 183 (secs) 10:13:14 Starting results processing. Attempt: 1 10:13:14 Completed results processing. Time taken = 6 (secs) 10:13:14 Test is Finished Instrumentation testing complete. More details are available at [ https://console.firebase.google.com/project/sharedinbox-496103/testlab/histories/bh.e2f77c58eca6e2ca/matrices/8057574493482132177 ]. ┌─────────┬───────────────────────┬──────────────┐ │ OUTCOME │ TEST_AXIS_VALUE │ TEST_DETAILS │ ├─────────┼───────────────────────┼──────────────┤ │ Passed │ oriole-33-en-portrait │ -- │ └─────────┴───────────────────────┴──────────────┘ ERROR: Firebase error detected in output Stderr: Activated service account credentials for: [firebase-test-lab-ci@sharedinbox-496103.iam.gserviceaccount.com] Updated property [core/project]. task: Failed to run task "test-android-firebase": exit status 1 ::error title=Task 'test-android-firebase' failed::exit status 1 ``` source: https://codeberg.org/guettli/sharedinbox/actions/runs/479/jobs/0/attempt/1#jobstep-4-362 --- It does not fail because of "error occurred", but because of > Stderr: Activated service account credentials for: [firebase-test-lab-ci@sharedinbox-496103.iam.gserviceaccount.com] Updated property [core/project]. --- Update that: Ignore these stderr lines. But keep "fail if unknown stderr". Additionally: fail if there is "error" in the output. And: fail if the number of executed tests do not match.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: guettli/sharedinbox#145