-
Notifications
You must be signed in to change notification settings - Fork 41
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
[DAR-3431][External] Adding passing E2E tests as a requirement to release #903
Conversation
@@ -7,6 +7,7 @@ on: | |||
pull_request: | |||
paths: | |||
- "e2e_tests/**" | |||
workflow_call: |
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.
Need this trigger to allow it to be called during the release event
@@ -957,7 +957,7 @@ def import_annotations( # noqa: C901 | |||
|
|||
def import_annotation(parsed_file): | |||
image_id = remote_files[parsed_file.full_path]["item_id"] | |||
default_slot_name = remote_files[parsed_file.full_path]["slot_names"] | |||
default_slot_name = remote_files[parsed_file.full_path]["slot_names"][0] |
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.
Bonus bug fix when importing annotation files that don't specify a slot name. This is one of the bugs we would have caught with E2E failures
if: failure() && github.event_name == 'schedule' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify Slack | ||
uses: ./.github/workflows/JOB_slack_message.yml | ||
with: | ||
secrets: inherit | ||
icon: ":warning:" | ||
at_team: true | ||
message: | | ||
*Nightly E2E run failed* | ||
|
||
:link: | ||
- https://github.com/v7labs/darwin-py/actions/runs/${{ github.run_id }} | ||
:warning: ${{ github.workflow }} failed. | ||
uses: ./.github/workflows/JOB_slack_message.yml | ||
with: | ||
message: | | ||
*Nightly E2E run failed* | ||
|
||
:link: | ||
- https://github.com/v7labs/darwin-py/actions/runs/${{ github.run_id }} | ||
:warning: ${{ github.workflow }} failed. | ||
icon: ":warning:" | ||
at_team: true | ||
secrets: inherit |
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 part calls the slack message job as a job instead of an action. I'm not sure how this ever used to work, since as far as I can tell this should only ever work if called as a job
I'm not sure how this ever used to work
Problem
We've recently had a couple annotation import bugs that would have been caught by E2E tests. However:
Solution
This PR:
Changelog
Introduced a requirement for E2E tests to pass before new darwin-py versions can be released