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

write traces to console by default #26

Merged
merged 3 commits into from
Feb 27, 2024
Merged

Conversation

James-Mart
Copy link
Member

@James-Mart James-Mart commented Feb 27, 2024

@@ -91,7 +91,7 @@ jobs:
build-contributor:
name: "Build contributor"
needs: [determine-actions, build-tool-config, build-2204]
if: ${{ needs.determine-actions.outputs.run_contrib == '1' }}
if: ${{ !cancelled() && needs.determine-actions.outputs.run_contrib == '1' }}
Copy link
Member Author

Choose a reason for hiding this comment

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

Strange behavior in github actions: If a needs job is skipped, then dependent jobs will be skipped, regardless whether the if condition passes.

Publicly known workaround appears to be to use always() in the if condition, but then the job can't be cancelled. From my testing it appears that !cancelled() is also a workaround but it has the benefit of still being cancellable.

@James-Mart James-Mart merged commit 7682e2c into main Feb 27, 2024
6 checks passed
@swatanabe swatanabe deleted the write-traces-to-console branch July 12, 2024 18:38
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