Skip to content

Fix scan_flaky_fault_injectors.sh with uutils coreutils - #2113

Open
tuhaihe wants to merge 1 commit into
apache:mainfrom
tuhaihe:fix-regress-flaky-scan-locale
Open

tuhaihe wants to merge 1 commit into
apache:mainfrom
tuhaihe:fix-regress-flaky-scan-locale

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Oct 10, 2026

Copy link
Copy Markdown
Member

On Ubuntu 26.04, "make installcheck-good" and "installcheck-cbdb-parallel" stop before any test runs:

  scanning for flaky fault-injection tests...
  comm: file 1 is not in sorted order
  comm: input is not in sorted order
  make: *** [GNUmakefile:213: installcheck-good] Error 1

Ubuntu 26.04 replaces GNU coreutils with uutils coreutils. In the UTF-8 locale of the build images (en_US.UTF-8), its sort -u and comm do not agree on the order of the two test lists, so comm rejects its input. GNU coreutils 9.4 on Ubuntu 24.04 does not have this problem.

Make sort and comm use the same order by running the script in the C locale. The test names are ASCII, so only the collation changes.

Checked on Ubuntu 26.04 in the build image: the script fails in the default locale and passes with LC_ALL=C. It passes in both ways on Ubuntu 24.04.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


On Ubuntu 26.04, "make installcheck-good" and "installcheck-cbdb-parallel"
stop before any test runs:

  scanning for flaky fault-injection tests...
  comm: file 1 is not in sorted order
  comm: input is not in sorted order
  make: *** [GNUmakefile:213: installcheck-good] Error 1

Ubuntu 26.04 replaces GNU coreutils with uutils coreutils. In the UTF-8
locale of the build images (en_US.UTF-8), its sort -u and comm do not
agree on the order of the two test lists, so comm rejects its input.
GNU coreutils 9.4 on Ubuntu 24.04 does not have this problem.

Make sort and comm use the same order by running the script in the C
locale. The test names are ASCII, so only the collation changes.

Checked on Ubuntu 26.04 in the build image: the script fails in the
default locale and passes with LC_ALL=C. It passes in both ways on
Ubuntu 24.04.

Assisted-by: Claude Code
Backpatch-through: REL_2_STABLE
@tuhaihe tuhaihe added this to the Ubuntu 26.04 Support milestone Oct 10, 2026
@tuhaihe

tuhaihe commented Oct 10, 2026

Copy link
Copy Markdown
Member Author

This change has been verified in Ubuntu 26.04 on #2096

@Alena0704

Copy link
Copy Markdown
Collaborator

LGTM.

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