Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload instrumentation report regardless if tests failed #7071

Merged

Conversation

niklasberglund
Copy link
Collaborator

@niklasberglund niklasberglund commented Oct 24, 2024

Upload instrumentation test report no matter whether tests failed or ran successfully. Before it not uploaded if tests fail because by default a step's if have a successful() condition steps following a failing test not to run.


This change is Reviewable

@niklasberglund niklasberglund self-assigned this Oct 24, 2024
Copy link

linear bot commented Oct 24, 2024

@niklasberglund niklasberglund added the Android Issues related to Android label Oct 24, 2024
Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @niklasberglund)


.github/workflows/android-app.yml line 480 at r1 (raw file):

      - name: Upload instrumentation report (${{ matrix.test-type }})
        uses: actions/upload-artifact@v4
        if: always() && matrix.test-repeat != 0

What is always(), just true? I don't follow how this change aligns with the name of the PR.

@albin-mullvad albin-mullvad added the On hold Means the PR is paused for some reason. No need to review it for now label Oct 29, 2024
@niklasberglund niklasberglund force-pushed the instrumentation-test-report-not-uploaded-when-tests-fail-droid-1460 branch from c888ec7 to 299e671 Compare November 18, 2024 11:13
@niklasberglund niklasberglund removed the On hold Means the PR is paused for some reason. No need to review it for now label Nov 18, 2024
Copy link
Collaborator Author

@niklasberglund niklasberglund left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @Rawa)


.github/workflows/android-app.yml line 480 at r1 (raw file):

Previously, Rawa (David Göransson) wrote…

What is always(), just true? I don't follow how this change aligns with the name of the PR.

GitHub Actions does some magic with status checks in if conditions. If no status check is specified it will default to success() and the the step will only run if previous steps are successful. With always() this step will run even if previous steps failed.

https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#status-check-functions

Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


.github/workflows/android-app.yml line 480 at r1 (raw file):

Previously, niklasberglund (Niklas Berglund) wrote…

GitHub Actions does some magic with status checks in if conditions. If no status check is specified it will default to success() and the the step will only run if previous steps are successful. With always() this step will run even if previous steps failed.

https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#status-check-functions

😳

Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


.github/workflows/android-app.yml line 480 at r1 (raw file):

Previously, Rawa (David Göransson) wrote…

😳

👍

Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Rawa Rawa force-pushed the instrumentation-test-report-not-uploaded-when-tests-fail-droid-1460 branch from 299e671 to dfc09b5 Compare November 21, 2024 09:23
@Rawa Rawa merged commit 204bd7c into main Nov 21, 2024
22 of 24 checks passed
@Rawa Rawa deleted the instrumentation-test-report-not-uploaded-when-tests-fail-droid-1460 branch November 21, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants