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

Test results action #3087

Merged
merged 1 commit into from
Apr 18, 2022
Merged

Conversation

eygraber
Copy link
Contributor

@eygraber eygraber commented Apr 14, 2022

Closes #3075

Testing things out

@AlecStrong @JakeWharton looks like this might not be as useful because of https://youtrack.jetbrains.com/issue/KT-32608

Any thoughts / ideas?

@AlecKazakova
Copy link
Collaborator

I mean even if it aggregates and has a nicer display for the compiler and gradle plugin tests which are JVM only that will be 99% of test failures on CI. All the multiplatform libs are mega stable, and you would still be able to find the original error report in the normal logs.

If it's impossible to only aggregate some of the reports than yea probably nothing we can do

@eygraber
Copy link
Contributor Author

It should be able to aggregate the compiler and gradle plugin tests. I'll try that now.

@eygraber
Copy link
Contributor Author

Looks like it should work, but running into mikepenz/action-junit-report#23

@AlecKazakova
Copy link
Collaborator

according to their docs it should be using the github token by default

@eygraber
Copy link
Contributor Author

Right, but I think that because the PR is coming from my fork it gets a read only token, so it can't write any of the annotations or checks.

@JakeWharton
Copy link
Member

Yeah you need to exclude the step from running on forks

@AlecKazakova
Copy link
Collaborator

guess we'll see how it looks with the next failure in cash

@AlecKazakova AlecKazakova merged commit 28f005f into cashapp:master Apr 18, 2022
@@ -91,5 +91,11 @@ jobs:
name: error-report
path: build-reports.zip

- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: github.repository_owner == 'cashapp' # always run even if the previous step fails
Copy link
Member

Choose a reason for hiding this comment

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

Comment doesn't match the key/value pair. Are we missing if: ${{ always() }}?

Copy link
Member

Choose a reason for hiding this comment

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

Or is that what you replaced?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah that got replaced.

I guess the comment should be:

# always run even if the previous step fails if the source is from the cashapp org

Copy link
Collaborator

Choose a reason for hiding this comment

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

PR welcome! :D

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.

Publishing unit test results for PRs
3 participants