Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ci: Disable library backtrace capture in macOS test jobs (#64555)

Kirill Bulatova49db374b621
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 58d4eeaaa65..585280568f5 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,6 +14,8 @@ jobs:
run_tests_mac:
if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')
runs-on: namespace-profile-mac-large
+ env:
+ RUST_LIB_BACKTRACE: '0'
steps:
- name: steps::checkout_repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 4b796a55823..3babc1e5c87 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -444,6 +444,8 @@ jobs:
- check_style
if: needs.orchestrate.outputs.run_tests == 'true' && github.event_name != 'merge_group'
runs-on: namespace-profile-mac-large
+ env:
+ RUST_LIB_BACKTRACE: '0'
steps:
- name: steps::checkout_repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rs
index e93358b5fec..8b7c7d5a04e 100644
--- a/tooling/xtask/src/tasks/workflows/run_tests.rs
+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs
@@ -677,6 +677,9 @@ fn run_platform_tests_impl(platform: Platform, filter_packages: bool, harden: bo
name: format!("run_tests_{platform}"),
job: release_job(&[])
.runs_on(runner)
+ .when(platform == Platform::Mac, |job| {
+ job.add_env(("RUST_LIB_BACKTRACE", 0))
+ })
.when(platform == Platform::Linux, |job| {
job.add_service(
"postgres",