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 56dcdc1fe chore(ci): removing staging variables
56dcdc1fe is described below

commit 56dcdc1fe487141d899b586f44b6c8248fae66ee
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Tue Jul 30 14:30:44 2024 +0200

    chore(ci): removing staging variables
---
 .github/actions/e2e-common/exec-tests.sh    |  1 -
 .github/actions/e2e-install/exec-tests.sh   |  1 -
 .github/actions/e2e-knative/exec-tests.sh   |  3 +--
 .github/actions/e2e-native/exec-tests.sh    |  3 +--
 .github/actions/e2e-telemetry/exec-tests.sh |  1 -
 .github/actions/release-nightly/action.yml  |  6 +-----
 e2e/support/test_staging_hooks.go           | 25 -------------------------
 script/Makefile                             | 21 +++++++--------------
 8 files changed, 10 insertions(+), 51 deletions(-)

diff --git a/.github/actions/e2e-common/exec-tests.sh 
b/.github/actions/e2e-common/exec-tests.sh
index 2d1591a4a..8e6d45246 100755
--- a/.github/actions/e2e-common/exec-tests.sh
+++ b/.github/actions/e2e-common/exec-tests.sh
@@ -113,7 +113,6 @@ if [ -n "${BUILD_CATALOG_SOURCE_NAMESPACE}" ]; then
   export KAMEL_INSTALL_OLM_CHANNEL="${NEW_XY_CHANNEL}"
 fi
 
-export KAMEL_INSTALL_MAVEN_REPOSITORIES=$(make get-staging-repo)
 export KAMEL_INSTALL_REGISTRY=${REGISTRY_PULL_HOST}
 export KAMEL_INSTALL_REGISTRY_INSECURE=${REGISTRY_INSECURE}
 export KAMEL_INSTALL_OPERATOR_IMAGE=${CUSTOM_IMAGE}:${CUSTOM_VERSION}
diff --git a/.github/actions/e2e-install/exec-tests.sh 
b/.github/actions/e2e-install/exec-tests.sh
index d34501028..6e640ed75 100755
--- a/.github/actions/e2e-install/exec-tests.sh
+++ b/.github/actions/e2e-install/exec-tests.sh
@@ -103,7 +103,6 @@ export CUSTOM_IMAGE=${IMAGE_NAME}
 export CUSTOM_VERSION=${IMAGE_VERSION}
 
 # Configure install options
-export KAMEL_INSTALL_MAVEN_REPOSITORIES=$(make get-staging-repo)
 export KAMEL_INSTALL_REGISTRY=${REGISTRY_PULL_HOST}
 export KAMEL_INSTALL_REGISTRY_INSECURE=${REGISTRY_INSECURE}
 
diff --git a/.github/actions/e2e-knative/exec-tests.sh 
b/.github/actions/e2e-knative/exec-tests.sh
index bf3296217..81dd4e56f 100755
--- a/.github/actions/e2e-knative/exec-tests.sh
+++ b/.github/actions/e2e-knative/exec-tests.sh
@@ -107,8 +107,7 @@ if [ -n "${BUILD_CATALOG_SOURCE_NAMESPACE}" ]; then
   export KAMEL_INSTALL_OLM_CHANNEL="${NEW_XY_CHANNEL}"
 fi
 
-KAMEL_INSTALL_MAVEN_REPOSITORIES=$(make get-staging-repo)
-export KAMEL_INSTALL_MAVEN_REPOSITORIES
+
 export KAMEL_INSTALL_REGISTRY=${REGISTRY_PULL_HOST}
 export KAMEL_INSTALL_REGISTRY_INSECURE=${REGISTRY_INSECURE}
 export KAMEL_INSTALL_OPERATOR_IMAGE=${CUSTOM_IMAGE}:${CUSTOM_VERSION}
diff --git a/.github/actions/e2e-native/exec-tests.sh 
b/.github/actions/e2e-native/exec-tests.sh
index ec7a7805c..430f8564a 100755
--- a/.github/actions/e2e-native/exec-tests.sh
+++ b/.github/actions/e2e-native/exec-tests.sh
@@ -107,8 +107,7 @@ if [ -n "${BUILD_CATALOG_SOURCE_NAMESPACE}" ]; then
   export KAMEL_INSTALL_OLM_CHANNEL="${NEW_XY_CHANNEL}"
 fi
 
-KAMEL_INSTALL_MAVEN_REPOSITORIES=$(make get-staging-repo)
-export KAMEL_INSTALL_MAVEN_REPOSITORIES
+
 export KAMEL_INSTALL_REGISTRY=${REGISTRY_PULL_HOST}
 export KAMEL_INSTALL_REGISTRY_INSECURE=${REGISTRY_INSECURE}
 export KAMEL_INSTALL_OPERATOR_IMAGE=${CUSTOM_IMAGE}:${CUSTOM_VERSION}
diff --git a/.github/actions/e2e-telemetry/exec-tests.sh 
b/.github/actions/e2e-telemetry/exec-tests.sh
index c70b3e32b..871e2108f 100755
--- a/.github/actions/e2e-telemetry/exec-tests.sh
+++ b/.github/actions/e2e-telemetry/exec-tests.sh
@@ -107,7 +107,6 @@ if [ -n "${BUILD_CATALOG_SOURCE_NAMESPACE}" ]; then
   export KAMEL_INSTALL_OLM_CHANNEL="${NEW_XY_CHANNEL}"
 fi
 
-export KAMEL_INSTALL_MAVEN_REPOSITORIES=$(make get-staging-repo)
 export KAMEL_INSTALL_REGISTRY=${REGISTRY_PULL_HOST}
 export KAMEL_INSTALL_REGISTRY_INSECURE=${REGISTRY_INSECURE}
 export KAMEL_INSTALL_OPERATOR_IMAGE=${CUSTOM_IMAGE}:${CUSTOM_VERSION}
diff --git a/.github/actions/release-nightly/action.yml 
b/.github/actions/release-nightly/action.yml
index 6cc4396ea..49c8ff055 100644
--- a/.github/actions/release-nightly/action.yml
+++ b/.github/actions/release-nightly/action.yml
@@ -78,10 +78,6 @@ runs:
         echo "Using IMAGE_NAME=$IMAGE_NAME"
         echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV
 
-        MAVEN_REPOSITORY=$(make get-staging-repo)
-        echo "Using MAVEN_REPOSITORY=$MAVEN_REPOSITORY"
-        echo "MAVEN_REPOSITORY=$MAVEN_REPOSITORY" >> $GITHUB_ENV
-
     - name: Install newer docker CLI supporting multi platform build
       shell: bash
       run: |
@@ -129,7 +125,7 @@ runs:
 
           To test it, download the client for your OS and run:
           ```
-          kamel install --olm=false --maven-repository=${{ 
env.MAVEN_REPOSITORY }}
+          kamel install --olm=false
           ```
           NOTE: last updated on ${{ env.UPD_DATE }}
         token: ${{ inputs.secretGithubToken }}
diff --git a/e2e/support/test_staging_hooks.go 
b/e2e/support/test_staging_hooks.go
index 29614dc9d..fdcbc049f 100644
--- a/e2e/support/test_staging_hooks.go
+++ b/e2e/support/test_staging_hooks.go
@@ -30,31 +30,6 @@ import (
 )
 
 func init() {
-       // Let's use the STAGING_RUNTIME_REPO if available
-       runtimeRepo := os.Getenv("STAGING_RUNTIME_REPO")
-       if runtimeRepo != "" {
-               KamelHooks = append(KamelHooks, func(args []string) []string {
-                       if len(args) > 0 && args[0] == "install" {
-                               args = append(args, 
fmt.Sprintf("--maven-repository=%s", runtimeRepo))
-                       }
-                       return args
-               })
-       }
-
-       // this hook can be also used to test a released version of the 
operator, e.g. the staging version during a voting period
-       // Uncomment the following lines and change references to enable the 
hook
-
-       // TestImageName = "docker.io/camelk/camel-k"
-       // TestImageVersion = "1.0.0-M2"
-
-       // KamelHooks = append(KamelHooks, func(args []string) []string {
-       //      if len(args) > 0 && args[0] == "install" {
-       //              args = append(args, 
"--operator-image=docker.io/camelk/camel-k:1.0.0-M2")
-       //              args = append(args, 
"--maven-repository=https://repository.apache.org/content/repositories/orgapachecamel-1156";)
-       //      }
-       //      return args
-       // })
-
        // Apply env vars for the test operator image to args if present
        imageName := os.Getenv("CAMEL_K_TEST_IMAGE_NAME")
        imageVersion := os.Getenv("CAMEL_K_TEST_IMAGE_VERSION")
diff --git a/script/Makefile b/script/Makefile
index f99b74abe..42d4e6a69 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -90,7 +90,6 @@ OPM := opm
 
 # Used to push pre-release artifacts
 STAGING_IMAGE := docker.io/camelk/camel-k
-STAGING_RUNTIME_REPO :=
 
 # Kamelets options
 INSTALL_DEFAULT_KAMELETS ?= true
@@ -170,7 +169,6 @@ bump-replace:
        @mvn -f java/crds/pom.xml versions:set -DgenerateBackupPoms=false 
-DnewVersion=$(VERSION)
        @mvn -f java/maven-logging/pom.xml versions:set 
-DgenerateBackupPoms=false -DnewVersion=$(VERSION)
        @sed -i 's/^LAST_RELEASED_VERSION ?= .*$//LAST_RELEASED_VERSION ?= 
$(LAST_RELEASED_VERSION)/' ./script/Makefile
-       @sed -i 's/^STAGING_RUNTIME_REPO :=.*$//STAGING_RUNTIME_REPO :=/' 
./script/Makefile
 
 bump: bump-replace codegen bundle
 
@@ -278,7 +276,7 @@ setup-knative:
 # the time to complete (they are used also as smoke test for nightly release)
 #
 test-common:
-       FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       FAILED=0; \
        go test -p $(TEST_COMMON_PARALLEL_COUNT) -timeout 90m -v 
./e2e/common/... --parallel 1 -tags=integration $(GOTESTFMT) || ((FAILED++)); \
        exit $${FAILED}
 
@@ -286,7 +284,7 @@ test-common:
 # Smoke tests are a subset of common tests used to quickly verify the operator
 #
 test-smoke:
-       FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       FAILED=0; \
        go test -p $(TEST_COMMON_PARALLEL_COUNT) -timeout 30m -v \
                ./e2e/common/languages \
                ./e2e/common/traits \
@@ -298,7 +296,7 @@ test-smoke:
 # Common tests that require some particular operator setting or need to be 
installed in multiple namespaces
 #
 test-advanced:
-       FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       FAILED=0; \
        go test -p 1 -timeout 90m -v ./e2e/advanced --parallel 
$(TEST_ADVANCED_PARALLEL_COUNT) -tags=integration $(GOTESTFMT) || ((FAILED++)); 
\
        exit $${FAILED}
 
@@ -306,7 +304,7 @@ test-advanced:
 # Installation procedure test using CLi and Kustomize methodologies
 #
 test-install:
-       FAILED=0; STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       FAILED=0; \
        go test -timeout 20m -v ./e2e/install/kustomize -tags=integration 
$(GOTESTFMT) || ((FAILED++)); \
        go test -timeout 20m -v ./e2e/install/helm -tags=integration 
$(GOTESTFMT) || ((FAILED++)); \
        go test -timeout 20m -v ./e2e/install/olm -tags=integration 
$(GOTESTFMT) || ((FAILED++)); \
@@ -317,7 +315,7 @@ test-install:
 # Knative tests that require the presence of Knative configuration
 #
 test-knative:
-       STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)"; \
+       FAILED=0; \
        go test -timeout 60m -v ./e2e/knative -tags=integration $(GOTESTFMT) || 
((FAILED++)); \
        exit $${FAILED}
 
@@ -325,14 +323,12 @@ test-knative:
 # Telemetry tests that require the configuration of telemetry endpoints
 #
 test-telemetry:
-       STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \
        go test -timeout 30m -v ./e2e/telemetry -tags=integration $(GOTESTFMT)
 
 #
 # Quarkus native test (requires certain CPU and memory conditions)
 #
 test-quarkus-native:
-       STAGING_RUNTIME_REPO="$(STAGING_RUNTIME_REPO)" \
        go test -timeout 180m -v ./e2e/native -tags=integration $(GOTESTFMT)
 
 build-kamel:
@@ -351,7 +347,7 @@ ifneq ($(shell uname -s 2>/dev/null || echo Unknown),Linux)
 endif
 
 build-resources:
-       ./script/get_catalog.sh $(DEFAULT_RUNTIME_VERSION) 
$(STAGING_RUNTIME_REPO)
+       ./script/get_catalog.sh $(DEFAULT_RUNTIME_VERSION)
 
 bundle-kamelets:
        @echo "Preparing Kamelets bundle resource..."
@@ -446,7 +442,7 @@ images: build maven-overlay bundle-kamelets image-build 
build-kamel-platform
 
 image-build:
 ifneq (,$(findstring SNAPSHOT,$(DEFAULT_RUNTIME_VERSION)))
-       ./script/package_maven_artifacts.sh -s "$(STAGING_RUNTIME_REPO)" -d 
"$(CAMEL_K_RUNTIME_DIR)" $(DEFAULT_RUNTIME_VERSION)
+       ./script/package_maven_artifacts.sh -d "$(CAMEL_K_RUNTIME_DIR)" 
$(DEFAULT_RUNTIME_VERSION)
 endif
        @echo "####### Building Camel K operator arch $(IMAGE_ARCH) container 
image..."
        mkdir -p build/_maven_output
@@ -547,9 +543,6 @@ release-kustomize:
        RELEASE_NAME=$(PACKAGE) \
        ./script/release_kustomize.sh
 
-get-staging-repo:
-       @echo $(or 
${STAGING_RUNTIME_REPO},https://repository.apache.org/content/repositories/snapshots@id=apache-snapshots@snapshots)
-
 .PHONY: do-build build build-kamel build-kamel-platform build-resources dep 
codegen images images-push images-push-staging image-build test check clean 
release cross-compile package-examples set-version git-tag check-licenses 
build-resources release-helm release-staging release-nightly get-staging-repo 
get-version bundle-kamelets
 .PHONY: controller-gen kubectl kustomize operator-sdk opm
 

Reply via email to