Commit Graph

43 Commits

Author SHA1 Message Date
oech3 3f099e6903 Mark pr/bounded-memory flakey & drop 2 useless setup (#10887) 2026-02-14 14:01:03 -08:00
xtqqczze 1c09c368db ci: show diff for toml_format (#10501) 2026-01-26 17:14:35 -08:00
oech3 bf12e9c806 CI: Disable incremental build for faster CI (#10462) 2026-01-25 22:41:37 +01:00
xtqqczze 938039e9ac fuzz: add cargo clippy check for fuzz directory (#10466) 2026-01-24 19:34:35 +01:00
renovate[bot] 62042d4df2 chore(deps): update actions/cache action to v5 2025-12-11 23:47:49 +00:00
oech3 bf24cb8880 Do not apt-get preinstalled tools to avoid delaying 2025-11-24 11:16:00 +09:00
renovate[bot] 44c1eeb68b chore(deps): update actions/checkout action to v6 2025-11-20 18:29:54 +00:00
Sylvestre Ledru 859a1ed2e3 github action: improve typo show in github (#9197) 2025-11-08 20:29:37 +01:00
Daniel Hofstetter c4d5cb2d59 ci: add "apt-get update" to code-quality workflow 2025-10-10 09:25:50 +02:00
Sylvestre Ledru 955b100517 github/action: improve the clippy run
freebsd was detecting issues the linux jobs were not
2025-09-25 22:05:22 +02:00
renovate[bot] 60f04300c6 chore(deps): update actions/setup-python action to v6 2025-09-04 05:37:26 +00:00
Etienne bba4d99042 add support for systemd-logind (#8483)
* add support for systemd-logind

Add support for systemd-logind for systems where `/var/run/utmp` does not exist any more (e.g. Ubuntu 25.04).

Here is some context explaining the switch from utmp to systemd-logind:
https://www.thkukuk.de/blog/Y2038_glibc_utmp_64bit/

Fixes https://github.com/uutils/coreutils/issues/8376

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* fix duplicated boot record

When feature feat_systemd_logind is enabled and utmp is present, two boot records were printed.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* improve error forwarding

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* remove unnecessary negation in if/else block

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* use getpwuid_r() instead of getpwuid()

getpwuid() is not thread-safe.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* improve error handling

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* use Path instead of string

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* use closure to reduce the number of clones() calls

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* use MaybeUninit instead of mem::zeroed()

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* systemd-logind: add some unit-tests

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* use sysconf(_SC_GETPW_R_SIZE_MAX) instead of 1024

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* fix cspell

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* add auto-enablement of feat_systemd_logind in GNUmakefile

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>

* Revert "add auto-enablement of feat_systemd_logind in GNUmakefile"

This breaks "Tests/BusyBox test suite" in CI.

This reverts commit 16626d4653.

---------

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-08-23 19:05:40 +02:00
renovate[bot] a1de8f7bf5 chore(deps): update actions/checkout action to v5 2025-08-11 15:31:34 +00:00
Sylvestre Ledru aa4a85a4ff add a job to verify that pre-commit works 2025-06-21 21:15:15 +02:00
Nicolas Boichat 7854efc802 code-quality.yml: Clippy with --all-features and --workspace on ubuntu
Without this, some uucore packages are not properly tested.
2025-05-29 13:55:32 +02:00
Daniel Hofstetter 04ca61dce4 ci: run "cargo fmt --check" in fuzz folder 2025-05-19 14:38:07 +02:00
Daniel Hofstetter 32dcaeef32 Move clippy lints from CI to Cargo.toml 2025-04-13 17:35:05 +02:00
Sylvestre Ledru b530fdcc88 github/action: on fork, run the CI for all the branches (currently: only main) 2025-03-28 17:06:20 +01:00
renovate[bot] 47e7062ada chore(deps): update mozilla-actions/sccache-action action to v0.0.9 2025-03-27 12:48:09 +00:00
Nicolas Boichat 28bfac3c3c ci: Enable cspell on test on dotfiles too
Noticed this because pre-commit would try to run on dotfiles as
well (will CI ignored it)
2025-03-26 16:50:08 +01:00
Nicolas Boichat b92144180f dotfiles: Add works to cspell dictionary
Also fix a couple of real spelling mistakes.
2025-03-26 16:49:21 +01:00
Sylvestre Ledru 302f7842c7 ci: if FAIL => PASS but in the intermittent list, show the info
see:
https://github.com/uutils/coreutils/pull/7522#issuecomment-2744892884
2025-03-22 11:04:20 +01:00
Sylvestre Ledru e61898897d Github action: run ruff on the python code 2025-03-18 20:52:46 +01:00
renovate[bot] 56a965e04f chore(deps): update mozilla-actions/sccache-action action to v0.0.8 2025-03-07 14:00:47 +00:00
Dorian Peron e8141d3360 Add --tests to CICD clippy call 2024-12-29 04:40:07 +01:00