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

cmdlib.sh: drop runvm_with_cache_snapshot() #3970

Merged
merged 4 commits into from
Nov 23, 2024

Conversation

dustymabe
Copy link
Member

No description provided.

jlebon
jlebon previously approved these changes Nov 22, 2024
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

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

Nice!

@dustymabe
Copy link
Member Author

/hold

:) - I think there are various CI configurations that we need to fixup before we can merge this.

@jlebon
Copy link
Member

jlebon commented Nov 22, 2024

/hold

:) - I think there are various CI configurations that we need to fixup before we can merge this.

Hmm, are you thinking about CIs that currently build things in parallel and rely on this? AFAICT it's only in cosa that we do this. Everywhere else where we e.g. build metal and metal4k, we do it serially already.

So... I think we just need to adjust:

cosaParallelCmds(cosaDir: "/srv", commands: ["metal", "metal4k"])

?

This was used as part of the legacy building of extensions and should
have been dropped alongside that code in 48414b3.
We can do this all with OSBuild now so let's not run parallel
processes here. This will enable us to drop the cache snapshot
bits since we won't have two processes trying to use the cache
qcow at the same time.
In the case where we were running multiple parallel tasks in the
pipeline that were running VMs and accessing the cache qcow we
needed this, but with [1] we are now consolidating all OSBuild
pipeline tasks into single non-parallel invocations.

[1] coreos/fedora-coreos-pipeline#1055
This is now no longer used. runvm_with_cache_snapshot was used by
runvm-osbuild previously but it's not needed any longer and
cosa supermin-run --snapshot was used by build-podman-os job
in the pipeline, but that isn't being used either so we can drop
it.
@dustymabe
Copy link
Member Author

So... I think we just need to adjust:

Done

@dustymabe dustymabe enabled auto-merge (rebase) November 23, 2024 03:07
@dustymabe
Copy link
Member Author

/unhold

@dustymabe dustymabe disabled auto-merge November 23, 2024 14:03
@dustymabe dustymabe merged commit f529f73 into coreos:main Nov 23, 2024
5 checks passed
@dustymabe dustymabe deleted the dusty-drop-snapshot branch November 23, 2024 14:03
dustymabe added a commit to coreosbot-releng/fedora-coreos-config that referenced this pull request Nov 24, 2024
Since we dropped runvm_with_cache_snapshot this now fails.
Let's make a similar change here as what we did in
coreos/coreos-assembler#3970
dustymabe added a commit to coreos/fedora-coreos-config that referenced this pull request Nov 24, 2024
Since we dropped runvm_with_cache_snapshot this now fails.
Let's make a similar change here as what we did in
coreos/coreos-assembler#3970
@dustymabe
Copy link
Member Author

AFAICT it's only in cosa that we do this.

At least one other place: coreos/fedora-coreos-config@f945860

aaradhak pushed a commit to aaradhak/fedora-coreos-config that referenced this pull request Dec 4, 2024
Since we dropped runvm_with_cache_snapshot this now fails.
Let's make a similar change here as what we did in
coreos/coreos-assembler#3970
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.

2 participants