Skip to content

UpdateReboot with Composefs disk image#91

Open
HarshwardhanPatil07 wants to merge 1 commit into
bootc-dev:mainfrom
HarshwardhanPatil07:e2e-composefs-test
Open

UpdateReboot with Composefs disk image#91
HarshwardhanPatil07 wants to merge 1 commit into
bootc-dev:mainfrom
HarshwardhanPatil07:e2e-composefs-test

Conversation

@HarshwardhanPatil07

@HarshwardhanPatil07 HarshwardhanPatil07 commented Jul 2, 2026

Copy link
Copy Markdown

UpdateReboot with Composefs disk image

Closes #74

@HarshwardhanPatil07 HarshwardhanPatil07 changed the title E2e composefs test e2e composefs test Jul 2, 2026
@HarshwardhanPatil07 HarshwardhanPatil07 changed the title e2e composefs test UpdateReboot with Composefs disk image Jul 2, 2026
Comment thread test/e2e/e2eutil/env.go Outdated
Comment thread Makefile Outdated
Comment thread test/e2e/bootcnode_test.go Outdated
@alicefr

alicefr commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

@HarshwardhanPatil07 many thanks for the PR! A couple of suggestions. Additionally, I would completely drop the second commit and set the default directly in the Makefile.

@alicefr

alicefr commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

@HarshwardhanPatil07 you also need to bump the bink commit in the GHA to the latest inorder to pick up the composefs fix in bink

@HarshwardhanPatil07 HarshwardhanPatil07 force-pushed the e2e-composefs-test branch 4 times, most recently from bda259b to 33a202b Compare July 4, 2026 08:13
@HarshwardhanPatil07

Copy link
Copy Markdown
Author

@alicefr thanks for your review. I have added the changes. Could you please take a look

Comment thread test/e2e/bootcnode_test.go Outdated
Comment on lines +98 to +126
tests := []struct {
name string
envVar string
}{
{
name: "ostree",
envVar: "BINK_NODE_DISK_IMAGE",
},
{
name: "composefs",
envVar: "BINK_NODE_DISK_IMAGE_COMPOSEFS",
},
}

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
var nodeOpts []e2eutil.NodeOption
if tc.envVar != "" {
img := os.Getenv(tc.envVar)
if img == "" {
t.Skipf("%s not set", tc.envVar)
}
nodeOpts = append(nodeOpts, e2eutil.WithNodeDiskImage(img))
}
testUpdateReboot(t, nodeOpts...)
})
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you create a reusable function has it was suggested by the comment #91 (comment) . In this way, we can reuse the same pattern in other tests as well

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, thank you!!

@HarshwardhanPatil07

Copy link
Copy Markdown
Author

@alicefr ready for your review! Let me know if anything needs adjusting.

@HarshwardhanPatil07

Copy link
Copy Markdown
Author

Also the tests are not triggered don't know why e2e (1.34) and those?

@alicefr

alicefr commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

They require an approval at every time. I thought it required only once. I will ask today in the bootc meeting how they deal with it. Usually, there is a label that enables subsequent runs.
If you are part of bootc org, then you can run automatically the tests

Factor the TestUpdateReboot body into a shared testUpdateReboot helper
and use a table-driven pattern to run it against both ostree and
composefs disk images. Skip the composefs subtest when the env var is
unset.

A new WithNodeDiskImage NodeOption lets tests override the VM disk image
passed as --node-image to bink node add. The Makefile derives
BINK_NODE_DISK_IMAGE_COMPOSEFS from BINK_NODE_DISK_IMAGE by appending
-composefs.

Bump BINK_COMMIT to pick up the composefs cloud-init fix from bink.

Closes: bootc-dev#74
Signed-off-by: HarshwardhanPatil07 <harshpat@redhat.com>
@HarshwardhanPatil07 HarshwardhanPatil07 deleted the e2e-composefs-test branch July 7, 2026 06:40
@HarshwardhanPatil07 HarshwardhanPatil07 restored the e2e-composefs-test branch July 7, 2026 08:52
Comment thread .github/workflows/ci.yaml
Comment on lines +175 to +177
- name: Write v2 registries.conf
run: printf 'unqualified-search-registries = ["docker.io"]\n' | sudo tee /etc/containers/registries.conf

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should be a separate commit ideally with its own rationale. And a smaller version of that rationale as a comment here.

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.

Also test composefs node images in CI

3 participants