-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into boxiangw/add-config-validation
- Loading branch information
Showing
34 changed files
with
935 additions
and
355 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,54 +6,15 @@ on: | |
- cron: 0 0 * * * | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
environment: main | ||
steps: | ||
- name: Checkout NVIDIA/Megatron-LM | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: NVIDIA/Megatron-LM | ||
ref: main | ||
path: ${{ github.run_id }} | ||
|
||
- name: Get latest mcore commit | ||
id: ref | ||
run: | | ||
cd ${{ github.run_id }} | ||
sha=$(git rev-parse origin/main) | ||
echo "sha=${sha}" >> "$GITHUB_OUTPUT" | ||
echo "short_sha=${sha:0:7}" >> "$GITHUB_OUTPUT" | ||
echo "date=$(date +%F)" >> "$GITHUB_OUTPUT" | ||
- name: Checkout ${{ github.repository }} | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ${{ github.run_id }} | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Bump MCORE_TAG | ||
run: | | ||
cd ${{ github.run_id }} | ||
sed -i 's/^ARG MCORE_TAG=.*$/ARG MCORE_TAG=${{ steps.ref.outputs.sha }}/' Dockerfile.ci | ||
- name: Create Bump PR | ||
uses: peter-evans/create-pull-request@v6 | ||
id: create-pull-request | ||
with: | ||
path: ${{ github.run_id }} | ||
branch: bump-ci-container-${{ steps.ref.outputs.date }} | ||
base: main | ||
title: 'Bump `Dockerfile.ci` (${{ steps.ref.outputs.date }})' | ||
token: ${{ secrets.PAT }} | ||
body: | | ||
🚀 PR to Bump `Dockerfile.ci`. | ||
📝 Please remember the following to-do's before merge: | ||
- [ ] Verify the presubmit CI | ||
🙏 Please merge this PR only if the CI workflow completed successfully. | ||
commit-message: "[🤠]: Howdy folks, let's bump `Dockerfile.ci` to ${{ steps.ref.outputs.short_sha }} !" | ||
signoff: true | ||
reviewers: 'pablo-garay' | ||
labels: 'Run CICD' | ||
mcore: | ||
uses: NVIDIA/NeMo-FW-CI-templates/.github/workflows/[email protected] | ||
with: | ||
source-repository: NVIDIA/Megatron-LM | ||
source-ref: main | ||
build-arg: MCORE_TAG | ||
dockerfile: Dockerfile.ci | ||
base-branch: main | ||
cicd-label: Run CICD | ||
pr-reviewers: 'pablo-garay' | ||
secrets: | ||
PAT: ${{ secrets.PAT }} |
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
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
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
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
Oops, something went wrong.