Skip to content

ci: make sure GNU is the system coreutils #15962

Open

Description

@xtqqczze

Similar to #15024, we should ensure that GNU coreutils is the system coreutils in the remaining CI jobs.

ubuntu-26.04 uses uutils as the default system coreutils, which can cause tests to run against uutils instead of GNU. This can lead to unexpected failures or compatibility issues.

cc: @abendrothj

Activity

  1. oech3 commented on Oct 29, 2026

    @oech3
    Contributor

    I still don't agree with using GNU coreutils at Rust code as reliable tool. If we are developing alternative for it, we should bootstrap it. It abandons actual Ubuntu users.

    Other case is fine.

  2. xtqqczze commented on Oct 29, 2026

    @xtqqczze
    CollaboratorAuthor

    On the contrary, we should not use uutils as system coreutils to test uutils. We should use an independent implementation like GNU coreutils.

  3. oech3 commented on Oct 29, 2026

    @oech3
    Contributor

    Why? Referencing system coreutils from Rust is incorrect.

  4. abendrothj commented on Oct 31, 2026

    @abendrothj
    Contributor

    ubuntu-latest is already 26.04 (today's CICD jobs report Image: ubuntu-26.04), and that image ships coreutils-from-uutils, so this affects the regular test jobs now, not just later.

    The Rust tests that compare against the host tool (expected_result / gnu_cmd_result, used in du, ls, tail, stty, whoami, id, who, groups, pinky, stat) look for (GNU coreutils) in --version and skip otherwise. With uutils on the host they print "test skipped" and pass, so nothing fails; we just lose those checks without noticing.

  5. oech3 commented on Oct 31, 2026

    @oech3
    Contributor

    We should top using expected_result and gnu_cmd_result finally. Using GNU as system coreutils is just a "temp workaround".

  6. xtqqczze commented on Oct 31, 2026

    @xtqqczze
    CollaboratorAuthor

    In any case, we should use GNU as system coreutils for now

  7. oech3 commented on Oct 31, 2026

    @oech3
    Contributor

    I think we can use GNU at 1 job to avoid introducing many hacks.

    While I really don't like hack for some specific distro, we could hack expected_result / gnu_cmd_result to support binaries with gnu prefix for many Ubuntu users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions