diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index 9e626d75..13814df6 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -5,37 +5,6 @@ on: branches: [main] jobs: - calc: - runs-on: ubuntu-latest - - env: - HOME: /root - PIPELINE_DEBUG: 1 - - steps: - - uses: actions/checkout@v3 - - - name: Determine extent of testing - run: tests/postbuild/calc-settings.sh "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" "${GITHUB_SHA}" "${GITHUB_BASE_REF}" - - - name: Upload global pull secret result - uses: actions/upload-artifact@v1 - with: - name: calc - path: test-sh-gps.txt - - - name: Upload semver result - uses: actions/upload-artifact@v1 - with: - name: calc - path: test-sh-labels.txt - - - name: Upload workers result - uses: actions/upload-artifact@v1 - with: - name: calc - path: test-sh-workers.txt - test: if: ${{ !contains( github.event.pull_request.labels.*.name, 'skip ci' ) }} runs-on: ubuntu-latest @@ -54,13 +23,11 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Download all workflow run artifacts - uses: actions/download-artifact@v3 - with: - name: calc + - name: Determine extent of testing + run: tests/postbuild/calc-settings.sh "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" "${GITHUB_SHA}" "${GITHUB_BASE_REF}" - name: Ensures target cluster exists - run: tests/postbuild/cluster.sh --ensure --wait -t ibmcloud -n "gitops-${GITHUB_HEAD_REF}" --apikey "${IBM_CLOUD_API_KEY}" --workers "$(cat calc/test-sh-workers.txt)" --worker-flavor "c3c.32x64" --global-pull-secret "$(cat calc/test-sh-gps.txt)" + run: tests/postbuild/cluster.sh --ensure --wait -t ibmcloud -n "gitops-${GITHUB_HEAD_REF}" --apikey "${IBM_CLOUD_API_KEY}" --workers "$(cat test-sh-workers.txt)" --worker-flavor "c3c.32x64" --global-pull-secret "$(cat test-sh-gps.txt)" - name: Deploy Argo and Cloud Paks to the cluster - run: tests/postbuild/gitops.sh --setup-server -t ibmcloud -n "gitops-${GITHUB_HEAD_REF}" --gitops-repo "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" --gitops-branch "${GITHUB_HEAD_REF}" --apikey "${IBM_CLOUD_API_KEY}" --application-labels "$(cat calc/test-sh-labels.txt)" + run: tests/postbuild/gitops.sh --setup-server -t ibmcloud -n "gitops-${GITHUB_HEAD_REF}" --gitops-repo "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" --gitops-branch "${GITHUB_HEAD_REF}" --apikey "${IBM_CLOUD_API_KEY}" --application-labels "$(cat test-sh-labels.txt)" diff --git a/config/cloudpaks/cp4aiops/install-aimgr/Chart.yaml b/config/cloudpaks/cp4aiops/install-aimgr/Chart.yaml index bb212631..a54fd067 100644 --- a/config/cloudpaks/cp4aiops/install-aimgr/Chart.yaml +++ b/config/cloudpaks/cp4aiops/install-aimgr/Chart.yaml @@ -16,9 +16,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.6.0 +version: 0.6.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: "3.2.0" +appVersion: "3.2.1" diff --git a/config/cloudpaks/cp4aiops/install-aimgr/templates/resources/99-postsync-certificates.yaml b/config/cloudpaks/cp4aiops/install-aimgr/templates/resources/30-sync-certificates.yaml similarity index 97% rename from config/cloudpaks/cp4aiops/install-aimgr/templates/resources/99-postsync-certificates.yaml rename to config/cloudpaks/cp4aiops/install-aimgr/templates/resources/30-sync-certificates.yaml index e4ae4464..c6be94b6 100644 --- a/config/cloudpaks/cp4aiops/install-aimgr/templates/resources/99-postsync-certificates.yaml +++ b/config/cloudpaks/cp4aiops/install-aimgr/templates/resources/30-sync-certificates.yaml @@ -5,8 +5,8 @@ apiVersion: batch/v1 kind: Job metadata: annotations: - argocd.argoproj.io/sync-wave: "500" - argocd.argoproj.io/hook: PostSync + argocd.argoproj.io/sync-wave: "230" + argocd.argoproj.io/hook: Sync name: post-cp4aiops-adjust-certs namespace: openshift-gitops spec: diff --git a/config/cloudpaks/cp4aiops/install-emgr/Chart.yaml b/config/cloudpaks/cp4aiops/install-emgr/Chart.yaml index de29b05d..eedfa0a7 100644 --- a/config/cloudpaks/cp4aiops/install-emgr/Chart.yaml +++ b/config/cloudpaks/cp4aiops/install-emgr/Chart.yaml @@ -16,9 +16,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.6.0 +version: 0.6.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: "3.2.0" +appVersion: "3.2.1" diff --git a/tests/postbuild/calc-settings.sh b/tests/postbuild/calc-settings.sh index 0166b990..fb1774b6 100755 --- a/tests/postbuild/calc-settings.sh +++ b/tests/postbuild/calc-settings.sh @@ -40,7 +40,6 @@ cleanRun() { rm -rf "${WORKDIR}" fi } -trap cleanRun EXIT # @@ -58,13 +57,15 @@ function extract_branch_delta() { git clone "${git_repo}" cloudpak-gitops \ && cd cloudpak-gitops \ && git config pull.rebase false \ - result=1 + || result=1 if [ ${result} -eq 0 ]; then git pull origin "${git_source_branch}" || result=1 - git diff "${git_target_branch}" --name-only | tee "${output_file}" \ + git diff "${git_target_branch}" origin/main --name-only | tee "${output_file}" \ && result=0 \ || result=1 + + cat "${branch_delta_output_file}" fi return ${result} diff --git a/tests/postbuild/gitops.sh b/tests/postbuild/gitops.sh index 9a14f601..21657918 100755 --- a/tests/postbuild/gitops.sh +++ b/tests/postbuild/gitops.sh @@ -385,13 +385,6 @@ EOF && argocd app wait "${app_name}" \ --sync \ --health \ - && argocd app wait "${cp}-operators" \ - --sync \ - --health \ - --timeout 1800 \ - && argocd app wait "${cp}-resources" \ - --sync \ - --health \ --timeout 10800 \ && log "INFO: Synchronization of ${app_name} complete." \ || cp_result=1