ba4be087d5
CICD NeMo / cicd-main-unit-tests (push) Blocked by required conditions
CICD NeMo / cicd-main-speech (push) Blocked by required conditions
CICD NeMo / cicd-test-container-build (push) Blocked by required conditions
CICD NeMo / cicd-import-tests (push) Blocked by required conditions
CICD NeMo / L0_Setup_Test_Data_And_Models (push) Blocked by required conditions
CICD NeMo / Nemo_CICD_Test (push) Blocked by required conditions
CICD NeMo / Coverage (e2e) (push) Blocked by required conditions
CICD NeMo / Coverage (unit-test) (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Create PR to main with cherry-pick from release / cherry-pick (push) Failing after 0s
CICD NeMo / pre-flight (push) Failing after 0s
CICD NeMo / configure (push) Has been skipped
Build, validate, and release Neural Modules / pre-flight (push) Failing after 1s
CICD NeMo / code-linting (push) Has been skipped
CICD NeMo / cicd-wait-in-queue (push) Waiting to run
Build, validate, and release Neural Modules / release (push) Has been skipped
Build, validate, and release Neural Modules / release-summary (push) Has been cancelled
81 lines
2.5 KiB
YAML
81 lines
2.5 KiB
YAML
name: "Code freeze"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
type_of_release:
|
|
type: choice
|
|
description: Type of release
|
|
options:
|
|
- major
|
|
- minor
|
|
freeze-commit:
|
|
type: string
|
|
description: Commit SHA to use for cut-off
|
|
required: false
|
|
default: main
|
|
mcore_version:
|
|
description: "Version of MCore to use (must be a valid git ref)"
|
|
required: true
|
|
type: string
|
|
dry-run:
|
|
type: boolean
|
|
description: Dry-run of code-freeze
|
|
required: false
|
|
default: true
|
|
|
|
jobs:
|
|
code-freeze:
|
|
uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_code_freeze.yml@v0.86.0
|
|
with:
|
|
library-name: NeMo-Toolkit
|
|
python-package: nemo
|
|
release-type: ${{ inputs.type_of_release }}
|
|
freeze-commit: ${{ inputs.freeze-commit }}
|
|
dry-run: ${{ inputs.dry-run }}
|
|
use-pat: true
|
|
secrets:
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ENDPOINT }}
|
|
SLACK_WEBHOOK_ADMIN: ${{ secrets.SLACK_WEBHOOK_ADMIN }}
|
|
PAT: ${{ secrets.PAT }}
|
|
|
|
freeze-tags:
|
|
runs-on: ubuntu-latest
|
|
needs: [code-freeze]
|
|
environment: main
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
path: ${{ github.run_id }}
|
|
token: ${{ secrets.PAT }}
|
|
fetch-depth: 0
|
|
fetch-tags: true
|
|
ref: ${{ inputs.dry-run == true && inputs.freeze-commit || needs.code-freeze.outputs.release-branch }}
|
|
|
|
- name: Pin branch name in Notebooks
|
|
run: |
|
|
cd ${{ github.run_id }}
|
|
find tutorials -type f -name "*.ipynb" -exec sed -i "s/BRANCH = 'main'/BRANCH = '${{ needs.code-freeze.outputs.release-branch }}'/g" {} +
|
|
|
|
- name: Show status
|
|
run: |
|
|
cd ${{ github.run_id }}
|
|
git status
|
|
|
|
- name: Create PR
|
|
uses: peter-evans/create-pull-request@v6
|
|
id: create-pull-request
|
|
if: ${{ inputs.dry-run != true }}
|
|
with:
|
|
path: ${{ github.run_id }}
|
|
base: ${{ needs.code-freeze.outputs.release-branch }}
|
|
branch: ci/freeze-tags-${{ needs.code-freeze.outputs.release-branch }}
|
|
title: "Freeze tags in in `${{ needs.code-freeze.outputs.release-branch }}`"
|
|
body: |
|
|
🚀 PR to freeze tags in `${{ needs.code-freeze.outputs.release-branch }}`.
|
|
|
|
commit-message: "[🤠]: Howdy folks, let's release NeMo `${{ needs.code-freeze.outputs.release-branch }}` !"
|
|
signoff: true
|
|
assignees: okoenig
|