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

Fix up + improve CI test reporting workflow #30543

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

smoogipoo
Copy link
Contributor

GitHub issued a deprecation warning for actions/upload-artifact@v3, so we upgraded to v4. This now uses Azure Blob Storage with SAS, which the dorny/test-reporter action seems to not be compatible with likely because it passes the Authorization header that is no longer required.

To fix this I've rewritten the workflow so that it uses actions/download-artifact to download the results, with the test reporter now running on local files.

In the process I've refactored it to run once per execution which comes with the benefit of deduping annotations.

See example: https://github.com/smoogipoo/osu/actions/runs/11735233749/job/32693913350

@bdach bdach self-requested a review November 8, 2024 07:05
Comment on lines +24 to +28
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.repository.full_name }}
ref: ${{ github.event.workflow_run.head_sha }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this checking out the source? Is this required for anything?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's required by the test reporter when not using artifacts, for some reason. See for example: https://github.com/smoogipoo/osu/actions/runs/11724637370/job/32659046284

@bdach bdach merged commit ce9c74a into ppy:master Nov 8, 2024
9 checks passed
bdach added a commit to bdach/osu-framework that referenced this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants