Skip to content

Commit 0e20f3c

Browse files
authored
Merge branch 'main' into factor_fix
2 parents 0f53666 + a06760e commit 0e20f3c

File tree

209 files changed

+5970
-2612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+5970
-2612
lines changed

.github/workflows/CICD.yml

Lines changed: 63 additions & 70 deletions
Large diffs are not rendered by default.

.github/workflows/GnuTests.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,6 @@ jobs:
233233
lima ls -laZ /etc/selinux
234234
lima sudo sestatus
235235
236-
# Ensure we're running in enforcing mode
237-
lima sudo setenforce 1
238-
lima getenforce
239-
240-
# Create test files with SELinux contexts for testing
241-
lima sudo mkdir -p /var/test_selinux
242-
lima sudo touch /var/test_selinux/test_file
243-
lima sudo chcon -t etc_t /var/test_selinux/test_file
244-
lima ls -Z /var/test_selinux/test_file # Verify context
245236
- name: Install dependencies in VM
246237
run: |
247238
lima sudo dnf -y update
@@ -267,8 +258,16 @@ jobs:
267258
lima bash -c "cd ~/work/uutils/ && echo 'Found SELinux tests:'; wc -l selinux-tests.txt"
268259
- name: Run GNU SELinux tests
269260
run: |
261+
# Ensure we're running in enforcing mode
270262
lima sudo setenforce 1
271263
lima getenforce
264+
265+
# Create test files with SELinux contexts for testing
266+
lima sudo mkdir -p /var/test_selinux
267+
lima sudo touch /var/test_selinux/test_file
268+
lima sudo chcon -t etc_t /var/test_selinux/test_file
269+
lima ls -Z /var/test_selinux/test_file # Verify context
270+
272271
lima cat /proc/filesystems
273272
lima bash -c "cd ~/work/uutils/ && bash util/run-gnu-test.sh \$(cat selinux-tests.txt)"
274273
- name: Extract testing info from individual logs into JSON

.github/workflows/android.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ concurrency:
2222
env:
2323
TERMUX: v0.118.0
2424
KEY_POSTFIX: nextest+rustc-hash+adb+sshd+upgrade+XGB+inc18
25-
COMMON_EMULATOR_OPTIONS: -no-window -noaudio -no-boot-anim -camera-back none -gpu off
25+
COMMON_EMULATOR_OPTIONS: -no-metrics -no-window -noaudio -no-boot-anim -camera-back none -gpu off
2626
EMULATOR_DISK_SIZE: 12GB
2727
EMULATOR_HEAP_SIZE: 2048M
2828
EMULATOR_BOOT_TIMEOUT: 1200 # 20min
@@ -39,7 +39,7 @@ jobs:
3939
ram: [4096]
4040
api-level: [28]
4141
target: [google_apis_playstore]
42-
arch: [x86, x86_64] # , arm64-v8a
42+
arch: [x86_64] # ,x86 ,arm64-v8a
4343
runs-on: ${{ matrix.os }}
4444
env:
4545
EMULATOR_RAM_SIZE: ${{ matrix.ram }}
@@ -166,7 +166,7 @@ jobs:
166166
disk-size: ${{ env.EMULATOR_DISK_SIZE }}
167167
cores: ${{ env.EMULATOR_CORES }}
168168
force-avd-creation: false
169-
emulator-options: ${{ env.COMMON_EMULATOR_OPTIONS }} -no-metrics -no-snapshot-save -snapshot ${{ env.AVD_CACHE_KEY }}
169+
emulator-options: ${{ env.COMMON_EMULATOR_OPTIONS }} -no-snapshot-save -snapshot ${{ env.AVD_CACHE_KEY }}
170170
emulator-boot-timeout: ${{ env.EMULATOR_BOOT_TIMEOUT }}
171171
# This is not a usual script. Every line is executed in a separate shell with `sh -c`. If
172172
# one of the lines returns with error the whole script is failed (like running a script with

.github/workflows/benchmarks.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
type: [performance, memory]
25+
type: [simulation] # , memory] # memory profile disabled due to variance
2626
package: [
2727
uu_base64,
2828
uu_cksum,
@@ -62,6 +62,14 @@ jobs:
6262
- name: Run sccache-cache
6363
uses: mozilla-actions/sccache-action@v0.0.9
6464

65+
- name: Install locales
66+
shell: bash
67+
run: |
68+
sudo apt-get update
69+
sudo apt-get install -y locales
70+
sudo locale-gen fr_FR.UTF-8
71+
sudo update-locale
72+
6573
- name: Install cargo-codspeed
6674
shell: bash
6775
run: cargo install cargo-codspeed --locked
@@ -70,18 +78,14 @@ jobs:
7078
shell: bash
7179
run: |
7280
echo "Building ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
73-
if [ "${{ matrix.type }}" = "memory" ]; then
74-
cargo codspeed build -m analysis -p ${{ matrix.package }}
75-
else
76-
cargo codspeed build -p ${{ matrix.package }}
77-
fi
81+
cargo codspeed build -m ${{ matrix.type }} -p ${{ matrix.package }}
7882
7983
- name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }}
8084
uses: CodSpeedHQ/action@v4
8185
env:
8286
CODSPEED_LOG: debug
8387
with:
84-
mode: ${{ matrix.type == 'memory' && 'memory' || 'simulation' }}
88+
mode: ${{ matrix.type }}
8589
run: |
8690
echo "Running ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
8791
cargo codspeed run -p ${{ matrix.package }} > /dev/null

.github/workflows/code-quality.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ jobs:
147147
CARGO_UTILITY_LIST_OPTIONS="$(for u in ${UTILITY_LIST}; do echo -n "-puu_${u} "; done;)"
148148
S=$(cargo clippy --all-targets $extra --tests --benches -pcoreutils ${CARGO_UTILITY_LIST_OPTIONS} -- -D warnings 2>&1) && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s" "$S" | sed -E -n -e '/^error:/{' -e "N; s/^error:[[:space:]]+(.*)\\n[[:space:]]+-->[[:space:]]+(.*):([0-9]+):([0-9]+).*$/::${fault_type} file=\2,line=\3,col=\4::${fault_prefix}: \`cargo clippy\`: \1 (file:'\2', line:\3)/p;" -e '}' ; fault=true ; }
149149
if [ -n "${{ steps.vars.outputs.FAIL_ON_FAULT }}" ] && [ -n "$fault" ]; then exit 1 ; fi
150+
- name: "cargo clippy on fuzz dir"
151+
if: runner.os != 'Windows'
152+
shell: bash
153+
run: |
154+
cd fuzz
155+
cargo clippy --workspace --all-targets --all-features -- -D warnings
150156
151157
style_spellcheck:
152158
name: Style/spelling

.github/workflows/freebsd.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: FreeBSD
22

3-
# spell-checker:ignore sshfs usesh vmactions taiki Swatinem esac fdescfs fdesc sccache nextest copyback logind
3+
# spell-checker:ignore sshfs usesh vmactions taiki Swatinem esac fdescfs fdesc nextest copyback logind
44

55
env:
66
# * style job configuration
@@ -30,18 +30,10 @@ jobs:
3030
matrix:
3131
job:
3232
- { os: ubuntu-24.04 , features: unix }
33-
env:
34-
SCCACHE_GHA_ENABLED: "true"
35-
RUSTC_WRAPPER: "sccache"
3633
steps:
3734
- uses: actions/checkout@v6
3835
with:
3936
persist-credentials: false
40-
- uses: Swatinem/rust-cache@v2
41-
- name: Run sccache-cache
42-
uses: mozilla-actions/sccache-action@v0.0.9
43-
with:
44-
disable_annotations: true
4537
- name: Prepare, build and test
4638
uses: vmactions/freebsd-vm@v1.2.9
4739
with:
@@ -127,19 +119,12 @@ jobs:
127119
- { os: ubuntu-24.04 , features: unix }
128120
env:
129121
mem: 4096
130-
SCCACHE_GHA_ENABLED: "true"
131-
RUSTC_WRAPPER: "sccache"
132122
steps:
133123
- uses: actions/checkout@v6
134124
with:
135125
persist-credentials: false
136126
- name: Avoid no space left on device (Ubuntu runner)
137-
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android
138-
- uses: Swatinem/rust-cache@v2
139-
- name: Run sccache-cache
140-
uses: mozilla-actions/sccache-action@v0.0.9
141-
with:
142-
disable_annotations: true
127+
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android &
143128
- name: Prepare, build and test
144129
uses: vmactions/freebsd-vm@v1.2.9
145130
with:

.github/workflows/fuzzing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- { name: fuzz_parse_glob, should_pass: true }
9595
- { name: fuzz_parse_size, should_pass: true }
9696
- { name: fuzz_parse_time, should_pass: true }
97-
- { name: fuzz_seq_parse_number, should_pass: true }
97+
- { name: fuzz_seq_parse_number, should_pass: false }
9898
- { name: fuzz_non_utf8_paths, should_pass: true }
9999

100100
steps:

.github/workflows/ignore-intermittent.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ tests/tty/tty-eof
88
tests/misc/stdbuf
99
tests/misc/usage_vs_getopt
1010
tests/misc/tee
11+
tests/tail/follow-name

.github/workflows/l10n.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ jobs:
735735
run: |
736736
## Download additional locale files from coreutils-l10n repository
737737
echo "Downloading additional locale files from coreutils-l10n..."
738-
git clone https://github.com/uutils/coreutils-l10n.git coreutils-l10n-repo
738+
git clone --depth=1 https://github.com/uutils/coreutils-l10n.git coreutils-l10n-repo
739739
740740
# Create installation directory
741741
CARGO_INSTALL_DIR="$PWD/cargo-install-dir"

.github/workflows/openbsd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ jobs:
4747
prepare: |
4848
# Clean up disk space before installing packages
4949
df -h
50-
rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* || :
5150
pkg_add curl sudo-- jq coreutils bash rust rust-clippy rust-rustfmt llvm--
51+
rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* &
5252
# Clean up package cache after installation
53-
pkg_delete -a || true
53+
pkg_delete -a &
5454
df -h
5555
run: |
5656
## Prepare, build, and test
@@ -137,15 +137,15 @@ jobs:
137137
usesh: true
138138
sync: rsync
139139
copyback: false
140-
mem: 4096
140+
mem: 6144
141141
# Install rust and build dependencies from OpenBSD packages (llvm provides libclang for bindgen)
142142
prepare: |
143143
# Clean up disk space before installing packages
144144
df -h
145-
rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* || :
145+
rm -rf /usr/share/relink/* /usr/X11R6/* /usr/share/doc/* /usr/share/man/* &
146146
pkg_add curl gmake sudo-- jq rust llvm--
147147
# Clean up package cache after installation
148-
pkg_delete -a || :
148+
pkg_delete -a &
149149
df -h
150150
run: |
151151
## Prepare, build, and test
@@ -194,7 +194,7 @@ jobs:
194194
set +e
195195
cd "${WORKSPACE}"
196196
unset FAULT
197-
cargo build || FAULT=1
197+
# openbsd is very slow. Omit duplicated cargo build and do test only
198198
export PATH=~/.cargo/bin:${PATH}
199199
export RUST_BACKTRACE=1
200200
export CARGO_TERM_COLOR=always
@@ -208,7 +208,7 @@ jobs:
208208
cargo test --features "\$UUCORE_FEATURES" -p uucore || FAULT=1
209209
fi
210210
# Test building with make
211-
if (test -z "\$FAULT"); then make || FAULT=1 ; fi
211+
if (test -z "\$FAULT"); then make MULTICALL=Y || FAULT=1 ; fi
212212
# Clean to avoid to rsync back the files and free up disk space
213213
cargo clean
214214
# Additional cleanup to free disk space

0 commit comments

Comments
 (0)