Skip to content

run trybuild tests in their own CI job - #1695

Merged
sunshowers merged 1 commit into
mainfrom
jj-stack/run-trybuild-tests-in-their-own-ci-job-vynqoztq
Sep 2, 2026
Merged

run trybuild tests in their own CI job#1695
sunshowers merged 1 commit into
mainfrom
jj-stack/run-trybuild-tests-in-their-own-ci-job-vynqoztq

Conversation

@sunshowers

@sunshowers sunshowers commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

The trybuild tests require a pinned toolchain for output stability. By accident, we were using the pinned toolchain on all CI jobs -- the next commit fixes this, which ends up breaking the trybuild tests.

Move the tests into their own job that explicitly depends on the pinned toolchain.

The trybuild output doesn't depend on the OS, so we don't need to use a matrix setup for it -- just run it on Linux.

(After this lands we should probably mark the trybuild job required.)

The trybuild tests require a pinned toolchain for output stability. By accident, we were using the pinned toolchain on all CI jobs -- the next commit fixes this, which ends up breaking the trybuild tests.

Move the tests into their own job that explicitly depends on the pinned toolchain.

The trybuild output doesn't depend on the OS, so we don't need to use a matrix setup for it -- just run it on Linux.
@sunshowers
sunshowers requested a review from ahl September 2, 2026 20:21
@sunshowers
sunshowers merged commit 45f9c5b into main Sep 2, 2026
33 of 34 checks passed
@sunshowers
sunshowers deleted the jj-stack/run-trybuild-tests-in-their-own-ci-job-vynqoztq branch September 2, 2026 20:51
sunshowers added a commit that referenced this pull request Sep 2, 2026
dropshot_endpoint already uses a let chain (stabilized in Rust 1.88), so
the declared MSRV of 1.85 no longer builds:

    error[E0658]: `let` expressions in this position are unstable
       --> dropshot_endpoint/src/api_trait.rs:235:20

Specify an MSRV of 1.88 and fix CI to check for it. In upcoming commits
we're going to add more let chains.

After #1695 and this PR, the CI test matrix is:

* all tests except trybuild ones on MSRV and stable, and across
Linux/macOS/Windows
* trybuild tests on pinned toolchain on Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants