Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into undecorate-typecheck
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Fomitchev <[email protected]>
  • Loading branch information
borisfom committed Jun 11, 2024
2 parents 732c119 + f1062b7 commit a5caddb
Show file tree
Hide file tree
Showing 473 changed files with 41,979 additions and 19,852 deletions.
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Add a one line overview of what this PR aims to accomplish.
# Add a code snippet demonstrating how to use this
```

# Jenkins CI
# GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

There's no need to comment `jenkins` on the PR to trigger Jenkins CI.
The GitHub Actions CI will run automatically when the PR is opened.
To run CI on an untrusted fork, a NeMo user with write access must click "Approve and run".
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

# Before your PR is "Ready for review"
**Pre checks**:
Expand Down
23 changes: 23 additions & 0 deletions .github/scripts/slackHelper.sh
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

}
58 changes: 58 additions & 0 deletions .github/workflows/_test_template.yml
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 }}
104 changes: 0 additions & 104 deletions .github/workflows/blossom-ci.yml

This file was deleted.

Loading

0 comments on commit a5caddb

Please sign in to comment.