Commit Graph

149 Commits

Author SHA1 Message Date
Micah Elizabeth Scott f24956d441 Add maint/check_all_lockfiles
Looks for any checked-in Cargo.lock files, and checks the lockfile
quickly by running `cargo tree --locked` there.
2023-08-03 10:10:42 -07:00
Gabriela Moldovan 00b7d86e52
CI: Remove extraneous whitespace. 2023-07-12 16:30:10 +01:00
Gabriela Moldovan 0de2ee756e
CI: Remove unnecessary --feature flag.
`onion-service-client` is now a default feature, so we don't need to
explicitly enable it anymore.
2023-07-12 10:51:25 +01:00
Gabriela Moldovan d9e4ca9ecb
CI: Add a job for building arti with additional features.
This is needed for testing `experimental-api` features (such as the
keymgr) in shadow and chutney.

Prompted by this discussion: https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1399#note_2921294
2023-07-11 20:45:27 +01:00
trinity-1686a c98894cebc fix chutney in CI 2023-07-08 12:31:20 +02:00
Nick Mathewson 877c480bfe Merge branch 'shadow-onion' into 'main'
CI: extend shadow test to test an onion service connection

See merge request tpo/core/arti!1292
2023-07-05 19:50:53 +00:00
trinity-1686a 25f4eb1dc5 try making CI faster 2023-07-04 20:53:38 +02:00
Jim Newsome 0b33969030 CI: enable onion-service-client in rust-latest build
The shadow test needs this to use this build when testing onion
services.
2023-07-03 14:44:33 -05:00
Ian Jackson fa0fb50d80 CI: run a normal all-features-test
I think we do actually do this as part of the coverage job, but that's
not really very clear (and getting the report in that job may be
annoying).

We also do it on nightly as part of the nightly test, but that's an
"allow_fail".
2023-06-28 12:56:09 +01:00
Ian Jackson 802200e238 lints: Promote clippy::print_stderr and clippy::print_stdout
These are available in our MSRV now, so we don't need to handle
specially.  We can just add them to the standard lint block.

(Lint block in every crate will be updated automatically in the next
commit.)
2023-06-21 12:14:10 +01:00
Ian Jackson bca999790f CI: Upgrade every-crate test to required
Since it passes now.
2023-06-14 19:49:13 +01:00
Ian Jackson eeaae5a3bf CI: test every crate with default features 2023-06-14 18:47:51 +01:00
Ian Jackson 69a0efee03 CI: integration-chutney: Turn into a warning
This test is known to fail "when the load is high".  Recently I had to
press the "merge unverified changes" button to merge !1238, after four
consecutivew spurious failures.

IMO this is intolerable.
2023-06-13 16:56:10 +01:00
Jim Newsome c2df3b3992 shadow ci: bump tgen 2023-05-22 13:40:44 -05:00
Jim Newsome 893ea38100 shadow ci: bump shadow 2023-05-22 13:40:44 -05:00
Nick Mathewson a9b1d8f612 Bump Rust version in reproducible build scripts
Now that we require 1.65, Rust 1.63 is no longer sufficient.
2023-04-13 07:31:20 -04:00
Ian Jackson 44d76afa7c Run cargo audit last and in its own job
Recently we had some minor awkwardness due a new advisory.
This may help in future.
2023-04-12 10:55:25 +01:00
Nick Mathewson d2e742f2ef Test with 1.65 in minimal_versions. 2023-04-11 15:34:36 -04:00
Ian Jackson 18ad2feae2 maint/check_todos: Run in CI 2023-03-21 13:08:51 +00:00
Emil Engler 9357a8fd6b
ci: add shebang to the GitLab CI 2023-01-26 21:06:52 +01:00
Ian Jackson 24d00c4e8f Maine ./maint/check_doc_feature a warning
This is a fair amount of manual work to keep in sync.  I would like to
disable this, at least as a mandatory check, for now.

Fixes #601 (the request for it to become non-blocking).
The underlying issue is #581 and remains open.

Co-authored-by: trinity-1686a <trinity@deuxfleurs.fr>
2023-01-30 16:49:54 +00:00
Emil Engler 54f549dd53
maint: replace llvm-tools-preview with llvm-tools
This commit replaces all occurrences of `llvm-tools-preview` with
`llvm-tools`, because it became a stable feature with Rust 1.60, thereby
making the `-preview` prefix obsolete. Beside this, `llvm-tools-preview`
is a redirection to the latter one anyway.

However, it does not work the other way around. At the moment, it is not
possible to execute the `maint/coverage` script on a NixOS system,
because the rustup component list only includes `llvm-tools`, but not
`llvm-tools-preview`, thereby making this change necessary.
2023-01-27 15:56:09 +01:00
trinity-1686a 18a12d3feb put ci log span magic strings in a dedicated script 2022-12-05 18:41:23 +01:00
trinity-1686a 1b7e29b33d update shadow and install tshark 2022-11-30 18:38:42 +01:00
Ian Jackson b6a4f2388d CI: test that we can compile, and test cfg, with/without bridges/PTs 2022-11-29 17:52:12 +00:00
Nick Mathewson c93d7d6e90 Switch CI back to nightly.
Now that they have merged
https://github.com/rust-lang/rust/pull/104416 ,
our CI should pass again with the regular nightly image.

Rather than remove the pinned image entirely, I'm commenting it out,
with a comment explaining how to pin an image the next time we need
to do so.

Closes #633.
2022-11-24 12:06:23 +00:00
Nick Mathewson e8701b1e9e gitlab-ci: Pin to nightly-2022-11-11
This is a workaround for #633.
2022-11-18 10:02:27 -05:00
Nick Mathewson 9ca19ea7f9 Use rust 1.60 in minimal-versions.
Closes #621
2022-11-10 10:57:33 -05:00
trinity-1686a 614cf34284 Check more targets 2022-11-10 13:34:17 +00:00
trinity-1686a dd5aa3ea38 cleanup target dir on job completion 2022-10-21 18:10:39 +00:00
Nick Mathewson e0c1928ea0 Merge branch 'matrix-features' into 'main'
add checks for many feature combinations

Closes #303

See merge request tpo/core/arti!775
2022-10-21 12:57:36 +00:00
Jim Newsome 8600ba7325 integration-shadow: "shadow-small" tag -> "tpa"
The "shadow-small" tag no longer exists, and all "tpa" x86-64 runners can now run Shadow.         https://gitlab.torproject.org/tpo/tpa/team/-/issues/40833#note_2835576
2022-10-19 19:18:40 +00:00
trinity-1686a d08195e09c move test to dedicated job 2022-10-17 17:56:51 +02:00
trinity-1686a 53016a005b add test for many features
and fix issue compiling tor-rtcompat with on ssl runtime
2022-10-16 21:02:10 +02:00
Jim Newsome cef9a7b65a Create a shadow-based integration test
Fixes https://gitlab.torproject.org/tpo/core/arti/-/issues/174
2022-10-05 12:48:45 -05:00
Ian Jackson cd48d2a741 CI: build-repro: Bump image to 1.63
tinystr 0.6.2 (which our Cargo.toml's permit and our Cargo.lock
specifies) has an MSRV of 1.60.

The symptom with earlier Rust is this from cargo:
   error: failed to select a version for the requirement `tinystr = "^0.6.0"`
(which is, on the face of it, nonsense).
2022-09-06 13:53:11 +01:00
trinity-1686a ef162655af switch from awk to python 2022-08-24 18:22:41 +02:00
trinity-1686a 97bb2325df add check_doc_features to CI 2022-08-24 18:22:41 +02:00
trinity-1686a 7f939fa480 enable doc_auto_cfg feature on every crate when documenting for docs.rs 2022-08-24 18:22:41 +02:00
Ian Jackson 76ff330610 maint/add_warning: Scan all files by default, but insist only in some
This will allow us to have add_warning manage test lint blocks.

We have to stop printing all the filenames because there are too
many.  Filenames still come out on error of course.
2022-06-24 14:23:34 +01:00
Ian Jackson e59fa141b7 ci: Pass --cfg ci_arti_stable to stable clippy
We're going to use this to control lints etc.
2022-06-23 19:13:47 +01:00
Ian Jackson a3d8a425c4 Merge branch 'ring_out_the_old' into 'main'
Enforce no-ring-in-arti/full (and make it true)

See merge request tpo/core/arti!592
2022-06-17 13:42:38 +00:00
Nick Mathewson 349f9d5000 Don't install cargo-tree: It's built-in. 2022-06-16 15:54:21 -04:00
Nick Mathewson 60eaabfb37 gitlab-ci: Use lowercase tpa tag.
Our gitlab admins are standardizing on this variant.
2022-06-16 10:01:07 -04:00
Nick Mathewson c16b32f1d4 Add script and CI to make sure `ring` doesn't show up in arti/full
See arti#493.
2022-06-16 09:00:59 -04:00
Nick Mathewson e8999d0b57 Merge branch 'clippy' into 'main'
clippy: Allow dbg in tests *again*

See merge request tpo/core/arti!575
2022-06-09 15:17:09 +00:00
Ian Jackson 86c4f42c49 CI: Break out maint/via-cargo-install 2022-06-08 19:32:59 +01:00
Ian Jackson d65c0023c5 CI: Break out some fastish Rust checks into new "build" step 2022-06-08 19:32:59 +01:00
Ian Jackson 9a8d75b844 CI: Break out some fast checks using debian image 2022-06-08 19:30:16 +01:00
Ian Jackson 84d5845eb6 maint/check_toposort: Run in CI 2022-06-08 18:35:56 +01:00