This is an automated email from the ASF dual-hosted git repository.

bobbai00 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/main by this push:
     new 31adc70ef9 ci(release): gate RC creation on strict-mode build of the 
tagged commit (#4857)
31adc70ef9 is described below

commit 31adc70ef900c2f721be5f3f5811c805d5a05f0a
Author: Jiadong Bai <[email protected]>
AuthorDate: Sun May 3 03:17:16 2026 -0700

    ci(release): gate RC creation on strict-mode build of the tagged commit 
(#4857)
    
    ### What changes were proposed in this PR?
    
    Add a \`build\` job at the top of \`create-release-candidate.yml\` that
    calls the reusable \`build.yml\` with:
    
    - \`checkout_ref: \${{ github.event.inputs.tag }}\` — build the tagged
    commit (\`build.yml\` already accepts this input).
    - \`mode: release\` — strict license-binary check, no
    \`--ignore-transitive-version\` (the third mode added in #4734 alongside
    \`PR\` and \`nightly\`).
    
    \`create-rc\` now depends on \`build\` via \`needs: build\`. If the tag
    doesn't compile or has license-binary drift, no RC tarball is produced
    and nothing is signed/uploaded to ASF SVN.
    
    
    ### Any related issues, documentation, discussions?
    
    Closes #4856.
    
    
    ### How was this PR tested?
    
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (claude-opus-4-7)
    
    Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
---
 .github/workflows/create-release-candidate.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/.github/workflows/create-release-candidate.yml 
b/.github/workflows/create-release-candidate.yml
index b2e3434cfc..c4ba7cc9a7 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -36,7 +36,17 @@ on:
         default: 'ghcr.io/apache'
 
 jobs:
+  # Strict-mode build of the tagged commit. Gates RC artifact creation: if
+  # the tag doesn't compile or has license-binary drift, no RC is produced.
+  build:
+    uses: ./.github/workflows/build.yml
+    with:
+      checkout_ref: ${{ github.event.inputs.tag }}
+      mode: release
+    secrets: inherit
+
   create-rc:
+    needs: build
     runs-on: ubuntu-latest
     outputs:
       version: ${{ steps.vars.outputs.version }}

Reply via email to