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

Add test for custom partioning #2291

Merged
merged 11 commits into from
Apr 12, 2024
Merged

Add test for custom partioning #2291

merged 11 commits into from
Apr 12, 2024

Conversation

jimmykarily
Copy link
Contributor

@jimmykarily jimmykarily commented Feb 27, 2024

not currently passing because the fix is not there (TDD)

Part of #2281

the fix will happen here: kairos-io/kairos-agent#235

Depends on: spectrocloud/peg#23

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@jimmykarily jimmykarily marked this pull request as ready for review April 10, 2024 14:42
@jimmykarily
Copy link
Contributor Author

The custom-partitioning test passes locally both with kairos-opensuse-leap-15.5-standard-amd64-generic-v3.0.4-14-g2a1e026f-k3sv1.29.3+k3s1.iso and kairos-ubuntu-23.10-core-amd64-generic-v3.0.4-14-g2a1e026f-dirty.iso. It fails on CI for some reason. Will investigate more.

Expect(err).ToNot(HaveOccurred())
fmt.Printf("State dir: %s\n", stateDir)

opts := defaultVMOptsNoDrives(stateDir)
Copy link
Member

Choose a reason for hiding this comment

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

fancy!

flavor:
- "ubuntu"
flavorRelease:
- "23.10"
Copy link
Member

Choose a reason for hiding this comment

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

if this gets merged after #2447, we should add 24.04 here, or if it's the other way around then we should add it in the other PR, putting a comment there too

Copy link
Member

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

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

very nice!

not currently passing because the fix is not there (TDD)

Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Locally I had a forgotten "FIRMWARE" env variable set (from previous
runs) and that make my tests pass with efi partitions. In CI it boot
in legacy bios mode.

Signed-off-by: Dimitris Karakasilis <[email protected]>
@mauromorales mauromorales merged commit 7793614 into master Apr 12, 2024
39 of 40 checks passed
@mauromorales mauromorales deleted the 2281-custom-partioning branch April 12, 2024 14:31
mauromorales pushed a commit that referenced this pull request May 2, 2024
* Add test for custom partioning

not currently passing because the fix is not there (TDD)

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Add sanity check and fix config

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Remove "replace" for peg in go.mod (now merged)

Signed-off-by: Dimitris Karakasilis <[email protected]>

* [TMP] Run tests using a branch

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Add custom partitioning test in the pipelines

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Use core artifact

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Change flavor to one that we actually build

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Fix test

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Bump kairos-agent through framework and remove tmp hack

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Apply suggestions from code review

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Use setup for legacy bios

Locally I had a forgotten "FIRMWARE" env variable set (from previous
runs) and that make my tests pass with efi partitions. In CI it boot
in legacy bios mode.

Signed-off-by: Dimitris Karakasilis <[email protected]>

---------

Signed-off-by: Dimitris Karakasilis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants