Skip to content

GnuTests.yml: let root tests run the uutils build - #15005

Open
abendrothj wants to merge 1 commit into
uutils:mainfrom
abendrothj:gnu-root-tests-use-build
Open

abendrothj wants to merge 1 commit into
uutils:mainfrom
abendrothj:gnu-root-tests-use-build

Conversation

@abendrothj

Copy link
Copy Markdown
Contributor

Root tests switch to nobody with chroot --user. /home/runner is 0750, so nobody can't reach the build dir and the PATH lookup falls back to the runner's /usr/bin coreutils. On ubuntu-26.04 that's Ubuntu's rust-coreutils, and id/setgid failed on images still shipping 0.8.0, whose id exits 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/setgid passes, no other root test changes.

Closes #14998

Copilot AI balanced review requested due to automatic review settings October 1, 2026 10:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 1, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@xtqqczze

xtqqczze commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

cc: @oech3

@oech3

oech3 commented Oct 1, 2026 via email

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/id/setgid is no longer failing!

@xtqqczze

xtqqczze commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

1fd81e1 In general, I think we probably should have a CI step that prints the rust-coreutils version in each Ubuntu job.

@xtqqczze

xtqqczze commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

We just need to install coreutils-from-gnu instead. No?

@oech3 Alternatively, make sure none of Ubuntu jobs use rust-coreutils. We shouldn't really be using them in our CI.

@oech3

oech3 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

I guess fuzzing.yml needs coreutils-from-gnu too.

Comment thread .github/workflows/GnuTests.yml Outdated
Comment on lines +116 to +121
- 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
- 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copilot AI balanced review requested due to automatic review settings October 1, 2026 19:58
@abendrothj
abendrothj force-pushed the gnu-root-tests-use-build branch from 1fd81e1 to 85807c8 Compare October 1, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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.

CI: GNU test tests/id/setgid fails intermittently on unrelated PRs

4 participants