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

ci/test-container.sh: Make it easier to execute locally and run treefile-apply test earlier #5286

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Feb 8, 2025

See individual commit messages.

This test right now is cumbersome to run locally. Add a new
`SELF_BOOTSTRAP` env var that allows the test to handle the setup bits
and launching the container.

So with this, you can run the test using:

    SELF_BOOTSTRAP=1 ci/test-container.sh
Otherwise, it runs after the `cliwrap` test, which wraps dnf, but we
want the real dnf here and it's awkward to try to work around that.

The `cliwrap` stuff should probably be tested in a separate run until
we remove suppor for it entirely so it doesn't pollute the rest of the
test environment.
# `SELF_BOOTSTRAP=1 ci/test-container.sh`.
if [ -n "${SELF_BOOTSTRAP:-}" ]; then
rm -rf "$PWD/installtree"
make install DESTDIR="$PWD/installtree"
Copy link
Member

Choose a reason for hiding this comment

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

Non blocking but for the future let's use a subdirectory of target/ for this type of stuff because it's already in .gitignore.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, agree. This is consistent with tests/vmcheck/install.sh, but we should update both.

@jlebon jlebon merged commit ee3c12e into coreos:main Feb 8, 2025
18 checks passed
@jlebon jlebon deleted the pr/test-container-fix branch February 8, 2025 12:27
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