Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build ISO using Seedimage in Elemental UI #884

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

juadk
Copy link
Contributor

@juadk juadk commented Jun 27, 2023

This PR includes many things:

  • Rename function.ts to commands.ts (Cypress best practices)
  • Add useful functions in utils.ts
  • Remove useless variables
    • ISO_TO_TEST: we build from channel only
    • OPERATOR_VERSION: replace by OPERATOR_REPO
  • Build ISO using Seedimage in Elemental UI ( main part ) and Fix e2e/ui: build ISO with seedimage in registration endpoint #876

SIde note:
I could use the new command cy.addOsVersionChannel in Upgrade / Create an OS Version Channels but I will do it in a separate PR.

Verification runs

UI-K3s-Rancher_Stable ✔️
Channel check: dev
Screenshot 2023-06-28 at 22 52 05
ISO check: no ISO used because we boot PXE for K3s

UI-RKE2-Rancher_Stable ✔️
Channel check: dev
Screenshot 2023-06-28 at 22 52 05
ISO check: latest-dev
Screenshot 2023-06-28 at 22 54 52

UI-K3s-OS-Upgrade-Rancher_Stable ✔️
Channel check: we don't add channel here because we want to start from stable and upgrade to dev
ISO check: no ISO used because we boot PXE for K3s

UI-RKE2-OS-Upgrade-Rancher_Stable ❌ ( not related to this PR )
Channel check: we don't add channel here because we want to start from stable and upgrade to dev
ISO check: we build from stable
Upgrade check: we upgrade to dev
However, we add the dev channel at the beginning of the upgrade test:
Screenshot 2023-06-29 at 09 14 50
And we create an upgrade group with dev version to trigger the upgrade:
Screenshot 2023-06-29 at 09 25 23

UI-RKE2-OBS_Dev ✔️
Channel check: dev
Screenshot 2023-06-28 at 22 52 05
ISO check: latest-dev
Screenshot 2023-06-28 at 22 54 52

UI-RKE2-OBS_Stable ✔️
Channel check: we don't add channel here because we want to test stable ISO
ISO check: we build from stable

UI-RKE2-OBS_Staging ✔️
Channel check: we add the staging channel as we want to test staging ISO
Screenshot 2023-06-28 at 23 31 29
ISO check: we build from staging
Screenshot 2023-06-28 at 23 33 13

@juadk juadk force-pushed the 876-build_seedimage_using_elemental_ui branch 5 times, most recently from 6fe9bee to 804bf4e Compare June 28, 2023 21:39
@juadk juadk marked this pull request as ready for review June 28, 2023 21:48
@juadk juadk requested a review from a team as a code owner June 28, 2023 21:48
@juadk juadk force-pushed the 876-build_seedimage_using_elemental_ui branch 2 times, most recently from af9427f to 1b3db19 Compare June 28, 2023 22:05
@juadk juadk changed the title 876 build seedimage using elemental UI Build ISO using Seedimage in Elemental UI Jun 28, 2023
@juadk juadk self-assigned this Jun 28, 2023
@juadk juadk added the kind/QA label Jun 28, 2023
@juadk juadk force-pushed the 876-build_seedimage_using_elemental_ui branch 4 times, most recently from 9464872 to 56f4ac5 Compare June 29, 2023 07:44
.contains('Elemental Teal');
.click();
if (utils.isOperatorVersion('stable')) {
cy.contains('Elemental Teal ISO x86_64 v1.1.5')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, the stable version (1.1.5) is hardcoded, maybe I can delete it and it will choose the first entry but how to be sure it will be always stable. Maybe we can use the OPERATOR_VERSION as a variable. I think I will improve it in a next PR though.

@juadk juadk force-pushed the 876-build_seedimage_using_elemental_ui branch from 56f4ac5 to 7743c66 Compare June 29, 2023 07:57
* also include minor fixes and cleanup
@juadk juadk force-pushed the 876-build_seedimage_using_elemental_ui branch from 7743c66 to ec63cf9 Compare June 29, 2023 07:59
@juadk juadk force-pushed the 876-build_seedimage_using_elemental_ui branch from d1c1cac to e7bcf16 Compare July 3, 2023 07:06
@ldevulder ldevulder merged commit cf7db66 into main Jul 3, 2023
@ldevulder ldevulder deleted the 876-build_seedimage_using_elemental_ui branch July 3, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

e2e/ui: build ISO with seedimage in registration endpoint
2 participants