Skip to content

uutests: gate by target support - #14252

Draft
xtqqczze wants to merge 2 commits into
uutils:mainfrom
xtqqczze:targets-uutests
Draft

xtqqczze wants to merge 2 commits into
uutils:mainfrom
xtqqczze:targets-uutests

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Aug 29, 2026 •

Copy link
Copy Markdown
Collaborator
RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std=std,panic_abort -p uutests --all-targets --all-features --target=powerpc64-ibm-aix --target=x86_64-linux-android --target=x86_64-pc-cygwin --target=aarch64-apple-darwin --target=x86_64-unknown-dragonfly --target=x86_64-unknown-freebsd --target=x86_64-unknown-fuchsia --target=x86_64-unknown-haiku --target=x86_64-unknown-hermit --target=x86_64-unknown-hurd-gnu --target=aarch64-unknown-illumos --target=x86_64-unknown-linux-gnu --target=i686-unknown-netbsd --target=x86_64-unknown-openbsd --target=x86_64-unknown-redox --target=x86_64-pc-solaris --target=wasm32-wasip1 --target=x86_64-pc-windows-gnu

Closes #14935.

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 155.24 MB (-148 KB, -0.09%)

Significant per-binary changes:
  env     1.20 MB ->    1.28 MB  (+80 KB, +6.51%)

@codspeed

codspeed Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning, 1 note

⚠️ 118 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 1 benchmark has no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

✅ 401 untouched benchmarks
⏩ 70 skipped benchmarks1


Comparing xtqqczze:targets-uutests (854c96f) with main (ff0c589)2

Open in CodSpeed

Footnotes

  1. 70 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (732b9c5) during the generation of this report, so ff0c589 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@github-actions

github-actions Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/tail/follow-name is no longer failing!
Congrats! The gnu test tests/tail/pid-pipe is no longer failing!

@xtqqczze
xtqqczze force-pushed the targets-uutests branch 3 times, most recently from a620f78 to 1998905 Compare August 30, 2026 11:54
@xtqqczze

This comment was marked as outdated.

@xtqqczze
xtqqczze marked this pull request as ready for review August 30, 2026 16:10
@xtqqczze

This comment was marked as outdated.

@xtqqczze
xtqqczze force-pushed the targets-uutests branch 3 times, most recently from 1068f5e to b4a3d9a Compare August 30, 2026 21:45
@xtqqczze

This comment was marked as outdated.

@xtqqczze

This comment was marked as outdated.

YodonTan pushed a commit to YodonTan/coreutils that referenced this pull request Aug 31, 2026
Fixes required to build uutils/coreutils on HarmonyOS (aarch64-unknown-linux-ohos):

- uucore/fsext: statfs.f_type is u64 on OHOS; route it through the musl branch.
- hostid: implement gethostid locally (read /etc/hostid, else hash hostname)
  because the OHOS SDK libc dropped the symbol.
- date: pass through the system time zone ID from OH_TimeService_GetTimeZone
  and resolve it with embedded IANA tzdata (jiff-tzdb) via TimeZone::tzif,
  instead of relying on /etc/localtime or a POSIX-injected TZ. The OHOS-only
  helper is cfg-gated; non-OHOS code paths are byte-identical to upstream.

utmpx is intentionally left untouched: upstream uutils#14252 disables it on OHOS
(no utmp data source there), and this PR defers to that approach.

Also syncs fuzz/Cargo.lock after adding the jiff-tzdb dependency.

Verified on-device: date matches system time (+0800 CST; 1987-06-01 -> +0900 CDT),
hostid behaves, builds pass on the non-utmpx feature set.
sylvestre pushed a commit that referenced this pull request Sep 7, 2026
Fixes required to build uutils/coreutils on HarmonyOS (aarch64-unknown-linux-ohos):

- uucore/fsext: statfs.f_type is u64 on OHOS; route it through the musl branch.
- hostid: implement gethostid locally (read /etc/hostid, else hash hostname)
  because the OHOS SDK libc dropped the symbol.
- date: pass through the system time zone ID from OH_TimeService_GetTimeZone
  and resolve it with embedded IANA tzdata (jiff-tzdb) via TimeZone::tzif,
  instead of relying on /etc/localtime or a POSIX-injected TZ. The OHOS-only
  helper is cfg-gated; non-OHOS code paths are byte-identical to upstream.

utmpx is intentionally left untouched: upstream #14252 disables it on OHOS
(no utmp data source there), and this PR defers to that approach.

Also syncs fuzz/Cargo.lock after adding the jiff-tzdb dependency.

Verified on-device: date matches system time (+0800 CST; 1987-06-01 -> +0900 CDT),
hostid behaves, builds pass on the non-utmpx feature set.
@sylvestre
sylvestre enabled auto-merge (rebase) September 7, 2026 11:56
auto-merge was automatically disabled September 7, 2026 12:20

Head branch was pushed to by a user without write access

@xtqqczze
xtqqczze force-pushed the targets-uutests branch 6 times, most recently from d3db58f to eb50054 Compare October 18, 2026 23:14
@xtqqczze
xtqqczze marked this pull request as draft October 19, 2026 15:43
@xtqqczze

This comment was marked as outdated.

@xtqqczze
xtqqczze force-pushed the targets-uutests branch 2 times, most recently from ca7bb99 to 854c96f Compare October 25, 2026 10:15
@xtqqczze
xtqqczze marked this pull request as ready for review October 25, 2026 19:36
@xtqqczze
xtqqczze force-pushed the targets-uutests branch 3 times, most recently from 5ffe75c to 7adc858 Compare October 30, 2026 16:17
@sylvestre
sylvestre force-pushed the targets-uutests branch 5 times, most recently from de6f1c2 to 1582aca Compare November 19, 2026 13:29
@xtqqczze

This comment was marked as outdated.

@xtqqczze

Copy link
Copy Markdown
Collaborator Author

Let's bump rlimit to v0.12.0 first since it has some changes for fuchsia targets.

@xtqqczze
xtqqczze marked this pull request as draft November 23, 2026 10:45
```sh
RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std=std,panic_abort -p uutests --all-targets --all-features --target=powerpc64-ibm-aix --target=x86_64-linux-android --target=x86_64-pc-cygwin --target=aarch64-apple-darwin --target=x86_64-unknown-dragonfly --target=x86_64-unknown-freebsd --target=x86_64-unknown-haiku --target=x86_64-unknown-hermit --target=x86_64-unknown-hurd-gnu --target=aarch64-unknown-illumos --target=x86_64-unknown-linux-gnu --target=i686-unknown-netbsd --target=x86_64-unknown-openbsd --target=x86_64-unknown-redox --target=x86_64-pc-solaris --target=wasm32-wasip1 --target=x86_64-pc-windows-gnu
```

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.

uutests: gate by target support

2 participants