From a19bd2893b8d3bdc3fffe10b2bc0f6a3f340719e Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Mon, 23 Feb 2026 16:02:50 +0100 Subject: [PATCH] extension_ci: Allow some more time for tests job (#49900) Gives the compilation in a repository with a few more grammars some more time to run. Also adds the Rust cache which might be utilized here during Rust compilation. Release Notes: - N/A --- .github/workflows/extension_tests.yml | 7 ++++++- tooling/xtask/src/tasks/workflows/extension_tests.rs | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.yml index 43084c6bfddb0ec21e36725b5158a4625c1189bc..b843b6626e5e9969b0052f5de100143dd846b4a5 100644 --- a/.github/workflows/extension_tests.yml +++ b/.github/workflows/extension_tests.yml @@ -99,6 +99,11 @@ jobs: run: | wget --quiet "https://zed-extension-cli.nyc3.digitaloceanspaces.com/$ZED_EXTENSION_CLI_SHA/x86_64-unknown-linux-gnu/zed-extension" chmod +x zed-extension + - name: steps::cache_rust_dependencies_namespace + uses: namespacelabs/nscloud-cache-action@v1 + with: + cache: rust + path: ~/.rustup - name: extension_tests::check run: | mkdir -p /tmp/ext-scratch @@ -132,7 +137,7 @@ jobs: echo "Version changes happen in separate PRs and will be performed by the zed-zippy bot" exit 42 fi - timeout-minutes: 4 + timeout-minutes: 6 tests_pass: needs: - orchestrate diff --git a/tooling/xtask/src/tasks/workflows/extension_tests.rs b/tooling/xtask/src/tasks/workflows/extension_tests.rs index f859bd7f6f816ac4b6f186f1ec9cc50d44223a02..fa8e8f7ab9c731fcdc62ba2ca4bb09bda3ef3828 100644 --- a/tooling/xtask/src/tasks/workflows/extension_tests.rs +++ b/tooling/xtask/src/tasks/workflows/extension_tests.rs @@ -5,7 +5,10 @@ use crate::tasks::workflows::{ extension_bump::compare_versions, run_tests::{orchestrate_without_package_filter, tests_pass}, runners, - steps::{self, CommonJobConditions, FluentBuilder, NamedJob, named}, + steps::{ + self, CommonJobConditions, FluentBuilder, NamedJob, cache_rust_dependencies_namespace, + named, + }, vars::{PathCondition, StepOutput, one_workflow_per_non_main_branch}, }; @@ -85,10 +88,11 @@ pub(crate) fn check_extension() -> NamedJob { let job = Job::default() .with_repository_owner_guard() .runs_on(runners::LINUX_LARGE_RAM) - .timeout_minutes(4u32) + .timeout_minutes(6u32) .add_step(steps::checkout_repo().with_deep_history_on_non_main()) .add_step(cache_download) .add_step(download_zed_extension_cli(cache_hit)) + .add_step(cache_rust_dependencies_namespace()) // Extensions can compile Rust, so provide the cache if needed. .add_step(check()) .add_step(check_version_job) .add_step(verify_version_did_not_change(version_changed));