From 1676ba397ecc40b9722cdcbe9d59418a52366770 Mon Sep 17 00:00:00 2001 From: Divyansh Vijayvergia Date: Fri, 3 Oct 2025 15:20:13 +0000 Subject: [PATCH 1/4] updated release workflow --- .github/workflows/release-test.yml | 37 ------------------------------ .github/workflows/release.yml | 12 +++++++++- .github/workflows/test.yml | 35 ---------------------------- 3 files changed, 11 insertions(+), 73 deletions(-) delete mode 100644 .github/workflows/release-test.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml deleted file mode 100644 index 9f05311d1..000000000 --- a/.github/workflows/release-test.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Release (TestPyPI) - -on: - workflow_dispatch: - -jobs: - publish: - runs-on: - group: databricks-deco-testing-runner-group - labels: ubuntu-latest-deco - - environment: release-test - - permissions: - id-token: write - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v4 - with: - python-version: 3.13 - - - name: Install build - run: pip install build - - - name: Build wheel - run: python -m build - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: pypa/gh-action-pypi-publish@release/v1 - name: Publish package distributions to TestPyPI - with: - repository-url: https://test.pypi.org/legacy/ - # See https://github.com/pypa/gh-action-pypi-publish#tolerating-release-package-file-duplicates - skip-existing: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 637db2faf..68adf4fe4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,20 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Write release notes to file + run: | + RELEASE_NOTES_DIR=/tmp/release-notes + mkdir -p "$RELEASE_NOTES_DIR" + RELEASE_NOTES_FILE="$RELEASE_NOTES_DIR/release-notes.md" + git for-each-ref --format='%(contents)' ${{ github.ref }} > "$RELEASE_NOTES_FILE" + echo "Release notes file: $RELEASE_NOTES_FILE" + echo "Release notes contents:" + cat "$RELEASE_NOTES_FILE" + - name: Release uses: softprops/action-gh-release@v1 with: - draft: true + body_path: /tmp/release-notes/release-notes.md files: | dist/databricks_*.whl dist/databricks_*.tar.gz diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index bb86e38a3..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Test Workflow - -on: - workflow_call: - inputs: - os: - required: true - type: string - pyVersion: - required: true - type: string - -jobs: - test: - strategy: - fail-fast: false - runs-on: ${{ inputs.os }} - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Unshallow - run: git fetch --prune --unshallow - - - uses: actions/setup-python@v4 - with: - python-version: ${{ inputs.pyVersion }} - - - name: Run tests - run: make dev install test - - - name: Publish test coverage - uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From 6a95333f25e638b2cc5462b7c2c2723debc55798 Mon Sep 17 00:00:00 2001 From: Divyansh Vijayvergia Date: Fri, 3 Oct 2025 19:27:37 +0000 Subject: [PATCH 2/4] added test workflow back --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..bb86e38a3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: Test Workflow + +on: + workflow_call: + inputs: + os: + required: true + type: string + pyVersion: + required: true + type: string + +jobs: + test: + strategy: + fail-fast: false + runs-on: ${{ inputs.os }} + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Unshallow + run: git fetch --prune --unshallow + + - uses: actions/setup-python@v4 + with: + python-version: ${{ inputs.pyVersion }} + + - name: Run tests + run: make dev install test + + - name: Publish test coverage + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From cec8c5de7d0ddfb72f94493f80f1e88ed00c23a5 Mon Sep 17 00:00:00 2001 From: Divyansh Vijayvergia Date: Thu, 9 Oct 2025 12:19:07 +0000 Subject: [PATCH 3/4] readded deleted workflow --- .github/workflows/release-test.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release-test.yml diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml new file mode 100644 index 000000000..9f05311d1 --- /dev/null +++ b/.github/workflows/release-test.yml @@ -0,0 +1,37 @@ +name: Release (TestPyPI) + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: + group: databricks-deco-testing-runner-group + labels: ubuntu-latest-deco + + environment: release-test + + permissions: + id-token: write + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: 3.13 + + - name: Install build + run: pip install build + + - name: Build wheel + run: python -m build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - uses: pypa/gh-action-pypi-publish@release/v1 + name: Publish package distributions to TestPyPI + with: + repository-url: https://test.pypi.org/legacy/ + # See https://github.com/pypa/gh-action-pypi-publish#tolerating-release-package-file-duplicates + skip-existing: true From b884ca18e4005cde40571b6697f30882f9d57cc1 Mon Sep 17 00:00:00 2001 From: Divyansh Vijayvergia Date: Fri, 17 Oct 2025 10:03:37 +0000 Subject: [PATCH 4/4] small update to release notes --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68adf4fe4..eb23751a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: RELEASE_NOTES_DIR=/tmp/release-notes mkdir -p "$RELEASE_NOTES_DIR" RELEASE_NOTES_FILE="$RELEASE_NOTES_DIR/release-notes.md" - git for-each-ref --format='%(contents)' ${{ github.ref }} > "$RELEASE_NOTES_FILE" + git for-each-ref --format='%(body)' ${{ github.ref }} > "$RELEASE_NOTES_FILE" echo "Release notes file: $RELEASE_NOTES_FILE" echo "Release notes contents:" cat "$RELEASE_NOTES_FILE"