-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 test report #5035
Upload test report #5035
Conversation
c6bd8a4
to
1df7f77
Compare
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
1df7f77
to
e9b082a
Compare
Signed-off-by: Albert Teoh <albert@packsmith.io>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5035 +/- ##
==========================================
+ Coverage 95.62% 95.63% +0.01%
==========================================
Files 314 314
Lines 18294 18294
==========================================
+ Hits 17493 17496 +3
+ Misses 642 640 -2
+ Partials 159 158 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Set to draft to test a few things. |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | ||
|
||
- name: Download and Extract Artifacts | ||
uses: dawidd6/action-download-artifact@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know what's different about it? It's preferable to use official actions like https://github.com/actions/download-artifact
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not specifically, but I did spend a good number of hours trying out actions/download-artifact without any luck. Oddly, it wasn't able to discover the uploaded files, but there may have been a silly mistake on my part 🤷🏼 Happy to take suggestions!
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
This reverts commit 7a4d186.
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
Signed-off-by: Albert Teoh <albert@packsmith.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file needs to be merged into main
first before we can see the results of the test report summary in PRs, which is why we can't see it in this PR.
- completed | ||
|
||
jobs: | ||
unit-test-results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary to separate this into a different workflow? Doing so requires all the juggling with artifact files. Can we not do all it at once directly in the unit test workflow, where we already call publish reports action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it necessary to separate this into a different workflow? Doing so requires all the juggling with artifact files. Can we not do all it at once directly in the unit test workflow, where we already call publish reports action?
It's a valid question, because one would think the action to execute the unit test and generate the results artifact is done as part of this repo's CI pipeline, so the relevant files should be easily accessible.
In fact, we're trying to do that now (publish test results as a comment to this PR) because, I agree, it's a lot simpler than juggling artifact uploads and downloads; but it's failing with this error message (from example run):
2024-01-01 12:55:11 +0000 - publish - INFO - This action is running on a pull_request event for a fork repository. Pull request comments and check runs cannot be created, so disabling these features. To fully run the action on fork repository pull requests, see https://github.com/EnricoMi/publish-unit-test-result-action/blob/v2.12.0/README.md#support-fork-repositories-and-dependabot-branches
I don't fully understand why, but from the log message, it almost sounds like a security measure to prevent PRs from another fork from writing to a PR owned by the "parent" repo, which seems to make sense.
Can you see any other alternative?
The output of this reporting action keeps rising my blood pressure... (not your fault, Albert) https://github.com/jaegertracing/jaeger/actions/runs/7387766706 What is "1 🔥"? When I look at JSON output there is clearly a test that failed:
|
It's documented here, albeit a little vaguely that it's an "erroneous" test, as opposed to a "failed" test. Based on your example "erroneous" test and an example "failed" test my interpretation is:
It is a little confusing though that, in both cases, the "Action" is "failed". |
@albertteoh one of the tests failed in Go Tip run: https://github.com/jaegertracing/jaeger/actions/runs/7428429111 Is there a way to see detailed test report? The one in the summary doesn't seem to have any links. |
Yes (I see you've already approved, thanks!): #5082 |
## Which problem is this PR solving? - #5035 (comment) ## Description of the changes - Publish detailed test report on go tip workflow run completion. ## How was this change tested? - Tested in my fork: https://github.com/albertteoh/jaeger/actions/runs/7429751382 The detailed report will be published under the Go Tip unit test run summary: <img width="690" alt="Screenshot 2024-01-06 at 4 42 57 pm" src="https://github.com/jaegertracing/jaeger/assets/26584478/5b1dc038-ab09-44fc-86d1-11cf18d21e2d"> <img width="722" alt="Screenshot 2024-01-06 at 4 43 12 pm" src="https://github.com/jaegertracing/jaeger/assets/26584478/9a09089e-74bd-458e-acfc-45fb89b59c2c"> ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits --------- Signed-off-by: Albert Teoh <albert@packsmith.io> Co-authored-by: Albert Teoh <albert@packsmith.io>
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist