-
Notifications
You must be signed in to change notification settings - Fork 305
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
tests: Revert to using --owner-uid=$(id -u) #2423
Conversation
As a non-root |
I don't understand how that's possible. What is your build environment/setup, specifically? For me it's running in |
Nothing fancy, a Debian 11/stable workstation and a boring interactive user.
|
It's But clearly, something apparently did work in #2424 and I believe you it works locally. One thing I'm narrowing in on is that I am passing through |
Yup from the CI logs: |
OK there's more here to do; marking draft. |
71427a9
to
4e25751
Compare
OK yeah. A lot of history here. |
Followup to PRs related to ostreedev#2410 Since the test suite now covers this the test was failing on a Fedora SELinux enabled host where we see `security.selinux` even if not in the commit.
Hit this while working on some Rust code.
This is really the standard best practice, matching how e.g. dpkg/rpm work, as well as most local development environments (including mine) with e.g. `toolbox`.
This allows the test suite to run as non-root again. When operating on a bare non-root repo, we can't `chown()`. (Arguably, non-root `bare` repos are not very useful and we shouldn't test them or potentially even support them, but that's a whole other thing)
It cannot work to use `--no-xattrs` when SELinux is enabled because we get a `security.selinux` attribute on created files regardless. So just skip this test if true. Also add some `ostree fsck`s in here which helped me debug this.
I was seeing an `EPERM` here which was confusing. It turned out the real error was `EEXIST`. Since we're referring to the original error, but we do a lot of computation in the middle, we need to save errno.
4e25751
to
a5c95a9
Compare
This allows the test suite to run as non-root again. When operating
on a bare non-root repo, we can't
chown()
.(Arguably, non-root
bare
repos are not very useful and we shouldn'ttest them or potentially even support them, but that's a whole
other thing)