Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui_linux: Fix cargo test on wayland (#49686)
Jakub Konka9cefb04fb7df
diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.ymlindex f1f414c1d95..43084c6bfdd 100644--- a/.github/workflows/extension_tests.yml+++ b/.github/workflows/extension_tests.yml@@ -73,7 +73,7 @@ jobs:- name: steps::cargo_install_nextestuses: taiki-e/install-action@nextest- name: steps::cargo_nextest- run: 'cargo nextest run --workspace --no-fail-fast --target "$(rustc -vV | sed -n ''s|host: ||p'')"'+ run: 'cargo nextest run --workspace --no-fail-fast --no-tests=warn --target "$(rustc -vV | sed -n ''s|host: ||p'')"'env:NEXTEST_NO_TESTS: warntimeout-minutes: 6diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex accefe427c7..4442b068a88 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -42,7 +42,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warn- name: steps::show_sccache_statsrun: sccache --show-stats || true- name: steps::cleanup_cargo_config@@ -89,7 +89,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warn- name: steps::show_sccache_statsrun: sccache --show-stats || true- name: steps::cleanup_cargo_config@@ -134,7 +134,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warnshell: pwsh- name: steps::show_sccache_statsrun: if ($env:RUSTC_WRAPPER) { & $env:RUSTC_WRAPPER --show-stats }; exit 0diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex 1819833dce2..d3f01447e52 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -54,7 +54,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warnshell: pwsh- name: steps::show_sccache_statsrun: if ($env:RUSTC_WRAPPER) { & $env:RUSTC_WRAPPER --show-stats }; exit 0diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 3e464c1b54e..07caa6007e8 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -269,7 +269,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warn${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}shell: pwsh- name: steps::show_sccache_statsrun: if ($env:RUSTC_WRAPPER) { & $env:RUSTC_WRAPPER --show-stats }; exit 0@@ -321,7 +321,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warn${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}- name: steps::show_sccache_statsrun: sccache --show-stats || true- name: steps::cleanup_cargo_config@@ -372,7 +372,7 @@ jobs:R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}SCCACHE_BUCKET: sccache-zed- name: steps::cargo_nextest- run: cargo nextest run --workspace --no-fail-fast${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}+ run: cargo nextest run --workspace --no-fail-fast --no-tests=warn${{ needs.orchestrate.outputs.changed_packages && format(' -E "{0}"', needs.orchestrate.outputs.changed_packages) || '' }}- name: steps::show_sccache_statsrun: sccache --show-stats || true- name: steps::cleanup_cargo_configdiff --git a/crates/gpui_linux/Cargo.toml b/crates/gpui_linux/Cargo.tomlindex a6d3755bd30..e650765c912 100644--- a/crates/gpui_linux/Cargo.toml+++ b/crates/gpui_linux/Cargo.toml@@ -30,6 +30,7 @@ wayland = ["filedescriptor","xkbcommon","open",+ "gpui/wayland",]x11 = ["gpui_wgpu",diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rsindex 19aea15ddcf..8220d8311ff 100644--- a/tooling/xtask/src/tasks/workflows/steps.rs+++ b/tooling/xtask/src/tasks/workflows/steps.rs@@ -14,7 +14,7 @@ pub(crate) struct Nextest(Step<Run>);pub(crate) fn cargo_nextest(platform: Platform) -> Nextest {Nextest(named::run(platform,- "cargo nextest run --workspace --no-fail-fast",+ "cargo nextest run --workspace --no-fail-fast --no-tests=warn",))}