Skip to content

Commit 345a39e

Browse files
replicated-ci-ecemosbaughJGAntunes
authored
feat: update adminconsole version (#2165)
* updated adminconsole version * chore: remove EC18 and old EC version tests * chore: cleanup files commited by mistake --------- Co-authored-by: emosbaugh <371319+emosbaugh@users.noreply.github.com> Co-authored-by: JGAntunes <joao@replicated.com>
1 parent 897b47d commit 345a39e

File tree

14 files changed

+10
-421
lines changed

14 files changed

+10
-421
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -492,15 +492,6 @@ jobs:
492492
run: |
493493
export SHORT_SHA=dev-${{ needs.git-sha.outputs.git_sha }}
494494
495-
# re-promote a release containing an old version of embedded-cluster to test upgrades
496-
export APP_VERSION="appver-${SHORT_SHA}-pre-minio-removal"
497-
replicated release promote 807 2cHXb1RCttzpR0xvnNWyaZCgDBP --version "${APP_VERSION}"
498-
499-
# re-promote a release containing an old version of embedded-cluster to test upgrades
500-
export APP_VERSION="appver-${SHORT_SHA}-1.8.0-k8s-1.28"
501-
replicated release promote 11615 2cHXb1RCttzpR0xvnNWyaZCgDBP --version "${APP_VERSION}"
502-
replicated release promote 11615 2eAqMYG1IEtX8cwpaO1kgNV6EB3 --version "${APP_VERSION}"
503-
504495
# promote a release containing the previous stable version of embedded-cluster to test upgrades
505496
export EC_VERSION="${{ needs.find-previous-stable.outputs.ec_version }}"
506497
export APP_VERSION="appver-${SHORT_SHA}-previous-stable"
@@ -650,9 +641,7 @@ jobs:
650641
- TestSingleNodeUpgradePreviousStable
651642
- TestInstallFromReplicatedApp
652643
- TestUpgradeFromReplicatedApp
653-
- TestUpgradeEC18FromReplicatedApp
654644
- TestResetAndReinstall
655-
# - TestOldVersionUpgrade
656645
- TestInstallSnapshotFromReplicatedApp
657646
- TestMultiNodeInstallation
658647
- TestMultiNodeHAInstallation
@@ -740,9 +729,6 @@ jobs:
740729
- TestSingleNodeAirgapDisasterRecovery
741730
- TestMultiNodeAirgapHADisasterRecovery
742731
include:
743-
- test: TestAirgapUpgradeFromEC18
744-
runner: embedded-cluster-2
745-
is-lxd: true
746732
- test: TestVersion
747733
is-lxd: true
748734
- test: TestCommandsRequireSudo

.github/workflows/release-prod.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,7 @@ jobs:
480480
- TestSingleNodeUpgradePreviousStable
481481
- TestInstallFromReplicatedApp
482482
- TestUpgradeFromReplicatedApp
483-
# - TestUpgradeEC18FromReplicatedApp
484483
- TestResetAndReinstall
485-
# - TestOldVersionUpgrade
486484
- TestInstallSnapshotFromReplicatedApp
487485
- TestMultiNodeInstallation
488486
- TestMultiNodeHAInstallation
@@ -563,9 +561,6 @@ jobs:
563561
- TestSingleNodeAirgapDisasterRecovery
564562
- TestMultiNodeAirgapHADisasterRecovery
565563
include:
566-
- test: TestAirgapUpgradeFromEC18
567-
runner: embedded-cluster-2
568-
is-lxd: true
569564
- test: TestVersion
570565
is-lxd: true
571566
- test: TestCommandsRequireSudo

e2e/install_test.go

Lines changed: 0 additions & 192 deletions
Original file line numberDiff line numberDiff line change
@@ -521,154 +521,6 @@ func TestUpgradeFromReplicatedApp(t *testing.T) {
521521
t.Logf("%s: test complete", time.Now().Format(time.RFC3339))
522522
}
523523

524-
func TestUpgradeEC18FromReplicatedApp(t *testing.T) {
525-
t.Parallel()
526-
527-
RequireEnvVars(t, []string{"SHORT_SHA"})
528-
529-
withEnv := map[string]string{"KUBECONFIG": "/var/lib/k0s/pki/admin.conf"}
530-
531-
tc := docker.NewCluster(&docker.ClusterInput{
532-
T: t,
533-
Nodes: 4,
534-
Distro: "debian-bookworm",
535-
K0sDir: "/var/lib/k0s",
536-
})
537-
defer tc.Cleanup(withEnv)
538-
539-
appVer := fmt.Sprintf("appver-%s-1.8.0-k8s-1.28", os.Getenv("SHORT_SHA"))
540-
541-
downloadECReleaseWithOptions(t, tc, 0, downloadECReleaseOptions{
542-
version: appVer,
543-
})
544-
545-
downloadECReleaseWithOptions(t, tc, 1, downloadECReleaseOptions{
546-
version: appVer,
547-
})
548-
549-
installSingleNodeWithOptions(t, tc, installOptions{
550-
version: appVer,
551-
withEnv: withEnv,
552-
})
553-
554-
if err := tc.SetupPlaywright(withEnv); err != nil {
555-
t.Fatalf("fail to setup playwright: %v", err)
556-
}
557-
if stdout, stderr, err := tc.RunPlaywrightTest("deploy-ec18-app"); err != nil {
558-
t.Fatalf("fail to run playwright test deploy-ec18-app: %v: %s: %s", err, stdout, stderr)
559-
}
560-
561-
t.Logf("%s: generating a new worker token command", time.Now().Format(time.RFC3339))
562-
stdout, stderr, err := tc.RunPlaywrightTest("get-ec18-join-worker-command")
563-
if err != nil {
564-
t.Fatalf("fail to generate worker join token:\nstdout: %s\nstderr: %s", stdout, stderr)
565-
}
566-
command, err := findJoinCommandInOutput(stdout)
567-
if err != nil {
568-
t.Fatalf("fail to find the join command in the output: %v: %s: %s", err, stdout, stderr)
569-
}
570-
t.Log("worker join token command:", command)
571-
572-
t.Logf("%s: joining worker node to the cluster as a worker", time.Now().Format(time.RFC3339))
573-
if stdout, stderr, err := tc.RunCommandOnNode(1, strings.Split(command, " ")); err != nil {
574-
t.Fatalf("fail to join worker node to the cluster as a worker: %v: %s: %s", err, stdout, stderr)
575-
}
576-
577-
// wait for the nodes to report as ready.
578-
t.Logf("%s: all nodes joined, waiting for them to be ready", time.Now().Format(time.RFC3339))
579-
stdout, stderr, err = tc.RunCommandOnNode(0, []string{"wait-for-ready-nodes.sh", "2"}, withEnv)
580-
if err != nil {
581-
t.Fatalf("fail to wait for ready nodes: %v: %s: %s", err, stdout, stderr)
582-
}
583-
584-
checkInstallationStateWithOptions(t, tc, installationStateOptions{
585-
version: appVer,
586-
k8sVersion: "v1.28.11",
587-
withEnv: withEnv,
588-
})
589-
590-
appUpgradeVersion := fmt.Sprintf("appver-%s-noop", os.Getenv("SHORT_SHA"))
591-
testArgs := []string{appUpgradeVersion}
592-
593-
t.Logf("%s: upgrading cluster", time.Now().Format(time.RFC3339))
594-
if stdout, stderr, err := tc.RunPlaywrightTest("deploy-upgrade", testArgs...); err != nil {
595-
t.Fatalf("fail to run playwright test deploy-app: %v: %s: %s", err, stdout, stderr)
596-
}
597-
598-
t.Logf("%s: re-installing kots cli on node 0", time.Now().Format(time.RFC3339))
599-
line := []string{"install-kots-cli.sh"}
600-
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
601-
t.Fatalf("fail to install kots cli on node 0: %v: %s: %s", err, stdout, stderr)
602-
}
603-
604-
checkInstallationStateWithOptions(t, tc, installationStateOptions{
605-
version: appUpgradeVersion,
606-
withEnv: withEnv,
607-
})
608-
609-
// Download embedded-cluster on additional nodes
610-
downloadECReleaseWithOptions(t, tc, 2, downloadECReleaseOptions{
611-
version: appUpgradeVersion,
612-
})
613-
downloadECReleaseWithOptions(t, tc, 3, downloadECReleaseOptions{
614-
version: appUpgradeVersion,
615-
})
616-
617-
// Join the additional nodes to the cluster
618-
joinControllerNode(t, tc, 2)
619-
joinWorkerNode(t, tc, 3)
620-
621-
// wait for all nodes to report as ready
622-
waitForNodes(t, tc, 4, withEnv)
623-
624-
// Check worker profiles for the joined nodes
625-
checkWorkerProfile(t, tc, 2)
626-
checkWorkerProfile(t, tc, 3)
627-
628-
appUpgradeVersion = fmt.Sprintf("appver-%s-upgrade", os.Getenv("SHORT_SHA"))
629-
testArgs = []string{appUpgradeVersion}
630-
631-
t.Logf("%s: upgrading cluster a second time", time.Now().Format(time.RFC3339))
632-
if stdout, stderr, err := tc.RunPlaywrightTest("deploy-upgrade", testArgs...); err != nil {
633-
t.Fatalf("fail to run playwright test deploy-app: %v: %s: %s", err, stdout, stderr)
634-
}
635-
636-
checkPostUpgradeStateWithOptions(t, tc, postUpgradeStateOptions{
637-
withEnv: withEnv,
638-
})
639-
640-
// wait for all nodes to report as ready after upgrade
641-
waitForNodes(t, tc, 4, withEnv)
642-
643-
// use upgraded binaries to run the reset command
644-
// TODO: this is a temporary workaround and should eventually be a feature of EC
645-
646-
downloadECReleaseWithOptions(t, tc, 0, downloadECReleaseOptions{
647-
version: appUpgradeVersion,
648-
})
649-
downloadECReleaseWithOptions(t, tc, 1, downloadECReleaseOptions{
650-
version: appUpgradeVersion,
651-
})
652-
653-
resetInstallationWithOptions(t, tc, 1, resetInstallationOptions{
654-
withEnv: withEnv,
655-
})
656-
657-
resetInstallationWithOptions(t, tc, 3, resetInstallationOptions{
658-
withEnv: withEnv,
659-
})
660-
661-
resetInstallationWithOptions(t, tc, 2, resetInstallationOptions{
662-
withEnv: withEnv,
663-
})
664-
665-
resetInstallationWithOptions(t, tc, 0, resetInstallationOptions{
666-
withEnv: withEnv,
667-
})
668-
669-
t.Logf("%s: test complete", time.Now().Format(time.RFC3339))
670-
}
671-
672524
func TestResetAndReinstall(t *testing.T) {
673525
t.Parallel()
674526

@@ -774,50 +626,6 @@ func TestResetAndReinstallAirgap(t *testing.T) {
774626
t.Logf("%s: test complete", time.Now().Format(time.RFC3339))
775627
}
776628

777-
func TestOldVersionUpgrade(t *testing.T) {
778-
t.Parallel()
779-
780-
RequireEnvVars(t, []string{"SHORT_SHA"})
781-
782-
withEnv := map[string]string{"KUBECONFIG": "/var/lib/k0s/pki/admin.conf"}
783-
784-
tc := docker.NewCluster(&docker.ClusterInput{
785-
T: t,
786-
Nodes: 1,
787-
Distro: "debian-bookworm",
788-
K0sDir: "/var/lib/k0s",
789-
})
790-
defer tc.Cleanup(withEnv)
791-
792-
downloadECReleaseWithOptions(t, tc, 0, downloadECReleaseOptions{
793-
version: fmt.Sprintf("appver-%s-pre-minio-removal", os.Getenv("SHORT_SHA")),
794-
})
795-
796-
t.Logf("%s: installing embedded-cluster on node 0", time.Now().Format(time.RFC3339))
797-
line := []string{"pre-minio-removal-install.sh", "cli"}
798-
if stdout, stderr, err := tc.RunCommandOnNode(0, line, withEnv); err != nil {
799-
t.Fatalf("fail to install embedded-cluster on node 0: %v: %s: %s", err, stdout, stderr)
800-
}
801-
802-
t.Logf("%s: checking installation state", time.Now().Format(time.RFC3339))
803-
line = []string{"check-pre-minio-removal-installation-state.sh", fmt.Sprintf("%s-pre-minio-removal", os.Getenv("SHORT_SHA"))}
804-
if stdout, stderr, err := tc.RunCommandOnNode(0, line, withEnv); err != nil {
805-
t.Fatalf("fail to check installation state: %v: %s: %s", err, stdout, stderr)
806-
}
807-
808-
t.Logf("%s: running kots upstream upgrade", time.Now().Format(time.RFC3339))
809-
line = []string{"kots-upstream-upgrade.sh", os.Getenv("SHORT_SHA")}
810-
if stdout, stderr, err := tc.RunCommandOnNode(0, line, withEnv); err != nil {
811-
t.Fatalf("fail to run kots upstream upgrade: %v: %s: %s", err, stdout, stderr)
812-
}
813-
814-
checkPostUpgradeStateWithOptions(t, tc, postUpgradeStateOptions{
815-
withEnv: withEnv,
816-
})
817-
818-
t.Logf("%s: test complete", time.Now().Format(time.RFC3339))
819-
}
820-
821629
func TestSingleNodeAirgapUpgrade(t *testing.T) {
822630
t.Parallel()
823631

e2e/playwright/tests/deploy-ec18-app/test.spec.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

e2e/playwright/tests/get-ec18-join-worker-command/test.spec.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

e2e/scripts/check-airgap-installation-state.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ main() {
4343
exit 1
4444
fi
4545

46-
# if this is the current version in CI
47-
if echo "$version" | grep -qvE "(pre-minio-removal|1.8.0-k8s)" ; then
48-
validate_data_dirs
49-
fi
50-
5146
validate_no_pods_in_crashloop
5247
}
5348

e2e/scripts/check-airgap-post-ha-state.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ main() {
6868
exit 1
6969
fi
7070

71-
# if this is the current version in CI
72-
if echo "$version" | grep -qvE "(pre-minio-removal|1.8.0-k8s)" ; then
73-
validate_data_dirs
74-
fi
75-
7671
# scale up the second deployment to ensure that images can still be pulled
7772
echo "scaling up the 'second' deployment to ensure that images can still be pulled"
7873
kubectl scale -n "$APP_NAMESPACE" deployment/second --replicas=4

e2e/scripts/check-installation-state.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ main() {
2020
kubectl get pods -A
2121

2222
echo "ensure that installation is installed"
23-
if echo "$version" | grep "pre-minio-removal"; then
24-
echo "waiting for installation as this is a pre-minio-removal embedded-cluster version (and so the installer doesn't wait for the installation to be ready itself)"
25-
wait_for_installation
26-
fi
2723
if ! ensure_installation_is_installed; then
2824
echo "installation is not installed"
2925
exit 1
@@ -49,7 +45,7 @@ main() {
4945
fi
5046

5147
# if this is the current version in CI
52-
if echo "$version" | grep -qvE "(pre-minio-removal|1.8.0-k8s|previous-stable)" ; then
48+
if echo "$version" | grep -qvE "(previous-stable)" ; then
5349
validate_data_dirs
5450
fi
5551

e2e/scripts/check-post-ha-state.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ main() {
6161
exit 1
6262
fi
6363

64-
# if this is the current version in CI
65-
if echo "$version" | grep -qvE "(pre-minio-removal|1.8.0-k8s)" ; then
66-
validate_data_dirs
67-
fi
68-
6964
validate_no_pods_in_crashloop
7065
}
7166

e2e/scripts/check-pre-minio-removal-installation-state.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)