Skip to content
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

Update workflow and docs for releasing Training Operator #2362

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d7dfc47
Added create_release_branch
LogicalGuy77 Dec 15, 2024
217543a
Add GitHub Actions workflow for releasing Training SDK and configure …
LogicalGuy77 Dec 15, 2024
4e753aa
Refactor GitHub Actions workflow to trigger on completion of the Crea…
LogicalGuy77 Dec 15, 2024
4390ab7
Update GitHub Actions workflow
LogicalGuy77 Dec 15, 2024
f38c144
Refactor SDK version update logic in release workflow to remove 'v' p…
LogicalGuy77 Dec 15, 2024
4555741
Merge pull request #2 from kubeflow/master
LogicalGuy77 Dec 16, 2024
8693b97
Add GitHub Actions workflow for releasing Docker images
LogicalGuy77 Dec 16, 2024
34c1c81
Merge branch 'master' of https://github.com/LogicalGuy77/training-ope…
LogicalGuy77 Dec 16, 2024
01827d0
Trigger release workflow test
LogicalGuy77 Dec 16, 2024
72598f4
Trigger release workflow test
LogicalGuy77 Dec 16, 2024
978db99
Merge pull request #3 from kubeflow/master
LogicalGuy77 Dec 16, 2024
ce136da
chore: add VERSION file
LogicalGuy77 Dec 16, 2024
75c56db
feat: remove create_release_branch workflow and add check_release wor…
LogicalGuy77 Dec 16, 2024
393b59a
Merge pull request #5 from LogicalGuy77/v1.7.0-branch
LogicalGuy77 Dec 16, 2024
2872d1c
feat: add release workflow for version validation and SDK publishing
LogicalGuy77 Dec 16, 2024
3a5bf12
Merge pull request #6 from LogicalGuy77/v1.7.0-branch
LogicalGuy77 Dec 16, 2024
c056df9
chore: remove obsolete Docker image and SDK release workflows
LogicalGuy77 Dec 17, 2024
b959013
Merge branch 'master' of https://github.com/LogicalGuy77/training-ope…
LogicalGuy77 Dec 17, 2024
b86e485
test: Update versions for release test
LogicalGuy77 Dec 17, 2024
693300d
test: Update versions for release test
LogicalGuy77 Dec 17, 2024
5a85c28
changed VERSION to utf8
LogicalGuy77 Dec 17, 2024
e0194d9
fixed setup version check
LogicalGuy77 Dec 17, 2024
fcbb468
test: Trigger release workflow
LogicalGuy77 Dec 18, 2024
8e3df33
test: Trigger release workflow 2
LogicalGuy77 Dec 18, 2024
b0ddb31
bump version to 1.8.0-rc.2 in multiple files
LogicalGuy77 Dec 18, 2024
341a7af
fix: update SETUP_VERSION extraction to handle additional characters
LogicalGuy77 Dec 18, 2024
07d3814
bump version to 1.8.0-rc.3 in multiple files
LogicalGuy77 Dec 18, 2024
c4d6144
bump version to 1.8.1 in multiple files
LogicalGuy77 Dec 23, 2024
ff72143
docs: add automated release process documentation
LogicalGuy77 Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/check-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Check Release

on:
pull_request:
branches:
- v*-branch
paths:
- VERSION

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
SEMVER_PATTERN: '^v([0-9]+)\.([0-9]+)\.([0-9]+)(-rc\.([0-9]+))?$'

jobs:
check:
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check whether version matches semver pattern
run: |
VERSION=$(cat VERSION)
if [[ ${VERSION} =~ ${{ env.SEMVER_PATTERN }} ]]; then
echo "Version '${VERSION}' matches semver pattern."
else
echo "Version '${VERSION}' does not match semver pattern."
exit 1
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV

- name: Check whether SDK versions match
run: |
VERSION=${VERSION#v}
SCRIPT_VERSION=$(grep 'VERSION=' hack/python-sdk/gen-sdk.sh | cut -d'=' -f2)
SWAGGER_VERSION=$(grep 'packageVersion' hack/python-sdk/swagger_config.json | cut -d'"' -f4)
SETUP_VERSION=$(grep 'version=' sdk/python/setup.py | cut -d'=' -f2 | tr -d "', ")

if [[ ${SCRIPT_VERSION} == ${VERSION} ]]; then
echo "Script version '${SCRIPT_VERSION}' matches version '${VERSION}'."
else
echo "Script version '${SCRIPT_VERSION}' does not match version '${VERSION}'."
exit 1
fi

if [[ ${SWAGGER_VERSION} == ${VERSION} ]]; then
echo "Swagger version '${SWAGGER_VERSION}' matches version '${VERSION}'."
else
echo "Swagger version '${SWAGGER_VERSION}' does not match version '${VERSION}'."
exit 1
fi

if [[ ${SETUP_VERSION} == ${VERSION} ]]; then
echo "Setup version '${SETUP_VERSION}' matches version '${VERSION}'."
else
echo "Setup version '${SETUP_VERSION}' does not match version '${VERSION}'."
exit 1
fi

- name: Check if tag exists
run: |
git fetch --tags
if git tag -l | grep -q "^${VERSION}$"; then
echo "Tag '${VERSION}' already exists."
exit 1
else
echo "Tag '${VERSION}' does not exist."
fi
Loading