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

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 7f127437e fix(ci): nightly multi arch
7f127437e is described below

commit 7f127437e82e3908b78a15195847f7463a83a3db
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Fri Feb 14 16:34:36 2025 +0100

    fix(ci): nightly multi arch
---
 .github/workflows/nightly-multi.yml  |  5 ++++-
 e2e/common/runtimes/runtimes_test.go | 10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-multi.yml 
b/.github/workflows/nightly-multi.yml
index ecc47abbc..9d28ca70e 100644
--- a/.github/workflows/nightly-multi.yml
+++ b/.github/workflows/nightly-multi.yml
@@ -51,9 +51,12 @@ jobs:
     - name: Install operator
       shell: bash
       run: |
+        THIS_VERSION="$(make get-version)"
+        VERSION="$(make get-version | sed s/-SNAPSHOT//)-nightly"
+        sed "s#apache/camel-k:$THIS_VERSION#testcamelk/camel-k:$VERSION#g" 
install/base/config/manager/operator-deployment.yaml
         kubectl create ns camel-k
         make install-k8s-global
-        kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n 
camel-k --timeout=180s
+        kubectl wait --for=jsonpath='{.status.phase}'=Ready itp camel-k -n 
camel-k --timeout=120s
 
     - name: Run test
       shell: bash
diff --git a/e2e/common/runtimes/runtimes_test.go 
b/e2e/common/runtimes/runtimes_test.go
index 14f60df9c..bc61d34f5 100644
--- a/e2e/common/runtimes/runtimes_test.go
+++ b/e2e/common/runtimes/runtimes_test.go
@@ -24,6 +24,8 @@ package common
 
 import (
        "context"
+       "runtime"
+       "strings"
        "testing"
 
        . "github.com/onsi/gomega"
@@ -35,6 +37,10 @@ import (
 )
 
 func TestSelfManagedBuildIntegrations(t *testing.T) {
+       if !isAmd() {
+               t.Skip("This test can only run in an AMD based architecture.")
+       }
+
        t.Parallel()
        WithNewTestNamespace(t, func(ctx context.Context, g *WithT, ns string) {
                var cmData = make(map[string]string)
@@ -72,3 +78,7 @@ func TestSelfManagedBuildIntegrations(t *testing.T) {
                })
        })
 }
+
+func isAmd() bool {
+       return strings.Contains(runtime.GOARCH, "amd")
+}

Reply via email to