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

Prep patches for modularity and pinned repo packages #2785

Merged
merged 5 commits into from
Apr 29, 2021

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Apr 27, 2021

See individual commit messages. Split out of #2760.

The only entrypoint so far doesn't use it (`countme`), but a future new
entrypoint will.

Also mention that the commands should add themselves to the array in
libmain.cxx if applicable so it shows up in `--help`.
This dates from the cbindgen era and isn't needed anymore.
This will be necessary for Rust-based client commands to be able to do
the regular "post-deployment package diff".
cgwalters
cgwalters previously approved these changes Apr 28, 2021
Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -271,8 +271,10 @@ fn merge_basic_field<T>(dest: &mut Option<T>, src: &mut Option<T>) {
/// the `packages` key.
fn merge_vec_field<T>(dest: &mut Option<Vec<T>>, src: &mut Option<Vec<T>>) {
if let Some(mut srcv) = src.take() {
if let Some(ref mut destv) = dest {
srcv.append(destv);
if let Some(mut destv) = dest.take() {
Copy link
Member

Choose a reason for hiding this comment

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

The next patches will effectively add a unit test for this right? If so fine as is but if not it'd be good to add one.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, #2787 has tests which rely on this.

Copy link
Member

Choose a reason for hiding this comment

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

Ohhh wait, yes I think the postprocess scripts are relying on the current ordering.

@cgwalters
Copy link
Member

The vmcheck failure there is a seen-before race around zincati/prom metrics. (Not sure if we filed it anywhere). Not sure what was up with the compose failure. Restarted CI.

@cgwalters cgwalters enabled auto-merge (rebase) April 28, 2021 19:29
@cgwalters
Copy link
Member

cgwalters commented Apr 28, 2021

EDIT: See above, this is the Vec ordering.

I don't quite know how but the failure seems consistent:

+ test -f /usr/share/included-postprocess-test
�[31m�[1merror: �[22m�[0mbwrap(/usr/bin/rpmostree-postprocess-inline-0): Child process killed by signal 1

This made me hesitate for a bit so add a comment about it to make it
clear. The RPMOSTREE_ASSEMBLE_TYPE_SERVER_BASE path was used by the `ex
container`, which was subsequently ripped out.
@jlebon
Copy link
Member Author

jlebon commented Apr 29, 2021

Ahhh heh, alrighty then. Indeed postprocess scripts is a good reason not to change those semantics. I dropped that commit and will just adapt #2787.

@cgwalters cgwalters merged commit 2ed6e40 into coreos:master Apr 29, 2021
@jlebon jlebon deleted the pr/modularity-prep-patches branch April 23, 2023 23:32
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