202 Commits

Author SHA1 Message Date
Weihang Lo
77e82ee1b4
ci: ensure intra links for all members are checked 2023-04-24 14:49:46 +01:00
Weihang Lo
ad6c4144cc
ci: remove unnecessary condition for building cargo-credential-* 2023-04-24 14:48:24 +01:00
Weihang Lo
b2f16d1157
ci: requires test_gitoxide and lockfile for both bors success and failure 2023-04-24 14:17:20 +01:00
Weihang Lo
9d2fbf791e
ci: unnecessary --manifest-path against resolver-tests 2023-04-24 13:43:37 +01:00
Weihang Lo
3b8d744b44
ci: run linkchekcer from target dir
This helps us remove `src/doc` from `exclude` list in Cargo.toml
2023-04-21 10:58:45 +01:00
Weihang Lo
ff216ebc96
chore: make server-check a workspace member 2023-04-21 10:58:45 +01:00
Eric Huss
15dd1f481b Add S-triage auto-label. 2023-04-18 11:36:30 -07:00
Weihang Lo
6dc17a26ce
ci: check if Cargo.lock is up-to-date 2023-04-18 17:52:55 +01:00
Weihang Lo
36f00f42c2
ci: use -p to specify which package to build an test
Co-authored-by: Scott Schafer <schaferjscott@gmail.com>
Co-authored-by: Eric Huss <eric@huss.org>
2023-04-12 11:30:42 +01:00
Weihang Lo
6712c513b5
ci: remove redundant CARGO_REGISTRIES_CRATES_IO_PROTOCOL 2023-03-14 11:21:30 +00:00
Weihang Lo
c70fac0bc5
ci: make clean-test-output a script for reuse 2023-03-14 10:59:59 +00:00
Scott Schafer
b6205c95fd chore: Use sparse protocol on stable CI 2023-03-10 11:13:31 -06:00
bors
5e76f3491a Auto merge of #11761 - epage:deny, r=weihanglo
chore(ci): Enforce cargo-deny in CI

With #11448, we are pulling in a wide and deep dependency tree which makes it harder for us to track what we are pulling in over time.

I've been trying out [`cargo-deny`](https://github.com/EmbarkStudios/cargo-deny) on my projects and wanted to explore how useful it might be for cargo.  atm I only have it configured to fail for unexpected licenses.  We can also use its warnings to hunt down and remove duplicated dependencies to speed up our builds.

I did also enable advisories.  We ignore the failure in a way to not block PRs or even show up as failure in PRs as PR authors are not responsible for dealing with these (unless its a new dep) and it can be intimidating as a contributor to see a failure and have no idea how to resolve it (as authors generally assume CI is green and failures are there fault)

I did not go too much further into what all `cargo-deny` can do; there might be more we can leverage.
2023-03-02 21:40:09 +00:00
Sebastian Thiel
cfffda9ae5
add -Zgitoxide=fetch feature toggle and implementation.
This allows to use `gitoxide` for all fetch operations, boosting performance
for fetching the `crates.io` index by a factor of 2.2x, while being consistent
on all platforms.

For trying it, nightly builds of `cargo` can specify `-Zgitoxide=fetch`.
It's also possible to set the `__CARGO_USE_GITOXIDE_INSTEAD_OF_GIT2=1` environment
variable (value matters), which is when `-Zgitoxide=none` can be used
to use `git2` instead.

Limitations
-----------
Note that what follows are current shortcomings that will be addressed in future PRs.

- it's likely that authentication around the `ssh` protocol will work differently in practice
  as it uses the `ssh` program.
- clones from `file://` based crates indices will need the `git` binary to serve the locatl repository.
- the progress bar shown when fetching doesn't work like the orgiinal, but should already feel 'faster'.
2023-03-02 12:35:50 +01:00
Ed Page
f08bcd9b12 chore(ci): Enforce cargo-deny in CI
We skip failure for advisories on the step, rather than the job, to not
distract contributors in thinking they broke something as that bubbles
up into the PR job summary.
2023-02-23 19:31:36 -06:00
Scott Schafer
bf52c09991 ci: Add a job to deny clippy warnings 2023-02-15 12:13:21 -06:00
Weihang Lo
3e1f60fcb0
chore: bump mdbook to 0.4.27
Previously mdbook was bumped in #11646 for contrib.yml worflow
but main.yaml workflow. This makes the two in sync and also
upgrades to the latest 0.4.27. (Though there is nothing really
changed for application users as us)
2023-02-15 11:37:35 +00:00
Eric Huss
fe8dd1b00c Run CI for macOS on nightly 2023-02-14 12:26:01 -08:00
Enyium
0263ef4379 Enable smart punctuation in mdBook. 2023-02-14 08:15:29 +01:00
Ed Page
d52f29897a chore: Deny warnings across entire cargo repo 2023-02-10 16:17:33 -06:00
Eric Huss
7b2343e597 Enable sparse protocol in CI 2023-01-26 07:13:42 -08:00
Eric Huss
4cb9ac35bf Add network container tests 2023-01-14 15:10:16 -08:00
jofas
7bd86d207c removed steps for api doc creation from action 2023-01-12 14:03:30 +01:00
Lucio Franco
18a06cc809 fix ci to test local home crate 2022-12-13 15:40:26 -05:00
Lucio Franco
98a3d4e385 Add home crate to CI 2022-12-12 13:49:46 -05:00
Eric Huss
3a404ce49e Clean more aggressively in CI 2022-11-03 20:12:03 -07:00
Weihang Lo
ba3d2e981b
ci: update toolchain for building api doc 2022-09-22 21:40:27 +01:00
Ed Page
4b2837a4cc chore(ci): Ensure intradoc links are valid 2022-09-06 09:27:06 -05:00
bors
f126ea4a83 Auto merge of #11019 - weihanglo:doc-private-items-cargo-itself, r=epage
Document private items for Cargo and publish under contributor guide
2022-08-31 21:57:00 +00:00
Eric Huss
783ec2ea7c Add names to CI jobs 2022-08-31 13:36:42 -07:00
Weihang Lo
1c82d9c8c3 Make CI build API doc 2022-08-25 12:19:49 +01:00
naveen
a4ac0438a2 chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-07-03 00:31:05 +00:00
Eric Huss
65cc01075e Clear disk space on CI. 2022-06-02 17:55:45 -07:00
David Tolnay
30b26f2f7e
Update GitHub Actions actions/checkout@v2 to v3
The v2 implementation uses Node 12, which is end-of-life on April 30, 2022.
See https://nodejs.org/en/about/releases/. Update to v3, which is based on
Node 16 whose support lasts until April 30, 2024.
2022-04-30 13:46:35 -07:00
Weihang Lo
275b0c68d4
CI: force using argfile to test againg cargo fix 2022-04-10 22:40:26 +08:00
Eliaz Bobadilla
095f403f3e tools: update checkout action on CI
https://github.com/actions/checkout\#whats-new
2022-03-30 12:11:50 -05:00
Eric Huss
20017a249c Add a notice about review capacity. 2022-03-24 14:18:42 -07:00
Alex Crichton
959fcbc188 Disable dependabot
I don't think this has ever actually sent a meaningful version bump PR
we weren't already aware of, so unless someone else wants to be in
charge of these I'm going to go ahead and disable dependabot.
2022-03-01 09:53:20 -08:00
Caleb Cartwright
98edf2854b
ci: use new cargo fmt option 2022-01-13 17:57:25 -06:00
Josh Triplett
c1a5a4c6b2 Make bors ignore the PR template so it doesn't end up in merge messages 2022-01-06 12:24:12 -08:00
Weihang Lo
3d9d52f358
Tweak wordings for PR template
Co-authored-by: Ruby Lazuli <general@patchmixolydic.com>
2022-01-01 15:30:41 +08:00
Weihang Lo
e0d02755a3
Move section titles into comment 2021-12-22 01:45:57 +08:00
Weihang Lo
0926c3b9c4
The first version of pull request template
We're trying to extract information out off the head of contributors.
Hope this help the review process more friendly for everyone.
2021-12-19 17:44:36 +08:00
Weihang Lo
5e5b1312ae
Mention forum and zulip in feature-request issue template 2021-12-16 18:53:06 +08:00
Weihang Lo
a2ae9915bc
Enhance issue template config 2021-12-16 14:47:33 +08:00
Alex Crichton
cab1e3566b Fix CI testing 2021-10-22 13:30:46 -07:00
Alex Crichton
ac69b05500 Update stable rust in the docs CI builder 2021-10-22 10:33:46 -07:00
bors
c8b38af5d0 Auto merge of #9955 - ehuss:benchsuite, r=Eh2406
Add the start of a basic benchmarking suite.

This adds the start of a basic benchmarking suite for cargo.  This is fairly rough, but I figure it will change and evolve over time based on what we decide to add and how we use it.

There is some documentation in the `benches/README.md` file which gives an overview of what is here and how to use it.

Closes #9935
2021-10-12 21:59:48 +00:00
Eric Huss
e4da5b2e3c Add the start of a basic benchmarking suite. 2021-10-12 13:23:56 -07:00
Eric Huss
0008f68f4f Use forms for issue templates. 2021-10-11 13:56:18 -07:00