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

jiadongb 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 dee51b0986 fix(ci): include example datasets and workflows into the 
docker compose tarball when creating the release candidate (#4253)
dee51b0986 is described below

commit dee51b09866ea80ffcf5d0656d091c92099e7934
Author: Jiadong Bai <[email protected]>
AuthorDate: Tue Mar 3 10:44:26 2026 -0800

    fix(ci): include example datasets and workflows into the docker compose 
tarball when creating the release candidate (#4253)
    
    ### What changes were proposed in this PR?
    
    The `create-release-candidate` workflow builds a self-contained Docker
    Compose deployment tarball
    (`apache-texera-<version>-docker-compose.tar.gz`), but it only copies a
    hardcoded list of files from `bin/single-node/` into the bundle:
    
    - `docker-compose.yml`
    - `nginx.conf`
    - `.env`
    - `README.md`
    - `sql/`
    
    In #4247 we added the example datasets and workflows, however the
    current CI didn't include them in the docker-compose tarball.
    
    **The fix:** Add a conditional `cp -r` of the `examples/` directory into
    the bundle, guarded by `if [ -d ... ]` so it doesn't break when building
    from older tags that predate the examples directory.
    
    ### Any related issues, documentation, discussions?
    
    #4247
    
    ### How was this PR tested?
    
    Tested using my own fork
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Code (claude-opus-4-6)
    
    Co-authored-by: Claude <[email protected]>
    Co-authored-by: Kunwoo (Chris) <[email protected]>
---
 .github/workflows/create-release-candidate.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/create-release-candidate.yml 
b/.github/workflows/create-release-candidate.yml
index 3f2fca55a3..407b461db9 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -179,6 +179,12 @@ jobs:
           # Include the README from the repo
           cp "$TEMP_DIR/_raw/bin/single-node/README.md" "$BUNDLE_DIR/"
 
+          # Include example datasets, workflows, and the loader script
+          if [ -d "$TEMP_DIR/_raw/bin/single-node/examples" ]; then
+            cp -r "$TEMP_DIR/_raw/bin/single-node/examples" "$BUNDLE_DIR/"
+            echo "✓ Included examples directory (datasets, workflows, 
load-examples.sh)"
+          fi
+
           # Create tarball
           cd "$TEMP_DIR"
           tar -czf "$GITHUB_WORKSPACE/$COMPOSE_TARBALL" 
"apache-texera-${VERSION}-docker-compose"

Reply via email to