From a6cd6abcfb4b9b79abea865c99bfd5c82ec5caf6 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 27 Jun 2025 15:03:39 +0200 Subject: [PATCH] ci(nvim-ts): update paths to refactor Problem: After https://github.com/tree-sitter/tree-sitter/pull/4496, the crater tests from nvim-treesitter no longer run on PRs with relevant changes. Solution: Update the paths in the workflows to the new structure. Also throttle the build step to 10 parallel tasks (reduces flakiness on Windows). Also raise the timeout limit to 30 minutes (it's more expensive to have to restart flaky tests than to let them run). --- .github/workflows/nvim_ts.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nvim_ts.yml b/.github/workflows/nvim_ts.yml index 4bf39366..ce0f60e7 100644 --- a/.github/workflows/nvim_ts.yml +++ b/.github/workflows/nvim_ts.yml @@ -3,7 +3,10 @@ name: nvim-treesitter parser tests on: pull_request: paths: - - 'cli/**' + - 'crates/cli/**' + - 'crates/config/**' + - 'crates/generate/**' + - 'crates/loader/**' - '.github/workflows/nvim_ts.yml' workflow_dispatch: @@ -13,7 +16,7 @@ concurrency: jobs: check_compilation: - timeout-minutes: 20 + timeout-minutes: 30 strategy: fail-fast: false matrix: @@ -55,7 +58,7 @@ jobs: - if: matrix.type == 'build' name: Compile parsers - run: $NVIM -l ./scripts/install-parsers.lua + run: $NVIM -l ./scripts/install-parsers.lua --max-jobs=10 working-directory: ${{ env.NVIM_TS_DIR }} shell: bash