GnuTests.yml: let root tests run the uutils build - #15005
abendrothj wants to merge 2 commits into
Conversation
|
cc: @oech3 |
|
We just need to install coreutils-from-gnu instead. No?
|
|
GNU testsuite comparison: |
|
1fd81e1 In general, I think we probably should have a CI step that prints the |
@oech3 Alternatively, make sure none of Ubuntu jobs use |
|
I guess |
| - name: "TEMP: show the image's own coreutils" | ||
| shell: bash | ||
| run: | | ||
| dpkg -l rust-coreutils coreutils-from-uutils coreutils | grep '^ii' | ||
| readlink -f /usr/bin/id | ||
| /usr/bin/id --version |
There was a problem hiding this comment.
| - name: "TEMP: show the image's own coreutils" | |
| shell: bash | |
| run: | | |
| dpkg -l rust-coreutils coreutils-from-uutils coreutils | grep '^ii' | |
| readlink -f /usr/bin/id | |
| /usr/bin/id --version | |
| - name: "Replace system id with GNU" | |
| shell: bash | |
| run: ln -f $(command -v gnuid) /bin/id |
There was a problem hiding this comment.
That makes this test run GNU's id instead of ours. The chroot only falls back to /usr/bin because nobody can't reach our build; once it can, the system id isn't used.
1fd81e1 to
85807c8
Compare
|
The root tests now fail up front if Switching the runner to |
Root tests switch to
nobodywithchroot --user./home/runneris0750, sonobodycan't reach the build dir and the PATH lookup falls back to the runner's/usr/bincoreutils. On ubuntu-26.04 that's Ubuntu's rust-coreutils, andid/setgidfailed on images still shipping 0.8.0, whoseidexits 1 on an unnamed gid. Allowing traversal on the workspace's parent dirs makes these tests run our build. Checked on the old image:id/setgidpasses, no other root test changes.Closes #14998