You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by hg...@apache.org on 2025/09/02 10:57:13 UTC

(iggy) branch master updated: fix(ci): remove duplicated bdd tests, handle IGGY_CI_BUILD (#2149)

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

hgruszecki pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f58eca3 fix(ci): remove duplicated bdd tests, handle IGGY_CI_BUILD (#2149)
6f58eca3 is described below

commit 6f58eca338f54bc0031e499e94bdd42a7e3ed5e9
Author: Hubert Gruszecki <h....@gmail.com>
AuthorDate: Tue Sep 2 12:57:08 2025 +0200

    fix(ci): remove duplicated bdd tests, handle IGGY_CI_BUILD (#2149)
    
    - Add IGGY_CI_BUILD env to Rust Dockerfiles for git/build info
    - Remove bdd-suite component to prevent duplicate test runs
    - Fix publish workflow: apply copy-latest-from-master.sh to
      create-tags and summary jobs for old code releases
    - Ensures scripts/extract-version.sh available when needed
---
 .github/config/components.yml      | 14 --------------
 .github/workflows/publish.yml      | 34 ++++++++++++++++++++++++++++++++++
 core/ai/mcp/Dockerfile             |  2 ++
 core/connectors/runtime/Dockerfile |  2 ++
 core/server/Dockerfile             |  2 ++
 5 files changed, 40 insertions(+), 14 deletions(-)

diff --git a/.github/config/components.yml b/.github/config/components.yml
index de2d40b4..896aa0e6 100644
--- a/.github/config/components.yml
+++ b/.github/config/components.yml
@@ -225,20 +225,6 @@ components:
       - "bdd/scenarios/**"
     tasks: ["bdd-csharp"]
 
-  # Meta component for running all BDD tests (used for scripts/docker-compose changes)
-  bdd-suite:
-    depends_on:
-      - "bdd-rust"
-      - "bdd-python"
-      - "bdd-go"
-      - "bdd-node"
-      - "bdd-csharp"
-    paths:
-      - "bdd/docker-compose.yml"
-      - "bdd/Dockerfile"
-      - "scripts/run-bdd-tests.sh"
-    tasks: ["bdd-rust", "bdd-python", "bdd-go", "bdd-node", "bdd-csharp"]
-
   examples-suite:
     depends_on:
       - "rust-sdk"
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index bba4cdde..71a27e9c 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -774,11 +774,28 @@ jobs:
     permissions:
       contents: write
     steps:
+      - name: Download latest copy script from master
+        if: inputs.use_latest_ci
+        run: |
+          curl -sSL "https://raw.githubusercontent.com/${{ github.repository }}/master/scripts/copy-latest-from-master.sh" \
+            -o /tmp/copy-latest-from-master.sh
+          chmod +x /tmp/copy-latest-from-master.sh
+          echo "✅ Downloaded latest copy script from master"
+
       - uses: actions/checkout@v4
         with:
           ref: ${{ needs.validate.outputs.commit }}
           fetch-depth: 0
 
+      - name: Save and apply latest CI from master
+        if: inputs.use_latest_ci
+        run: |
+          /tmp/copy-latest-from-master.sh save \
+            .github \
+            scripts
+
+          /tmp/copy-latest-from-master.sh apply
+
       - name: Configure Git
         run: |
           git config user.name  "github-actions[bot]"
@@ -839,10 +856,27 @@ jobs:
     if: always() && needs.validate.outputs.has_targets == 'true'
     runs-on: ubuntu-latest
     steps:
+      - name: Download latest copy script from master
+        if: inputs.use_latest_ci
+        run: |
+          curl -sSL "https://raw.githubusercontent.com/${{ github.repository }}/master/scripts/copy-latest-from-master.sh" \
+            -o /tmp/copy-latest-from-master.sh
+          chmod +x /tmp/copy-latest-from-master.sh
+          echo "✅ Downloaded latest copy script from master"
+
       - uses: actions/checkout@v4
         with:
           ref: ${{ needs.validate.outputs.commit }}
 
+      - name: Save and apply latest CI from master
+        if: inputs.use_latest_ci
+        run: |
+          /tmp/copy-latest-from-master.sh save \
+            .github \
+            scripts
+
+          /tmp/copy-latest-from-master.sh apply
+
       - name: Ensure version extractor is executable
         run: |
           test -x scripts/extract-version.sh || chmod +x scripts/extract-version.sh
diff --git a/core/ai/mcp/Dockerfile b/core/ai/mcp/Dockerfile
index 6f42a610..276a5f09 100644
--- a/core/ai/mcp/Dockerfile
+++ b/core/ai/mcp/Dockerfile
@@ -30,6 +30,8 @@ FROM --platform=$BUILDPLATFORM chef AS builder
 ARG PROFILE=release
 ARG TARGETPLATFORM
 ARG LIBC=musl
+ARG IGGY_CI_BUILD
+ENV IGGY_CI_BUILD=${IGGY_CI_BUILD}
 
 RUN apk add --no-cache zig && \
     cargo install cargo-zigbuild --locked && \
diff --git a/core/connectors/runtime/Dockerfile b/core/connectors/runtime/Dockerfile
index 67311ce2..c03fba96 100644
--- a/core/connectors/runtime/Dockerfile
+++ b/core/connectors/runtime/Dockerfile
@@ -30,6 +30,8 @@ FROM --platform=$BUILDPLATFORM chef AS builder
 ARG PROFILE=release
 ARG TARGETPLATFORM
 ARG LIBC=musl
+ARG IGGY_CI_BUILD
+ENV IGGY_CI_BUILD=${IGGY_CI_BUILD}
 
 RUN apk add --no-cache zig && \
     cargo install cargo-zigbuild --locked && \
diff --git a/core/server/Dockerfile b/core/server/Dockerfile
index f43b82de..8ae53e14 100644
--- a/core/server/Dockerfile
+++ b/core/server/Dockerfile
@@ -31,6 +31,8 @@ FROM --platform=$BUILDPLATFORM chef AS builder
 ARG PROFILE=release
 ARG TARGETPLATFORM
 ARG LIBC=musl
+ARG IGGY_CI_BUILD
+ENV IGGY_CI_BUILD=${IGGY_CI_BUILD}
 
 RUN apk add --no-cache zig && \
     cargo install cargo-zigbuild --locked && \