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

spawn-az-vm: Add development helper to build a branch on a temporary VM #154

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

pothos
Copy link
Member

@pothos pothos commented Nov 24, 2023

Sometimes the CI does not give enough flexiblity to iterate over fixes. Using one's own laptop is also not always desirable.

Add a small helper script to spawn an Azure VM with "az" that can build one or more branches, also after creation. Usage is as follows:
./spawn-az-vm --name N --ssh-key FILE --resource-group RG --location LOC --create-vm --ignition IGN BRANCHES...
The Ignition file is optional but useful to disable updates or change the SSH port.

@pothos pothos requested a review from a team November 24, 2023 11:22
@pothos pothos force-pushed the kai/spawn-az-vm branch 5 times, most recently from 6194040 to e6346a7 Compare November 24, 2023 13:15
@pothos
Copy link
Member Author

pothos commented Nov 24, 2023

The build speed looks good:
build_packages: Elapsed time (build_packages): 99m33s

Because of the missing zstd squashfs kernel config the image build fails until we have the next Flatcar release published as Azure image. A workaround is to first do a sudo flatcar-update -V 3794.0.0 -A && sudo reboot.

Sometimes the CI does not give enough flexiblity to iterate over fixes.
Using one's own laptop is also not always desirable.

Add a small helper script to spawn an Azure VM with "az" that can build
one or more branches, also after creation. Usage is as follows:
./spawn-az-vm --name N --ssh-key FILE --resource-group RG --location LOC --create-vm --ignition IGN BRANCHES...
The Ignition file is optional but useful to disable updates or change
the SSH port.
@pothos
Copy link
Member Author

pothos commented Nov 24, 2023

Because of the missing zstd squashfs kernel config the image build fails until we have the next Flatcar release published as Azure image. A workaround is to first do a sudo flatcar-update -V 3794.0.0 -A && sudo reboot.

I switched to Flatcar Alpha as default image, that should help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant