Skip to content

Commit fc7987e

Browse files
committed
update tests
2 parents 1ef930f + 5613aac commit fc7987e

File tree

1,352 files changed

+46041
-14847
lines changed

Some content is hidden

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

1,352 files changed

+46041
-14847
lines changed

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[alias]
2+
build-man = "run --package xtask-build-man --"
3+
stale-label = "run --package xtask-stale-label --"
4+
bump-check = "run --package xtask-bump-check --"

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report
22
description: Create a report to help us improve
3-
labels: ["C-bug"]
3+
labels: ["C-bug", "S-triage"]
44
body:
55
- type: markdown
66
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature Request
22
description: Suggest an idea for enhancing Cargo
3-
labels: ["C-feature-request"]
3+
labels: ["C-feature-request", "S-triage"]
44
body:
55
- type: markdown
66
attributes:

.github/renovate.json5

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
schedule: [
3+
'before 5am on the first day of the month',
4+
],
5+
semanticCommits: 'enabled',
6+
configMigration: true,
7+
dependencyDashboard: false,
8+
ignorePaths: [
9+
"**/tests/**",
10+
],
11+
customManagers: [
12+
{
13+
customType: 'regex',
14+
fileMatch: [
15+
'Cargo.toml$',
16+
],
17+
matchStrings: [
18+
'\bMSRV:1\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
19+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:1\b',
20+
],
21+
depNameTemplate: 'MSRV:1', // Support 1 version of rustc
22+
packageNameTemplate: 'rust-lang/rust',
23+
datasourceTemplate: 'github-releases',
24+
},
25+
{
26+
customType: 'regex',
27+
fileMatch: [
28+
'Cargo.toml$',
29+
],
30+
matchStrings: [
31+
'\bMSRV:3\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
32+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:3\b',
33+
],
34+
depNameTemplate: 'MSRV:3', // Support 3 versions of rustc
35+
packageNameTemplate: 'rust-lang/rust',
36+
datasourceTemplate: 'github-releases',
37+
},
38+
],
39+
packageRules: [
40+
{
41+
commitMessageTopic: 'MSRV (1 version)',
42+
matchManagers: [
43+
'regex',
44+
],
45+
matchPackageNames: [
46+
'MSRV:1',
47+
],
48+
schedule: [
49+
'* * * * *',
50+
],
51+
groupName: 'msrv',
52+
},
53+
{
54+
commitMessageTopic: 'MSRV (3 versions)',
55+
matchManagers: [
56+
'regex',
57+
],
58+
matchPackageNames: [
59+
'MSRV:3',
60+
],
61+
"extractVersion": "^(?<version>\\d+\\.\\d+)", // Drop the patch version
62+
schedule: [
63+
'* * * * *',
64+
],
65+
minimumReleaseAge: '85 days', // 2 releases back * 6 weeks per release * 7 days per week + 1
66+
internalChecksFilter: 'strict',
67+
groupName: 'msrv',
68+
},
69+
// Goals:
70+
// - Rollup safe upgrades to reduce CI runner load
71+
// - Have lockfile and manifest in-sync (implicit rules)
72+
{
73+
matchManagers: [
74+
'cargo',
75+
],
76+
matchCurrentVersion: '>=0.1.0',
77+
matchUpdateTypes: [
78+
'patch',
79+
],
80+
automerge: false,
81+
groupName: 'compatible',
82+
},
83+
{
84+
matchManagers: [
85+
'cargo',
86+
],
87+
matchCurrentVersion: '>=1.0.0',
88+
matchUpdateTypes: [
89+
'minor',
90+
],
91+
automerge: false,
92+
groupName: 'compatible',
93+
},
94+
],
95+
}

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- advisories
2222
- bans licenses sources
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- uses: EmbarkStudios/cargo-deny-action@v1
2626
# Prevent sudden announcement of a new advisory from failing ci:
2727
continue-on-error: ${{ matrix.checks == 'advisories' }}

.github/workflows/contrib.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches:
55
- master
66

7+
concurrency:
8+
cancel-in-progress: false
9+
group: "gh-pages"
10+
711
permissions:
812
contents: read
913

@@ -13,7 +17,7 @@ jobs:
1317
contents: write # for Git to git push
1418
runs-on: ubuntu-latest
1519
steps:
16-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1721
with:
1822
fetch-depth: 0
1923
- name: Install mdbook
@@ -23,16 +27,26 @@ jobs:
2327
echo `pwd`/mdbook >> $GITHUB_PATH
2428
- name: Deploy docs
2529
run: |
30+
GENERATE_PY="$(pwd)/ci/generate.py"
31+
2632
cd src/doc/contrib
2733
mdbook build
28-
git worktree add gh-pages gh-pages
34+
35+
# Override previous ref to avoid keeping history.
36+
git worktree add --orphan -B gh-pages gh-pages
2937
git config user.name "Deploy from CI"
3038
git config user.email ""
3139
cd gh-pages
32-
# Delete the ref to avoid keeping history.
33-
git update-ref -d refs/heads/gh-pages
34-
rm -rf contrib
3540
mv ../book contrib
3641
git add contrib
42+
43+
# Generate HTML for link redirections.
44+
python3 "$GENERATE_PY"
45+
git add *.html
46+
# WARN: The CNAME file is for GitHub to redirect requests to the custom domain.
47+
# Missing this may entail security hazard and domain takeover.
48+
# See <https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site#securing-your-custom-domain>
49+
git add CNAME
50+
3751
git commit -m "Deploy $GITHUB_SHA to gh-pages"
38-
git push --force
52+
git push origin +gh-pages

0 commit comments

Comments
 (0)