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

origin: Switch baserefspec → refspec when de-layering #2882

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

cgwalters
Copy link
Member

The idea originally was that we'd switch to baserefspec when
performing changes such that ostree admin upgrade would no longer
work. But that has long since been buggy since the introduction
of things like rpm-ostree initramfs --enable etc.

The only goal of this PR is to avoid "leaking state" across
origin switches, so that the work to map origin ⇔ treefile
can also (correctly) be stateless.

@cgwalters cgwalters force-pushed the origin-refspec-base branch from 3f3348f to 36ec429 Compare June 7, 2021 22:42
@cgwalters cgwalters marked this pull request as draft June 8, 2021 11:18
@cgwalters cgwalters force-pushed the origin-refspec-base branch 2 times, most recently from 5808f57 to 710a88e Compare June 10, 2021 20:38
@cgwalters cgwalters marked this pull request as ready for review June 10, 2021 20:38
@cgwalters
Copy link
Member Author

OK lifting draft on this one, I think it's good to go. It's been more extensiveliy tested in #2743 and I think the last failure there is unrelated.

The idea originally was that we'd switch to `baserefspec` when
performing changes such that `ostree admin upgrade` would no longer
work.  But that has long since been buggy since the introduction
of things like `rpm-ostree initramfs --enable` etc.

The only goal of this PR is to avoid "leaking state" across
origin switches, so that the work to map origin ⇔ treefile
can also (correctly) be stateless.
@cgwalters cgwalters force-pushed the origin-refspec-base branch from 710a88e to efd668a Compare June 14, 2021 13:26
@@ -714,6 +722,7 @@ rpmostree_origin_remove_packages (RpmOstreeOrigin *origin,
update_keyfile_pkgs_from_cache (origin, "packages", "requested-local",
origin->cached_local_packages, TRUE);

sync_baserefspec (origin);
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this redundant with the calls we do in update_keyfile_pkgs_from_cache?

Copy link
Member Author

@cgwalters cgwalters Jun 14, 2021

Choose a reason for hiding this comment

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

Yeah it is. Doesn't seem worth rerunning all the CI just for that, I'll fix it in #2743

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