56 Commits

Author SHA1 Message Date
xtqqczze 0763c0b9c4 ci: add workflow to check TOML files 2026-05-29 21:36:40 +02:00
xtqqczze af3e2cfe9e ci: update macOS job features in code quality workflow 2026-05-19 15:00:14 +02:00
renovate[bot] 521c855524 chore(deps): update mozilla-actions/sccache-action action to v0.0.10 2026-04-23 07:37:53 +02:00
renovate[bot] b06d39ee1b chore(deps): update astral-sh/ruff-action action to v4 2026-04-22 07:37:48 +02:00
Sylvestre Ledru 56210f1137 test: add unit tests for compare_size_results.py
Mirrors test_compare_test_results.py: covers human_kb formatting,
load_sizes (date-keyed and flat), compare() including threshold
boundaries on both growth and shrinkage, format_report, and an
end-to-end main() check that the comment file is only written when
something significant is reported.

Wired into code-quality.yml alongside the existing compare_test_results
unit tests.
2026-04-11 16:02:00 +02:00
Sylvestre Ledru 8ffb33f1da adjust the spell-checker ignores 2026-04-03 18:57:24 +02:00
Sylvestre Ledru 9ccd9ada9a github action: move the clippy management into a script 2026-04-03 12:15:40 +02:00
Sylvestre Ledru d8a439c312 CI: run clippy on wasm32-wasip1 target with feat_wasm 2026-04-03 12:15:40 +02:00
oech3 2b05f2fa8c Remove duplicated features (#11510) 2026-03-27 09:52:28 +01:00
renovate[bot] a8a61e6799 chore(deps): update nick-fields/retry action to v4 2026-03-20 07:22:37 +01:00
oech3 59288a76b1 dedup env: CARGO_INCREMENTAL: 0 (#11360) 2026-03-17 14:50:06 +01:00
oech3 fab186eba7 Don't wrap sccache when sccache action caused network err 2026-02-27 16:00:04 +01:00
oech3 848f12cbae Don't fail when sccache caused network error 2026-02-27 10:18:05 +01:00
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