-
Notifications
You must be signed in to change notification settings - Fork 98
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 label removal logic for SQL engine tests #1253
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
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 breaks our workflow_dispatch
@@ -15,7 +15,7 @@ env: | |||
jobs: | |||
snowflake-tests: | |||
environment: DW_INTEGRATION_TESTS | |||
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'Run Tests With Other SQL Engines' }} |
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.
Removing the first part of this check breaks all other triggers, because it requires the event to have this label name.
@@ -15,7 +15,7 @@ env: | |||
jobs: |
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.
With this change this workflow_dispatch trigger will succeed in doing nothing.
See this comment inline on Graphite.
I'm missing some context - what were the use cases for |
Got context from @tlento that the workflow dispatched used to check if |
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.
LGTM, thanks!
@@ -115,7 +118,8 @@ jobs: | |||
name: Remove Label After Running Tests | |||
runs-on: ubuntu-latest | |||
needs: [ snowflake-tests, redshift-tests, bigquery-tests, databricks-tests ] | |||
if: github.event.action == 'labeled' && github.event.label.name == 'Run Tests With Other SQL Engines' | |||
# Default behavior for `needs` is that it requires success, so a success / failure needs to be specifically checked. | |||
if: ${{ (success() || failure()) && github.event.action == 'labeled' }} |
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.
Oh nice.
Description
This PR fixes an issue where
Run Tests With Other SQL Engines
label isn't getting removed when tests fail.