Skip to content

Commit d6fab26

Browse files
committed
Merge remote-tracking branch 'upstream/main' into date-positional-set-format
# Conflicts: # tests/by-util/test_date.rs
2 parents db3f68e + c23dc67 commit d6fab26

161 files changed

Lines changed: 2925 additions & 1605 deletions

File tree

Some content is hidden

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

.clippy.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
allow-mixed-uninlined-format-args = false
2+
array-size-threshold = 65538
13
avoid-breaking-exported-api = false
24
check-private-items = true
35
cognitive-complexity-threshold = 24
46
missing-docs-in-crate-items = true
5-
allow-mixed-uninlined-format-args = false

.github/workflows/CICD.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
- uses: Swatinem/rust-cache@v2
116116
- name: Run sccache-cache
117117
id: sccache-setup
118-
uses: mozilla-actions/sccache-action@v0.0.9
118+
uses: mozilla-actions/sccache-action@v0.0.10
119119
continue-on-error: true
120120
- name: Export sccache
121121
if: steps.sccache-setup.outcome == 'success'
@@ -179,7 +179,7 @@ jobs:
179179
- uses: Swatinem/rust-cache@v2
180180
- name: Run sccache-cache
181181
id: sccache-setup
182-
uses: mozilla-actions/sccache-action@v0.0.9
182+
uses: mozilla-actions/sccache-action@v0.0.10
183183
continue-on-error: true
184184
- name: Export sccache
185185
if: steps.sccache-setup.outcome == 'success'
@@ -288,7 +288,7 @@ jobs:
288288
- uses: Swatinem/rust-cache@v2
289289
- name: Run sccache-cache
290290
id: sccache-setup
291-
uses: mozilla-actions/sccache-action@v0.0.9
291+
uses: mozilla-actions/sccache-action@v0.0.10
292292
continue-on-error: true
293293
- name: Export sccache
294294
if: steps.sccache-setup.outcome == 'success'
@@ -331,7 +331,7 @@ jobs:
331331
- uses: Swatinem/rust-cache@v2
332332
- name: Run sccache-cache
333333
id: sccache-setup
334-
uses: mozilla-actions/sccache-action@v0.0.9
334+
uses: mozilla-actions/sccache-action@v0.0.10
335335
continue-on-error: true
336336
- name: Export sccache
337337
if: steps.sccache-setup.outcome == 'success'
@@ -404,7 +404,7 @@ jobs:
404404
key: "${{ matrix.job.os }}_${{ matrix.job.target }}"
405405
- name: Run sccache-cache
406406
id: sccache-setup
407-
uses: mozilla-actions/sccache-action@v0.0.9
407+
uses: mozilla-actions/sccache-action@v0.0.10
408408
continue-on-error: true
409409
- name: Export sccache
410410
if: steps.sccache-setup.outcome == 'success'
@@ -713,13 +713,15 @@ jobs:
713713
# - { os: windows-latest , features: windows, toolchain: stable-x86_64-pc-windows-gnu }
714714
steps:
715715
- uses: actions/checkout@v6
716+
with:
717+
persist-credentials: false
716718
- uses: taiki-e/install-action@v2
717719
with:
718720
tool: nextest,grcov@0.8.24
719721
- uses: Swatinem/rust-cache@v2
720722
- name: Run sccache-cache
721723
id: sccache-setup
722-
uses: mozilla-actions/sccache-action@v0.0.9
724+
uses: mozilla-actions/sccache-action@v0.0.10
723725
continue-on-error: true
724726
- name: Export sccache
725727
if: steps.sccache-setup.outcome == 'success'

.github/workflows/GnuComment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
const content = fs.readFileSync('./result.txt').toString();
6363
6464
const marker = '<!-- gnu-comment-bot -->';
65-
const body = `${marker}\nGNU testsuite comparison:\n\`\`\`\n${content}\n\`\`\``;
65+
const body = `${marker}\nGNU testsuite comparison:\n\`\`\`\n${content}\`\`\``;
6666
6767
const { data: comments } = await github.rest.issues.listComments({
6868
...context.repo,

.github/workflows/GnuTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ jobs:
354354
path: 'uutils'
355355
persist-credentials: false
356356
- name: Retrieve reference artifacts
357-
uses: dawidd6/action-download-artifact@v20
357+
uses: dawidd6/action-download-artifact@v21
358358
# ref: <https://github.com/dawidd6/action-download-artifact>
359359
continue-on-error: true ## don't break the build for missing reference artifacts (may be expired or just not generated yet)
360360
with:

.github/workflows/SizeComment.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,48 @@ jobs:
5858
with:
5959
github-token: ${{ secrets.GITHUB_TOKEN }}
6060
script: |
61-
var fs = require('fs');
61+
const fs = require('fs');
6262
if (!fs.existsSync('./NR') || !fs.existsSync('./result.txt')) {
6363
core.info("No size comment payload to post.");
6464
return;
6565
}
66-
var issue_number = Number(fs.readFileSync('./NR'));
66+
const issue_number = Number(fs.readFileSync('./NR'));
6767
if (!issue_number) {
6868
core.info("No PR number; skipping.");
6969
return;
7070
}
71-
var content = fs.readFileSync('./result.txt');
72-
// Only comment when there is something meaningful to say.
73-
// compare_size_results.py only writes the file when there is a
74-
// significant change, so an empty/short body is treated as
75-
// "nothing to report".
76-
if (content.toString().trim().length > 0) {
71+
const content = fs.readFileSync('./result.txt').toString();
72+
73+
const marker = '<!-- size-comment-bot -->';
74+
const body = `${marker}\nBinary size comparison:\n\`\`\`\n${content}\`\`\``;
75+
76+
const { data: comments } = await github.rest.issues.listComments({
77+
...context.repo,
78+
issue_number
79+
});
80+
81+
const existing = comments.find(c =>
82+
c.user.login === 'github-actions[bot]' &&
83+
c.body.includes(marker)
84+
);
85+
86+
if (existing) {
87+
await github.rest.issues.updateComment({
88+
...context.repo,
89+
comment_id: existing.id,
90+
body
91+
});
92+
} else {
93+
// Only comment when there is something meaningful to say.
94+
// compare_size_results.py only writes the file when there is a
95+
// significant change, so an empty/short body is treated as
96+
// "nothing to report".
97+
if (content.trim().length == 0) {
98+
return;
99+
}
77100
await github.rest.issues.createComment({
78-
owner: context.repo.owner,
79-
repo: context.repo.repo,
80-
issue_number: issue_number,
81-
body: 'Binary size comparison:\n```\n' + content + '```'
101+
...context.repo,
102+
issue_number,
103+
body
82104
});
83105
}

.github/workflows/audit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v6
13+
with:
14+
persist-credentials: false
1315
- uses: rustsec/audit-check@v2
1416
with:
1517
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
- name: Run sccache-cache
7272
id: sccache-setup
73-
uses: mozilla-actions/sccache-action@v0.0.9
73+
uses: mozilla-actions/sccache-action@v0.0.10
7474
continue-on-error: true
7575
- name: Export sccache
7676
if: steps.sccache-setup.outcome == 'success'

.github/workflows/code-quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
- uses: Swatinem/rust-cache@v2
8888
- name: Run sccache-cache
8989
id: sccache-setup
90-
uses: mozilla-actions/sccache-action@v0.0.9
90+
uses: mozilla-actions/sccache-action@v0.0.10
9191
continue-on-error: true
9292
- name: Export sccache
9393
if: steps.sccache-setup.outcome == 'success'
@@ -214,12 +214,12 @@ jobs:
214214
persist-credentials: false
215215

216216
- name: ruff
217-
uses: astral-sh/ruff-action@v3
217+
uses: astral-sh/ruff-action@v4.0.0
218218
with:
219219
src: "./util"
220220

221221
- name: ruff - format
222-
uses: astral-sh/ruff-action@v3
222+
uses: astral-sh/ruff-action@v4.0.0
223223
with:
224224
src: "./util"
225225
args: format --check

.github/workflows/documentation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout repository
2727
uses: actions/checkout@v6
28+
with:
29+
persist-credentials: false
2830

2931
- name: Install/setup prerequisites
3032
shell: bash

.github/workflows/l10n.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: Swatinem/rust-cache@v2
4242
- name: Run sccache-cache
4343
id: sccache-setup
44-
uses: mozilla-actions/sccache-action@v0.0.9
44+
uses: mozilla-actions/sccache-action@v0.0.10
4545
continue-on-error: true
4646
- name: Export sccache
4747
if: steps.sccache-setup.outcome == 'success'
@@ -143,7 +143,7 @@ jobs:
143143
- uses: Swatinem/rust-cache@v2
144144
- name: Run sccache-cache
145145
id: sccache-setup
146-
uses: mozilla-actions/sccache-action@v0.0.9
146+
uses: mozilla-actions/sccache-action@v0.0.10
147147
continue-on-error: true
148148
- name: Export sccache
149149
if: steps.sccache-setup.outcome == 'success'
@@ -306,7 +306,7 @@ jobs:
306306
- uses: Swatinem/rust-cache@v2
307307
- name: Run sccache-cache
308308
id: sccache-setup
309-
uses: mozilla-actions/sccache-action@v0.0.9
309+
uses: mozilla-actions/sccache-action@v0.0.10
310310
continue-on-error: true
311311
- name: Export sccache
312312
if: steps.sccache-setup.outcome == 'success'
@@ -417,7 +417,7 @@ jobs:
417417
- uses: Swatinem/rust-cache@v2
418418
- name: Run sccache-cache
419419
id: sccache-setup
420-
uses: mozilla-actions/sccache-action@v0.0.9
420+
uses: mozilla-actions/sccache-action@v0.0.10
421421
continue-on-error: true
422422
- name: Export sccache
423423
if: steps.sccache-setup.outcome == 'success'
@@ -570,7 +570,7 @@ jobs:
570570
- uses: Swatinem/rust-cache@v2
571571
- name: Run sccache-cache
572572
id: sccache-setup
573-
uses: mozilla-actions/sccache-action@v0.0.9
573+
uses: mozilla-actions/sccache-action@v0.0.10
574574
continue-on-error: true
575575
- name: Export sccache
576576
if: steps.sccache-setup.outcome == 'success'
@@ -904,7 +904,7 @@ jobs:
904904
- uses: Swatinem/rust-cache@v2
905905
- name: Run sccache-cache
906906
id: sccache-setup
907-
uses: mozilla-actions/sccache-action@v0.0.9
907+
uses: mozilla-actions/sccache-action@v0.0.10
908908
continue-on-error: true
909909
- name: Export sccache
910910
if: steps.sccache-setup.outcome == 'success'
@@ -1136,7 +1136,7 @@ jobs:
11361136
- uses: Swatinem/rust-cache@v2
11371137
- name: Run sccache-cache
11381138
id: sccache-setup
1139-
uses: mozilla-actions/sccache-action@v0.0.9
1139+
uses: mozilla-actions/sccache-action@v0.0.10
11401140
continue-on-error: true
11411141
- name: Export sccache
11421142
if: steps.sccache-setup.outcome == 'success'
@@ -1259,7 +1259,7 @@ jobs:
12591259
key: cargo-install-locale-embedding
12601260
- name: Run sccache-cache
12611261
id: sccache-setup
1262-
uses: mozilla-actions/sccache-action@v0.0.9
1262+
uses: mozilla-actions/sccache-action@v0.0.10
12631263
continue-on-error: true
12641264
- name: Export sccache
12651265
if: steps.sccache-setup.outcome == 'success'

0 commit comments

Comments
 (0)