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

Fetch autograph logs in Github actions integration tests #938

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

oskirby
Copy link
Contributor

@oskirby oskirby commented Aug 1, 2024

This should add a step after an integration test runs that outputs the logs from the autograph container to the github workflow console. This should better allow us to investigate the cause of a failure. Note that the use of if: ${{ always() }} should cause this step to be run even if the preceeding steps result in a failure.

@oskirby oskirby marked this pull request as ready for review August 1, 2024 15:44
@oskirby oskirby requested review from a team as code owners August 1, 2024 15:44
@oskirby oskirby requested review from jmhodges and removed request for a team August 1, 2024 15:44

- name: Fetching autograph logs
shell: bash
if: ${{ always() }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this cause issues if we don't reach the previous step? Maybe we don't care if this fails in weird ways if something early (eg: checking out) fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the container never starts, this just outputs nothing so the failure mode is a no-op in this case.

I also don't think it matters if the job fails in weird ways at this point as we are already dealing with an error. What's one more?

@oskirby oskirby merged commit 8797a73 into main Aug 1, 2024
15 checks passed
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.

2 participants