test-reporter: Test Reporter fails on workflow_run
I have two step
...
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: "**/test-results*.trx"
...
and
name: report
on:
workflow_run:
workflows:
- build
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results
name: dotnet tests
path: '**/test-results*.trx'
reporter: dotnet-trx
trx file is successfully uploaded, inspecting the URL of test reporter action, it offers me to download the file, but the action fails
Report fails with error HTTPError: Response code 400 (Authentication information is not given in the correct format. Check the value of Authorization header.)
Additional info: it worked, but after I bumped the version of the upload-artifacts (among other), somehow stopped working…
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 5
- Comments: 16 (8 by maintainers)
Commits related to this issue
- Revert upload-artifact v4 change Seems to be generally broken with the test report action https://github.com/dorny/test-reporter/issues/343 — committed to SapiensAnatis/Dawnshard by SapiensAnatis 3 years ago
- Use upload-artifact@v3 for test results https://github.com/dorny/test-reporter/issues/343 Run-GHA: true RPM-test-version: 2.5.101 Skip-func-hw-test: true Test-tag: always_passes Required-githooks: ... — committed to daos-stack/daos by brianjmurrell 3 years ago
- Add workaround for dorny/test-reporter#343 — committed to JojOatXGME/gradle-grammar-kit-plugin by JojOatXGME 3 years ago
- Revert upload-artifact v4 change Seems to be generally broken with the test report action https://github.com/dorny/test-reporter/issues/343 — committed to SapiensAnatis/Dawnshard by SapiensAnatis 3 years ago
- remove resolved issue reference see https://github.com/dorny/test-reporter/issues/363 also https://github.com/dorny/test-reporter/issues/343 — committed to GnuCash-Pocket/gnucash-android by djbrown 2 years ago
@jozefizso are you aware of any way to fix this? Would it require bumping the major version here as well, or could it be made compatible with either?
FIY again, I also created a feature request for support of
raw_detailsin annotations created from workflows. I hope that would eventually make the need for a separate workflow obsolete.It is not. As I previously said, it produces this failure:
when the artifact list clearly has artifacts that match the RE:
They don’t have the same name though. One has
8.8in it where the other has9.It is actually
artifacts@v4that is broken. They chose to, deliberately, make it backwards incompatible. And the guide to fix it isn’t all that useful.Simply downgrading should be enough. See the breaking changes here: https://github.com/actions/upload-artifact?tab=readme-ov-file#breaking-changes
Even if you applied fixes, it looks like any changes you did to accommodate v4, would work with v3. I think the main issue is same-named artifacts, which don’t work anymore.
@jozefizso said previously:
So given that it’s 4 months on since the above comment, what’s the plan to fix this?
How is this action in any way usable given this issue? I.e. isn’t is completely broken at this point now? Or does this issue only affect certain use cases of this action? If so, which use cases are still working?
FYI I was able to make this work using a similar
workflow_runsetup by manually invoking thedownload-artifactaction at v4:You have to generate your own
secrets.PERSONAL_ACCESS_TOKENfor thedownload-artifactaction to be able to download artifacts from outside its own workflow. (see: https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories) The workflow to download from is specified using${{ github.event.workflow_run.id }}