Skip to content

Commit 566d49c

Browse files
authored
Merge branch 'main' into 2137562
2 parents 402ddf1 + ec7e81e commit 566d49c

File tree

558 files changed

+16816
-7321
lines changed

Some content is hidden

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

558 files changed

+16816
-7321
lines changed

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ rustflags = ["-C", "target-feature=+crt-static"]
1212
[env]
1313
# See feat_external_libstdbuf in src/uu/stdbuf/Cargo.toml
1414
LIBSTDBUF_DIR = "/usr/local/libexec/coreutils"
15+
16+
# remove me
17+
[build]
18+
rustflags = ["-A", "clippy::collapsible_if"]

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
msrv = "1.85.0"
21
avoid-breaking-exported-api = false
32
check-private-items = true
43
cognitive-complexity-threshold = 24
54
missing-docs-in-crate-items = true
5+
allow-mixed-uninlined-format-args = false

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ switch_case_indent = true
5757
end_of_line = crlf
5858
insert_final_newline = false
5959

60+
[*.toml]
61+
indent_size = 2
62+
indent_style = space
63+
6064
[*.{yaml,yml,[Yy][Mm][Ll],[Yy][Aa][Mm][Ll]}]
6165
# YAML
6266
indent_size = 2

.github/workflows/CICD.yml

Lines changed: 79 additions & 106 deletions
Large diffs are not rendered by default.

.github/workflows/FixPR.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
echo "## dependency list"
6868
cargo fetch --locked --quiet --target $(rustc --print host-tuple)
6969
## * using the 'stable' toolchain is necessary to avoid "unexpected '--filter-platform'" errors
70-
RUSTUP_TOOLCHAIN=stable cargo tree --locked --no-dedupe -e=no-dev --prefix=none --features ${{ matrix.job.features }} | grep -vE "$PWD" | sort --unique
70+
cargo +stable tree --locked --no-dedupe -e=no-dev --prefix=none --features ${{ matrix.job.features }} | grep -vE "$PWD" | sort --unique
7171
- name: Commit any changes (to '${{ env.BRANCH_TARGET }}')
7272
uses: EndBug/add-and-commit@v9
7373
with:

.github/workflows/GnuComment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ jobs:
5959
issue_number: issue_number,
6060
body: 'GNU testsuite comparison:\n```\n' + content + '```'
6161
});
62-
}
62+
}

.github/workflows/GnuTests.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: GnuTests
66
# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
77
# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
88
# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
9-
# spell-checker:ignore userns
9+
# spell-checker:ignore userns nodocs
1010

1111
# * note: to run a single test => `REPO/util/run-gnu-test.sh PATH/TO/TEST/SCRIPT`
1212

@@ -44,9 +44,6 @@ jobs:
4444
with:
4545
path: 'uutils'
4646
persist-credentials: false
47-
- uses: dtolnay/rust-toolchain@master
48-
with:
49-
toolchain: stable
5047
- uses: Swatinem/rust-cache@v2
5148
with:
5249
workspaces: "./uutils -> target"
@@ -207,12 +204,6 @@ jobs:
207204
with:
208205
path: 'uutils'
209206
persist-credentials: false
210-
- uses: dtolnay/rust-toolchain@master
211-
with:
212-
toolchain: stable
213-
- uses: Swatinem/rust-cache@v2
214-
with:
215-
workspaces: "./uutils -> target"
216207
- name: Checkout code (GNU coreutils)
217208
run: (mkdir -p gnu && cd gnu && bash ../uutils/util/fetch-gnu.sh)
218209

@@ -235,8 +226,7 @@ jobs:
235226
236227
- name: Install dependencies in VM
237228
run: |
238-
lima sudo dnf -y update
239-
lima sudo dnf -y install autoconf bison gperf gcc gdb jq libacl-devel libattr-devel libcap-devel libselinux-devel attr rustup clang-devel automake patch quilt
229+
lima sudo dnf -y install --nodocs autoconf bison gperf gcc gdb jq libacl-devel libattr-devel libcap-devel libselinux-devel attr rustup clang-devel automake patch quilt
240230
lima rustup-init -y --profile=minimal --default-toolchain stable
241231
- name: Copy the sources to VM
242232
run: |
@@ -325,9 +315,6 @@ jobs:
325315
with:
326316
path: 'uutils'
327317
persist-credentials: false
328-
- uses: dtolnay/rust-toolchain@master
329-
with:
330-
toolchain: stable
331318
- uses: Swatinem/rust-cache@v2
332319
with:
333320
workspaces: "./uutils -> target"
@@ -385,7 +372,7 @@ jobs:
385372
path: 'uutils'
386373
persist-credentials: false
387374
- name: Retrieve reference artifacts
388-
uses: dawidd6/action-download-artifact@v12
375+
uses: dawidd6/action-download-artifact@v14
389376
# ref: <https://github.com/dawidd6/action-download-artifact>
390377
continue-on-error: true ## don't break the build for missing reference artifacts (may be expired or just not generated yet)
391378
with:

.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/audit.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Security audit
2+
3+
# spell-checker:ignore (misc) rustsec
4+
5+
on:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
jobs:
9+
audit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: rustsec/audit-check@v2
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/benchmarks.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ jobs:
2020
benchmarks:
2121
name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }} (CodSpeed)
2222
runs-on: ubuntu-latest
23+
env:
24+
RUSTC_WRAPPER: sccache
25+
CARGO_INCREMENTAL: 0
26+
SCCACHE_GHA_ENABLED: "true"
2327
strategy:
2428
matrix:
25-
type: [performance, memory]
29+
type: [simulation, memory]
2630
package: [
2731
uu_base64,
2832
uu_cksum,
@@ -62,6 +66,14 @@ jobs:
6266
- name: Run sccache-cache
6367
uses: mozilla-actions/sccache-action@v0.0.9
6468

69+
- name: Install locales
70+
shell: bash
71+
run: |
72+
sudo apt-get update
73+
sudo apt-get install -y locales
74+
sudo locale-gen fr_FR.UTF-8
75+
sudo update-locale
76+
6577
- name: Install cargo-codspeed
6678
shell: bash
6779
run: cargo install cargo-codspeed --locked
@@ -70,18 +82,14 @@ jobs:
7082
shell: bash
7183
run: |
7284
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
85+
cargo codspeed build -m ${{ matrix.type }} -p ${{ matrix.package }}
7886
7987
- name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }}
8088
uses: CodSpeedHQ/action@v4
8189
env:
8290
CODSPEED_LOG: debug
8391
with:
84-
mode: ${{ matrix.type == 'memory' && 'memory' || 'simulation' }}
92+
mode: ${{ matrix.type }}
8593
run: |
8694
echo "Running ${{ matrix.type }} benchmarks for ${{ matrix.package }}"
8795
cargo codspeed run -p ${{ matrix.package }} > /dev/null

0 commit comments

Comments
 (0)