This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch
gh-readonly-queue/release/v1.2/pr-9231-06b43fc7296852303d88621c22b67fca7c2ab6ae
in repository https://gitbox.apache.org/repos/asf/texera.git
commit 6442ffd0cd842d9dfcc64f8387384b157cad8d6a
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Nov 4 04:16:56 2026 +0000
ci(v1.2): stop signing and uploading release candidates in CI (#9231)
### What changes were proposed in this PR?
Automated backport of #8813 to `release/v1.2`.
Source: 40f75ab96e03d72a85e04752482908f85223c8a0 · [automation
run](https://github.com/apache/texera/actions/runs/41024227633)
### Any related issues, documentation, discussions?
Backport of #8813.
https://lists.apache.org/thread/4qh5mpk4bdcxtmnmvr41g366byb8z051
### How was this PR tested?
Release-branch CI runs on this branch once the conflicts are resolved
and this PR is marked ready for review.
### Was this PR authored or co-authored using generative AI tooling?
No.
---------
Co-authored-by: Xuan Gu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Meng Wang <[email protected]>
---
.github/workflows/create-release-candidate.yml | 234 +++++--------------------
1 file changed, 47 insertions(+), 187 deletions(-)
diff --git a/.github/workflows/create-release-candidate.yml
b/.github/workflows/create-release-candidate.yml
index da25586906..919a092f06 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: Create and upload release candidate artifacts
+name: Create release candidate artifacts
on:
workflow_dispatch:
@@ -53,15 +53,6 @@ jobs:
create-rc:
needs: build
runs-on: ubuntu-latest
- outputs:
- version: ${{ steps.vars.outputs.version }}
- rc_num: ${{ steps.vars.outputs.rc_num }}
- tag_name: ${{ steps.vars.outputs.tag_name }}
- rc_dir: ${{ steps.vars.outputs.rc_dir }}
- commit_hash: ${{ steps.vars.outputs.commit_hash }}
- src_tarball: ${{ steps.vars.outputs.src_tarball }}
- compose_tarball: ${{ steps.vars.outputs.compose_tarball }}
-
steps:
- name: Checkout code
uses: actions/checkout@v5
@@ -228,28 +219,11 @@ jobs:
ls -lh "$COMPOSE_TARBALL"
echo "✓ Created Docker Compose bundle: $COMPOSE_TARBALL"
- - name: Import GPG key
- run: |
- echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
-
- # List imported keys
- gpg --list-secret-keys
-
- echo "✓ GPG key imported successfully"
-
- - name: Sign and checksum all artifacts
+ - name: Checksum all artifacts
run: |
for artifact in \
"${{ steps.vars.outputs.src_tarball }}" \
"${{ steps.vars.outputs.compose_tarball }}"; do
-
- # GPG signature
- echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes
--pinentry-mode loopback --passphrase-fd 0 \
- --armor --detach-sign --output "${artifact}.asc" "$artifact"
- gpg --verify "${artifact}.asc" "$artifact"
- echo "✓ Signed: ${artifact}"
-
- # SHA512 checksum
sha512sum "$artifact" > "${artifact}.sha512"
echo "✓ Checksum: ${artifact}.sha512"
done
@@ -264,9 +238,9 @@ jobs:
COMMIT_HASH="${{ steps.vars.outputs.commit_hash }}"
IMAGE_REGISTRY="${{ steps.vars.outputs.image_registry }}"
- # Get GPG key ID from the imported key
- GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep 'sec'
| head -n1 | awk '{print $2}' | cut -d'/' -f2)
- GPG_EMAIL=$(gpg --list-secret-keys | grep 'uid' | head -n1 | grep
-oP '[\w\.-]+@[\w\.-]+')
+ # Artifacts are signed locally by the release manager, who fills
these in.
+ GPG_KEY_ID="<FILL IN: signing key fingerprint>"
+ GPG_EMAIL="<FILL IN: signer email>"
# Copy template from repository
cp .github/release/vote-email-template.md vote-email.txt
@@ -289,177 +263,63 @@ jobs:
name: rc-artifacts
path: |
${{ steps.vars.outputs.src_tarball }}
- ${{ steps.vars.outputs.src_tarball }}.asc
${{ steps.vars.outputs.src_tarball }}.sha512
${{ steps.vars.outputs.compose_tarball }}
- ${{ steps.vars.outputs.compose_tarball }}.asc
${{ steps.vars.outputs.compose_tarball }}.sha512
vote-email.txt
retention-days: 7
- upload-rc:
- runs-on: ubuntu-latest
- needs: create-rc
-
- steps:
- - name: Download RC artifacts
- uses: actions/download-artifact@v6
- with:
- name: rc-artifacts
-
- - name: Verify downloaded artifacts
+ - name: Generate release summary
run: |
- SRC_TARBALL="${{ needs.create-rc.outputs.src_tarball }}"
- COMPOSE_TARBALL="${{ needs.create-rc.outputs.compose_tarball }}"
+ VERSION="${{ steps.vars.outputs.version }}"
+ RC_NUM="${{ steps.vars.outputs.rc_num }}"
+ TAG_NAME="${{ steps.vars.outputs.tag_name }}"
+ RC_DIR="${{ steps.vars.outputs.rc_dir }}"
+ COMMIT_HASH="${{ steps.vars.outputs.commit_hash }}"
+ SRC_TARBALL="${{ steps.vars.outputs.src_tarball }}"
+ COMPOSE_TARBALL="${{ steps.vars.outputs.compose_tarball }}"
- echo "Verifying downloaded artifacts..."
- ls -lh
+ cat >> "$GITHUB_STEP_SUMMARY" <<EOF
+ ## Release Candidate Artifacts Built
- for artifact in "$SRC_TARBALL" "$COMPOSE_TARBALL"; do
- if [[ ! -f "$artifact" ]] || [[ ! -f "${artifact}.asc" ]] || [[ !
-f "${artifact}.sha512" ]]; then
- echo "Error: Missing artifact or signature/checksum for:
$artifact"
- exit 1
- fi
- done
+ - **Version:** ${VERSION}
+ - **RC Number:** RC${RC_NUM}
+ - **Git Tag:** \`${TAG_NAME}\`
+ - **Commit:** \`${COMMIT_HASH}\`
- echo "✓ All artifacts downloaded successfully"
+ The artifacts are unsigned. Sign and stage them on your own machine:
- - name: Install SVN
- run: |
- sudo apt-get update
- sudo apt-get install -y subversion
- svn --version
+ \`\`\`bash
+ # 1. Download and verify the checksums
+ gh run download ${{ github.run_id }} --repo ${{ github.repository }}
-n rc-artifacts -D rc
+ cd rc && sha512sum -c "${SRC_TARBALL}.sha512"
"${COMPOSE_TARBALL}.sha512"
- - name: Checkout SVN dev directory
- run: |
- RC_DIR="${{ needs.create-rc.outputs.rc_dir }}"
-
- # Checkout the dev directory with depth=empty (lightweight)
- svn co --depth=empty
https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera \
- --username "${{ secrets.SVN_USERNAME }}" \
- --password "${{ secrets.SVN_PASSWORD }}" \
- --no-auth-cache
-
- cd svn-texera
-
- # Check if RC directory already exists on the remote
- SVN_BASE="https://dist.apache.org/repos/dist/dev/incubator/texera"
- if svn info "$SVN_BASE/$RC_DIR" >/dev/null 2>&1; then
- # Directory exists remotely — update (checkout) it into the
working copy
- svn update --depth=infinity "$RC_DIR" \
- --username "${{ secrets.SVN_USERNAME }}" \
- --password "${{ secrets.SVN_PASSWORD }}" \
- --no-auth-cache || true
- # If update didn't bring it down (empty parent checkout), do a
sparse checkout
- if [[ ! -d "$RC_DIR" ]]; then
- svn update --set-depth=infinity "$RC_DIR" \
- --username "${{ secrets.SVN_USERNAME }}" \
- --password "${{ secrets.SVN_PASSWORD }}" \
- --no-auth-cache
- fi
- echo "✓ RC directory already exists remotely, checked out: $RC_DIR"
+ # 2. Sign with your own key
+ gpg --armor --detach-sign "${SRC_TARBALL}"
+ gpg --armor --detach-sign "${COMPOSE_TARBALL}"
+
+ # 3. Commit to dist/dev with your ASF account
+ cd ..
+ svn co --depth=empty
https://dist.apache.org/repos/dist/dev/incubator/texera svn-texera
+ if svn info
"https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}" >/dev/null
2>&1; then
+ svn update --set-depth=infinity "svn-texera/${RC_DIR}"
else
- # Directory doesn't exist remotely — create and add it
- mkdir -p "$RC_DIR"
- svn add "$RC_DIR"
- echo "✓ Created new RC directory: $RC_DIR"
+ mkdir "svn-texera/${RC_DIR}" && svn add "svn-texera/${RC_DIR}"
fi
+ cp "rc/${SRC_TARBALL}"* "rc/${COMPOSE_TARBALL}"*
"svn-texera/${RC_DIR}/"
+ svn add --force "svn-texera/${RC_DIR}"
+ svn commit svn-texera -m "Add Apache Texera ${VERSION} RC${RC_NUM}
artifacts (source + docker-compose)"
+ \`\`\`
- - name: Stage artifacts to SVN
- run: |
- SRC_TARBALL="${{ needs.create-rc.outputs.src_tarball }}"
- COMPOSE_TARBALL="${{ needs.create-rc.outputs.compose_tarball }}"
- RC_DIR="${{ needs.create-rc.outputs.rc_dir }}"
-
- cd svn-texera/"$RC_DIR"
-
- # Copy all artifacts
- for artifact in "$SRC_TARBALL" "$COMPOSE_TARBALL"; do
- cp "$GITHUB_WORKSPACE/$artifact" .
- cp "$GITHUB_WORKSPACE/${artifact}.asc" .
- cp "$GITHUB_WORKSPACE/${artifact}.sha512" .
- done
-
- # Add files to SVN
- svn add * --force
-
- # Check status
- svn status
-
- echo "✓ Staged all artifacts to SVN"
-
- - name: Commit artifacts to dist/dev
- run: |
- VERSION="${{ needs.create-rc.outputs.version }}"
- RC_NUM="${{ needs.create-rc.outputs.rc_num }}"
- RC_DIR="${{ needs.create-rc.outputs.rc_dir }}"
-
- cd svn-texera
-
- # Commit with descriptive message
- svn commit -m "Add Apache Texera ${VERSION} RC${RC_NUM} artifacts
(source + docker-compose)" \
- --username "${{ secrets.SVN_USERNAME }}" \
- --password "${{ secrets.SVN_PASSWORD }}" \
- --no-auth-cache
-
- echo "✓ Committed artifacts to dist/dev/incubator/texera/$RC_DIR"
-
- - name: Generate release summary
- run: |
- VERSION="${{ needs.create-rc.outputs.version }}"
- RC_NUM="${{ needs.create-rc.outputs.rc_num }}"
- TAG_NAME="${{ needs.create-rc.outputs.tag_name }}"
- RC_DIR="${{ needs.create-rc.outputs.rc_dir }}"
- COMMIT_HASH="${{ needs.create-rc.outputs.commit_hash }}"
- SRC_TARBALL="${{ needs.create-rc.outputs.src_tarball }}"
- COMPOSE_TARBALL="${{ needs.create-rc.outputs.compose_tarball }}"
-
- echo "## Release Candidate Created Successfully!" >>
$GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "### Release Information" >> $GITHUB_STEP_SUMMARY
- echo "- **Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
- echo "- **RC Number:** RC${RC_NUM}" >> $GITHUB_STEP_SUMMARY
- echo "- **Git Tag:** \`${TAG_NAME}\`" >> $GITHUB_STEP_SUMMARY
- echo "- **Commit:** \`${COMMIT_HASH}\`" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "### Artifacts Location" >> $GITHUB_STEP_SUMMARY
- echo "**Staging Directory:**
https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/" >>
$GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
- echo "| Artifact | Description |" >> $GITHUB_STEP_SUMMARY
- echo "|----------|-------------|" >> $GITHUB_STEP_SUMMARY
- echo "| \`${SRC_TARBALL}\` | Source code |" >> $GITHUB_STEP_SUMMARY
- echo "| \`${COMPOSE_TARBALL}\` | Docker Compose deployment bundle |"
>> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "Each artifact has a corresponding \`.asc\` (GPG signature) and
\`.sha512\` (checksum) file." >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "### Next Steps" >> $GITHUB_STEP_SUMMARY
- echo "1. Build and push container images using the \`Build and push
images\` workflow with tag \`${VERSION}\`" >> $GITHUB_STEP_SUMMARY
- echo "2. Verify the artifacts at the staging directory" >>
$GITHUB_STEP_SUMMARY
- echo "3. Send [VOTE] email to [email protected]" >>
$GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "### Verification" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
- echo "# Import KEYS and verify signatures" >> $GITHUB_STEP_SUMMARY
- echo "gpg --import KEYS" >> $GITHUB_STEP_SUMMARY
- echo "gpg --verify ${SRC_TARBALL}.asc ${SRC_TARBALL}" >>
$GITHUB_STEP_SUMMARY
- echo "gpg --verify ${COMPOSE_TARBALL}.asc ${COMPOSE_TARBALL}" >>
$GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "# Verify SHA512 checksums" >> $GITHUB_STEP_SUMMARY
- echo "sha512sum -c ${SRC_TARBALL}.sha512" >> $GITHUB_STEP_SUMMARY
- echo "sha512sum -c ${COMPOSE_TARBALL}.sha512" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "**KEYS file:**
https://downloads.apache.org/incubator/texera/KEYS" >> $GITHUB_STEP_SUMMARY
-
- echo "✓ Release candidate workflow completed successfully!"
+ Staging directory after the svn commit:
https://dist.apache.org/repos/dist/dev/incubator/texera/${RC_DIR}/
+ EOF
- name: Display vote email template
run: |
- echo "## Vote Email Template" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "Copy the content below to send to [email protected]:" >>
$GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- cat "$GITHUB_WORKSPACE/vote-email.txt" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
+ echo "## Vote Email Template" >> "$GITHUB_STEP_SUMMARY"
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ echo "Fill in the placeholders, then send to
[email protected]:" >> "$GITHUB_STEP_SUMMARY"
+ echo "" >> "$GITHUB_STEP_SUMMARY"
+ echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"
+ cat vote-email.txt >> "$GITHUB_STEP_SUMMARY"
+ echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"