From 0003cf756e8d69136169e76207e54c622d846c2c Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 12 Jan 2023 19:56:19 -0500 Subject: [PATCH] chore(ci): only run doc tests on linux (#17379) Doc tests were observed to take over 100s on the Mac CI in one instance. --- .github/workflows/ci.generate.ts | 13 ++++++++----- .github/workflows/ci.yml | 10 +++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 49f1363c9e5dda..980661a2de35c7 100644 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -592,14 +592,17 @@ const ci = { "matrix.job == 'test' && matrix.profile == 'debug' &&", "!startsWith(github.ref, 'refs/tags/')", ].join("\n"), - run: ["cargo test --locked --doc", "cargo test --locked"].join( - "\n", - ), + run: "cargo test --locked", }, { name: "Test fastci", - if: "(matrix.job == 'test' && matrix.profile == 'fastci')", - run: "cargo test --locked", + if: "matrix.job == 'test' && matrix.profile == 'fastci'", + run: [ + // Run unit then integration tests. Skip doc tests here + // since they are sometimes very slow on Mac. + "cargo test --locked --lib", + "cargo test --locked --test '*'", + ].join("\n"), env: { CARGO_PROFILE_DEV_DEBUG: 0, }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9fdf8f63ab328f..72cc8c5e3220a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -370,12 +370,12 @@ jobs: if: |- !(github.event_name == 'pull_request' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != 'true' && (matrix.job == 'test' && matrix.profile == 'debug' && !startsWith(github.ref, 'refs/tags/'))) - run: |- - cargo test --locked --doc - cargo test --locked - - name: Test fastci - if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && ((matrix.job == ''test'' && matrix.profile == ''fastci'')))' run: cargo test --locked + - name: Test fastci + if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''test'' && matrix.profile == ''fastci''))' + run: |- + cargo test --locked --lib + cargo test --locked --test '*' env: CARGO_PROFILE_DEV_DEBUG: 0 - name: Test release