-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
pull_request: | ||
paths: | ||
- "e2e_tests/**" | ||
workflow_call: | ||
jobs: | ||
e2e: | ||
name: End to End Testing | ||
|
@@ -41,22 +42,19 @@ jobs: | |
E2E_API_KEY: ${{ secrets.E2E_API_KEY }} | ||
E2E_ENVIRONMENT: ${{ secrets.E2E_ENVIRONMENT }} | ||
E2E_TEAM: ${{ secrets.E2E_TEAM }} | ||
|
||
slack-notifier: | ||
name: Slack Notifier Bot | ||
needs: e2e | ||
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 | ||
Comment on lines
49
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 parsed_file.slots and parsed_file.slots[0].name: | ||
default_slot_name = parsed_file.slots[0].name | ||
|
||
|
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