@@ -212,9 +212,9 @@ jobs:
212212 build/*.tgz
213213 build/metadata.json
214214
215- build -previous-stable :
216- name : Build previous stable
217- runs-on : embedded-cluster
215+ find -previous-stable :
216+ name : Determine previous stable version
217+ runs-on : ubuntu-latest
218218 needs :
219219 - get-tag
220220 outputs :
@@ -229,6 +229,9 @@ jobs:
229229 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
230230 run : |
231231 k0s_majmin_version="$(make print-PREVIOUS_K0S_VERSION | sed 's/v\([0-9]*\.[0-9]*\).*/\1/')"
232+ if [ "$k0s_majmin_version" == "1.28" ]; then
233+ k0s_majmin_version="1.29"
234+ fi
232235 EC_VERSION="$(gh release list --repo replicatedhq/embedded-cluster \
233236 --exclude-drafts --exclude-pre-releases --json name \
234237 --jq '.[] | .name' \
@@ -251,7 +254,7 @@ jobs:
251254 needs :
252255 - release
253256 - get-tag
254- - build -previous-stable
257+ - find -previous-stable
255258 steps :
256259 - name : Checkout
257260 uses : actions/checkout@v4
@@ -272,13 +275,19 @@ jobs:
272275 APP_CHANNEL : CI
273276 USES_DEV_BUCKET : " 0"
274277 run : |
278+ # re-promote a release containing an old version of embedded-cluster to test upgrades
279+ export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-1.8.0-k8s-1.28"
280+ replicated release promote 11615 2cHXb1RCttzpR0xvnNWyaZCgDBP --version "${APP_VERSION}"
281+ replicated release promote 11615 2eAqMYG1IEtX8cwpaO1kgNV6EB3 --version "${APP_VERSION}"
282+
275283 # install the current k0s version
276284 export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
277285 export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}"
278286 export RELEASE_YAML_DIR=e2e/kots-release-install
279287 ./scripts/ci-release-app.sh
288+
280289 # and finally an app upgrade
281- export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}-upgrade"
290+ export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
282291 export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-upgrade"
283292 export RELEASE_YAML_DIR=e2e/kots-release-upgrade
284293 ./scripts/ci-release-app.sh
@@ -290,13 +299,8 @@ jobs:
290299 APP_CHANNEL : CI-airgap
291300 USES_DEV_BUCKET : " 0"
292301 run : |
293- # re-promote a release containing an old version of embedded-cluster to test upgrades
294- export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-1.8.0-k8s-1.28"
295- replicated release promote 11615 2cHXb1RCttzpR0xvnNWyaZCgDBP --version "${APP_VERSION}"
296- replicated release promote 11615 2eAqMYG1IEtX8cwpaO1kgNV6EB3 --version "${APP_VERSION}"
297-
298302 # promote a release containing the previous stable version of embedded-cluster to test upgrades
299- export EC_VERSION="${{ needs.build -previous-stable.outputs.ec_version }}"
303+ export EC_VERSION="${{ needs.find -previous-stable.outputs.ec_version }}"
300304 export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-previous-stable"
301305 export RELEASE_YAML_DIR=e2e/kots-release-install-stable
302306 ./scripts/ci-release-app.sh
@@ -315,20 +319,52 @@ jobs:
315319 export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-upgrade"
316320 export RELEASE_YAML_DIR=e2e/kots-release-upgrade
317321 ./scripts/ci-release-app.sh
322+
323+ download-current :
324+ name : Download the current release binary
325+ runs-on : ubuntu-latest
326+ needs :
327+ - release-app
328+ - get-tag
329+ steps :
330+ - name : Download current binary
331+ env :
332+ LICENSE_ID : ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE_ID }}
333+ run : |
334+ export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}"
335+ curl -L "https://ec-e2e-replicated-app.testcluster.net/embedded/embedded-cluster-smoke-test-staging-app/ci/${APP_VERSION}" -H "Authorization: $LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz
336+ tar -xzf embedded-cluster-smoke-test-staging-app-ci.tgz
337+ mv embedded-cluster-smoke-test-staging-app embedded-cluster
338+ mkdir -p output/bin
339+ mv embedded-cluster output/bin
340+
341+ - name : Upload release
342+ uses : actions/upload-artifact@v4
343+ with :
344+ name : current-release
345+ path : |
346+ output/bin/embedded-cluster
347+
318348 e2e :
319349 name : E2E
320350 runs-on : ${{ matrix.runner || 'ubuntu-22.04' }}
321351 needs :
322352 - release
323353 - release-app
324354 - get-tag
325- - build-previous-stable
355+ - download-current
356+ - find-previous-stable
326357 strategy :
327358 fail-fast : false
328359 matrix :
329360 test :
330361 - TestResetAndReinstallAirgap
331362 - TestSingleNodeAirgapUpgrade
363+ - TestSingleNodeDisasterRecoveryWithProxy
364+ - TestProxiedEnvironment
365+ - TestProxiedCustomCIDR
366+ - TestInstallWithPrivateCAs
367+ - TestInstallWithMITMProxy
332368 include :
333369 - test : TestMultiNodeAirgapUpgrade
334370 runner : embedded-cluster
@@ -339,6 +375,11 @@ jobs:
339375 steps :
340376 - name : Checkout
341377 uses : actions/checkout@v4
378+ - name : Download current binary
379+ uses : actions/download-artifact@v4
380+ with :
381+ name : current-release
382+ path : output/bin
342383
343384 - uses : ./.github/actions/e2e
344385 with :
@@ -356,11 +397,10 @@ jobs:
356397
357398 k0s-version : ${{ needs.get-tag.outputs.k0s_version }}
358399 k0s-version-previous : ${{ needs.get-tag.outputs.k0s_version }} # we do not run k8s upgrade tests on release
359- k0s-version-previous-stable : ${{ needs.build -previous-stable.outputs.k0s_version }}
400+ k0s-version-previous-stable : ${{ needs.find -previous-stable.outputs.k0s_version }}
360401 upgrade-target-ec-version : ${{ needs.get-tag.outputs.tag-name }}
361402
362403 # this job will validate that all the tests passed
363- # it is used for the github branch protection rule
364404 validate-release-success :
365405 name : Validate success
366406 runs-on : ubuntu-20.04
0 commit comments