forked from NVIDIA/NeMo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into undecorate-typecheck
Signed-off-by: Boris Fomitchev <[email protected]>
- Loading branch information
Showing
473 changed files
with
41,979 additions
and
19,852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
function sendSlackMessage() { | ||
|
||
WEBHOOK_URL="$1" | ||
PIPELINE_URL="$2" | ||
|
||
curl -X POST -H "Content-type: application/json" --data "{ | ||
\"blocks\": [ | ||
{ | ||
\"type\": \"section\", | ||
\"text\": { | ||
\"type\": \"mrkdwn\", | ||
\"text\": \"\ | ||
🚨 *CI/CD failure at <$PIPELINE_URL|NeMo CI>*: | ||
\" | ||
} | ||
} | ||
] | ||
}" $WEBHOOK_URL | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: ~test template | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
RUNNER: | ||
type: string | ||
description: Runner to use for test | ||
required: true | ||
TIMEOUT: | ||
type: number | ||
description: Max runtime of test in minutes | ||
required: false | ||
default: 10 | ||
SCRIPT: | ||
type: string | ||
description: Test script to execute | ||
required: true | ||
AFTER_SCRIPT: | ||
type: string | ||
description: Script to run after main test | ||
required: false | ||
default: ":" | ||
IS_OPTIONAL: | ||
type: boolean | ||
description: Failure will cancel all other tests if set to true | ||
required: false | ||
default: false | ||
outputs: | ||
conclusion: | ||
description: Conclusion of main test step | ||
value: ${{ jobs.main.outputs.conclusion }} | ||
|
||
jobs: | ||
main: | ||
runs-on: ${{ inputs.RUNNER }} | ||
timeout-minutes: ${{ inputs.TIMEOUT }} | ||
outputs: | ||
conclusion: ${{ steps.main.conclusion }} | ||
container: | ||
image: nemoci.azurecr.io/nemo_container_${{ github.run_id }} | ||
options: | ||
--device=/dev/nvidia0 | ||
--gpus all | ||
--shm-size=8g | ||
--env TRANSFORMERS_OFFLINE=0 | ||
--env HYDRA_FULL_ERROR=1 | ||
--volume /mnt/datadrive/TestData:/home/TestData | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- id: main | ||
run: ${{ inputs.SCRIPT }} | ||
- uses: "NVIDIA/NeMo/.github/actions/cancel-workflow@main" | ||
if: failure() && inputs.IS_OPTIONAL == false | ||
- name: after_script | ||
if: always() && inputs.AFTER_SCRIPT != ':' | ||
run: ${{ inputs.AFTER_SCRIPT }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.