Skip to content

Commit 6c90078

Browse files
authored
Merge branch 'main' into join-perf
2 parents a88822d + ec7e81e commit 6c90078

File tree

519 files changed

+12219
-5564
lines changed

Some content is hidden

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

519 files changed

+12219
-5564
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: 52 additions & 65 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/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: 5 additions & 1 deletion
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: [simulation] # , memory] # memory profile disabled due to variance
29+
type: [simulation, memory]
2630
package: [
2731
uu_base64,
2832
uu_cksum,

.github/workflows/code-quality.yml

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

3-
# spell-checker:ignore (people) reactivecircus Swatinem dtolnay juliangruber pell taplo
3+
# spell-checker:ignore (people) dtolnay juliangruber pell reactivecircus Swatinem taiki-e taplo
44
# spell-checker:ignore (misc) TERMUX noaudio pkill swiftshader esac sccache pcoreutils shopt subshell dequote libsystemd
55

66
on:
@@ -74,6 +74,7 @@ jobs:
7474
env:
7575
SCCACHE_GHA_ENABLED: "true"
7676
RUSTC_WRAPPER: "sccache"
77+
CARGO_INCREMENTAL: 0
7778
strategy:
7879
fail-fast: false
7980
matrix:
@@ -204,8 +205,13 @@ jobs:
204205
with:
205206
persist-credentials: false
206207

208+
- name: Install taplo-cli
209+
uses: taiki-e/install-action@v2
210+
with:
211+
tool: taplo-cli
212+
207213
- name: Check
208-
run: npx --yes @taplo/cli fmt --check
214+
run: taplo fmt --check --diff
209215

210216
python:
211217
name: Style/Python

0 commit comments

Comments
 (0)