Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Define default shell for all workflows (#47883)
Finn Evers97f0ab77ca39
diff --git a/.github/workflows/after_release.yml b/.github/workflows/after_release.ymlindex 36c4ad60ed1..9582e3f1956 100644--- a/.github/workflows/after_release.yml+++ b/.github/workflows/after_release.yml@@ -26,14 +26,12 @@ jobs:steps:- name: after_release::rebuild_releases_page::refresh_cloud_releasesrun: curl -fX POST https://cloud.zed.dev/releases/refresh?expect_tag=${{ github.event.release.tag_name || inputs.tag_name }}- shell: bash -euxo pipefail {0}- name: steps::checkout_repouses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683with:clean: false- name: after_release::rebuild_releases_page::redeploy_zed_devrun: ./script/redeploy-vercel- shell: bash -euxo pipefail {0}env:VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}post_to_discord:@@ -52,7 +50,6 @@ jobs:fiecho "URL=$URL" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}- id: get-contentname: after_release::post_to_discord::get_contentuses: 2428392/gh-truncate-string-action@b3ff790d21cf42af3ca7579146eedb93c8fb0757@@ -137,6 +134,8 @@ jobs:run: |curl -X POST -H 'Content-type: application/json'\--data '{"text":"❌ ${{ github.workflow }} failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' "$SLACK_WEBHOOK"- shell: bash -euxo pipefail {0}env:SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WORKFLOW_FAILURES }}+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/autofix_pr.yml b/.github/workflows/autofix_pr.ymlindex 522c867b30f..87abbb86a03 100644--- a/.github/workflows/autofix_pr.yml+++ b/.github/workflows/autofix_pr.yml@@ -23,14 +23,12 @@ jobs:clean: false- name: autofix_pr::run_autofix::checkout_prrun: gh pr checkout ${{ inputs.pr_number }}- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -38,13 +36,10 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::setup_pnpmuses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2with:@@ -58,21 +53,16 @@ jobs:- name: autofix_pr::run_autofix::run_cargo_fixif: ${{ inputs.run_clippy }}run: cargo fix --workspace --release --all-targets --all-features --allow-dirty --allow-staged- shell: bash -euxo pipefail {0}- name: autofix_pr::run_autofix::run_cargo_machete_fixif: ${{ inputs.run_clippy }}run: cargo machete --fix- shell: bash -euxo pipefail {0}- name: autofix_pr::run_autofix::run_clippy_fixif: ${{ inputs.run_clippy }}run: cargo clippy --workspace --release --all-targets --all-features --fix --allow-dirty --allow-staged- shell: bash -euxo pipefail {0}- name: autofix_pr::run_autofix::run_prettier_fixrun: ./script/prettier --write- shell: bash -euxo pipefail {0}- name: autofix_pr::run_autofix::run_cargo_fmtrun: cargo fmt --all- shell: bash -euxo pipefail {0}- id: create-patchname: autofix_pr::run_autofix::create_patchrun: |@@ -83,7 +73,6 @@ jobs:git diff > autofix.patchecho "has_changes=true" >> "$GITHUB_OUTPUT"fi- shell: bash -euxo pipefail {0}- name: upload artifact autofix-patchuses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -95,7 +84,6 @@ jobs:if: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}outputs:has_changes: ${{ steps.create-patch.outputs.has_changes }}commit_changes:@@ -117,7 +105,6 @@ jobs:token: ${{ steps.get-app-token.outputs.token }}- name: autofix_pr::commit_changes::checkout_prrun: gh pr checkout ${{ inputs.pr_number }}- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}- name: autofix_pr::download_patch_artifact@@ -126,12 +113,10 @@ jobs:name: autofix-patch- name: autofix_pr::commit_changes::apply_patchrun: git apply autofix.patch- shell: bash -euxo pipefail {0}- name: autofix_pr::commit_changes::commit_and_pushrun: |git commit -am "Autofix"git push- shell: bash -euxo pipefail {0}env:GIT_COMMITTER_NAME: Zed ZippyGIT_COMMITTER_EMAIL: 234243425+zed-zippy[bot]@users.noreply.github.com@@ -141,3 +126,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ inputs.pr_number }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/bump_patch_version.yml b/.github/workflows/bump_patch_version.ymlindex c9f910c4b98..68bc37e5c75 100644--- a/.github/workflows/bump_patch_version.yml+++ b/.github/workflows/bump_patch_version.yml@@ -46,7 +46,6 @@ jobs:git commit -am "Bump to $output for @$GITHUB_ACTOR"git tag "v${output}${tag_suffix}"git push origin HEAD "v${output}${tag_suffix}"- shell: bash -euxo pipefail {0}env:GIT_COMMITTER_NAME: Zed ZippyGIT_COMMITTER_EMAIL: 234243425+zed-zippy[bot]@users.noreply.github.com@@ -56,3 +55,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ inputs.branch }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/cherry_pick.yml b/.github/workflows/cherry_pick.ymlindex d4dee5154f2..9d46f300b50 100644--- a/.github/workflows/cherry_pick.yml+++ b/.github/workflows/cherry_pick.yml@@ -37,8 +37,10 @@ jobs:private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}- name: cherry_pick::run_cherry_pick::cherry_pickrun: ./script/cherry-pick ${{ inputs.branch }} ${{ inputs.commit }} ${{ inputs.channel }}- shell: bash -euxo pipefail {0}env:GIT_COMMITTER_NAME: Zed ZippyGIT_COMMITTER_EMAIL: [email protected]GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/compare_perf.yml b/.github/workflows/compare_perf.ymlindex 48fc850f8f0..e5a2d4f9c92 100644--- a/.github/workflows/compare_perf.yml+++ b/.github/workflows/compare_perf.yml@@ -28,21 +28,16 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: compare_perf::run_perf::install_hyperfineuses: taiki-e/install-action@hyperfine- name: steps::git_checkoutrun: git fetch origin ${{ inputs.base }} && git checkout ${{ inputs.base }}- shell: bash -euxo pipefail {0}- name: compare_perf::run_perf::cargo_perf_testrun: |2-@@ -51,10 +46,8 @@ jobs:elsecargo perf-test -p vim -- --json=${{ inputs.base }};fi- shell: bash -euxo pipefail {0}- name: steps::git_checkoutrun: git fetch origin ${{ inputs.head }} && git checkout ${{ inputs.head }}- shell: bash -euxo pipefail {0}- name: compare_perf::run_perf::cargo_perf_testrun: |2-@@ -63,10 +56,8 @@ jobs:elsecargo perf-test -p vim -- --json=${{ inputs.head }};fi- shell: bash -euxo pipefail {0}- name: compare_perf::run_perf::compare_runsrun: cargo perf-compare --save=results.md ${{ inputs.base }} ${{ inputs.head }}- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact results.md'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -77,4 +68,6 @@ jobs:if: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.ymlindex e845a8029c3..62f799baae1 100644--- a/.github/workflows/danger.yml+++ b/.github/workflows/danger.yml@@ -31,10 +31,11 @@ jobs:cache-dependency-path: script/danger/pnpm-lock.yaml- name: danger::danger_job::install_depsrun: pnpm install --dir script/danger- shell: bash -euxo pipefail {0}- name: danger::danger_job::runrun: pnpm run --dir script/danger danger ci- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: not_a_real_tokenDANGER_GITHUB_API_BASE_URL: https://danger-proxy.zed.dev/github+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/extension_bump.yml b/.github/workflows/extension_bump.ymlindex ce18131ddf2..68ede81712e 100644--- a/.github/workflows/extension_bump.yml+++ b/.github/workflows/extension_bump.yml@@ -55,7 +55,6 @@ jobs:echo "needs_bump=false" >> "$GITHUB_OUTPUT"echo "current_version=${CURRENT_VERSION}" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}outputs:needs_bump: ${{ steps.compare-versions-check.outputs.needs_bump }}current_version: ${{ steps.compare-versions-check.outputs.current_version }}@@ -80,7 +79,6 @@ jobs:clean: false- name: extension_bump::install_bump_2_versionrun: pip install bump2version --break-system-packages- shell: bash -euxo pipefail {0}- id: bump-versionname: extension_bump::bump_versionrun: |@@ -104,7 +102,6 @@ jobs:NEW_VERSION="$(sed -n 's/version = \"\(.*\)\"/\1/p' < extension.toml)"echo "new_version=${NEW_VERSION}" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}- name: extension_bump::create_pull_requestuses: peter-evans/create-pull-request@v7with:@@ -150,3 +147,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/extension_release.yml b/.github/workflows/extension_release.ymlindex 557d056d01f..ec778864e68 100644--- a/.github/workflows/extension_release.yml+++ b/.github/workflows/extension_release.yml@@ -33,7 +33,6 @@ jobs:EXTENSION_ID="$(sed -n 's/id = \"\(.*\)\"/\1/p' < extension.toml)"echo "extension_id=${EXTENSION_ID}" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}- name: extension_release::release_actionuses: huacnlee/zed-extension-action@v2with:@@ -41,3 +40,6 @@ jobs:push-to: zed-industries/extensionsenv:COMMITTER_TOKEN: ${{ steps.generate-token.outputs.token }}+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.ymlindex 5938a8512ac..45c2a69c7a8 100644--- a/.github/workflows/extension_tests.yml+++ b/.github/workflows/extension_tests.yml@@ -45,7 +45,6 @@ jobs:check_pattern "check_rust" '^(Cargo.lock|Cargo.toml|.*\.rs)$' -qPcheck_pattern "check_extension" '^.*\.scm$' -qP- shell: bash -euxo pipefail {0}outputs:check_rust: ${{ steps.filter.outputs.check_rust }}check_extension: ${{ steps.filter.outputs.check_extension }}@@ -66,18 +65,14 @@ jobs:path: ~/.rustup- name: extension_tests::install_rust_targetrun: rustup target add wasm32-wasip2- shell: bash -euxo pipefail {0}- name: steps::cargo_fmtrun: cargo fmt --all -- --check- shell: bash -euxo pipefail {0}- name: extension_tests::run_clippyrun: cargo clippy --release --all-targets --all-features -- --deny warnings- shell: bash -euxo pipefail {0}- name: steps::cargo_install_nextestuses: taiki-e/install-action@nextest- name: steps::cargo_nextestrun: 'cargo nextest run --workspace --no-fail-fast --target "$(rustc -vV | sed -n ''s|host: ||p'')"'- shell: bash -euxo pipefail {0}env:NEXTEST_NO_TESTS: warntimeout-minutes: 6@@ -102,13 +97,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- shell: bash -euxo pipefail {0}- name: extension_tests::checkrun: |mkdir -p /tmp/ext-scratchmkdir -p /tmp/ext-output./zed-extension --source-dir . --scratch-dir /tmp/ext-scratch --output-dir /tmp/ext-output- shell: bash -euxo pipefail {0}timeout-minutes: 4tests_pass:needs:@@ -133,7 +126,9 @@ jobs:check_result "check_extension" "${{ needs.check_extension.result }}"exit $EXIT_CODE- shell: bash -euxo pipefail {0}concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/extension_workflow_rollout.yml b/.github/workflows/extension_workflow_rollout.ymlindex 502ec1945fc..beec02e3215 100644--- a/.github/workflows/extension_workflow_rollout.yml+++ b/.github/workflows/extension_workflow_rollout.yml@@ -75,7 +75,6 @@ jobs:fiecho "Found previous rollout at commit: $PREV_COMMIT"echo "prev_commit=$PREV_COMMIT" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}working-directory: zed- id: calc-changesname: extension_workflow_rollout::rollout_workflows_to_extension::get_removed_files@@ -101,7 +100,6 @@ jobs:echo "Files to remove: $REMOVED_FILES"echo "removed_files=$REMOVED_FILES" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}working-directory: zed- name: extension_workflow_rollout::rollout_workflows_to_extension::sync_workflow_filesrun: |@@ -125,12 +123,10 @@ jobs:elsecp zed/extensions/workflows/shared/*.yml extension/.github/workflows/fi- shell: bash -euxo pipefail {0}- id: short-shaname: extension_workflow_rollout::rollout_workflows_to_extension::get_short_sharun: |echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}working-directory: zed- id: create-prname: extension_workflow_rollout::rollout_workflows_to_extension::create_pull_request@@ -156,7 +152,6 @@ jobs:cd extensiongh pr merge "$PR_NUMBER" --auto --squashfi- shell: bash -euxo pipefail {0}env:GH_TOKEN: ${{ steps.generate-token.outputs.token }}timeout-minutes: 10@@ -182,7 +177,6 @@ jobs:run: |git config user.name "zed-zippy[bot]"git config user.email "234243425+zed-zippy[bot]@users.noreply.github.com"- shell: bash -euxo pipefail {0}- name: extension_workflow_rollout::create_rollout_tag::update_rollout_tagrun: |if git rev-parse "extension-workflows" >/dev/null 2>&1; then@@ -193,5 +187,7 @@ jobs:echo "Creating new tag 'extension-workflows' at $(git rev-parse --short HEAD)"git tag "extension-workflows"git push origin "extension-workflows"- shell: bash -euxo pipefail {0}timeout-minutes: 1+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0089b5e423d..7efcc68aa61 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -21,7 +21,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -35,15 +34,12 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast- shell: bash -euxo pipefail {0}- name: steps::cleanup_cargo_configif: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 60run_tests_linux:if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')@@ -57,7 +53,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -65,13 +60,10 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -80,15 +72,12 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250- shell: bash -euxo pipefail {0}- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast- shell: bash -euxo pipefail {0}- name: steps::cleanup_cargo_configif: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 60services:postgres:@@ -139,7 +128,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -147,7 +135,6 @@ jobs:path: ~/.rustup- name: steps::clippyrun: ./script/clippy- shell: bash -euxo pipefail {0}timeout-minutes: 60clippy_linux:if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')@@ -161,7 +148,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -169,16 +155,12 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::clippyrun: ./script/clippy- shell: bash -euxo pipefail {0}timeout-minutes: 60clippy_windows:if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')@@ -207,15 +189,12 @@ jobs:clean: false- name: run_tests::check_scripts::run_shellcheckrun: ./script/shellcheck-scripts error- shell: bash -euxo pipefail {0}- id: get_actionlintname: run_tests::check_scripts::download_actionlintrun: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)- shell: bash -euxo pipefail {0}- name: run_tests::check_scripts::run_actionlintrun: |${{ steps.get_actionlint.outputs.executable }} -color- shell: bash -euxo pipefail {0}- name: run_tests::check_scripts::check_xtask_workflowsrun: |cargo xtask workflows@@ -224,7 +203,6 @@ jobs:echo "Please run 'cargo xtask workflows' locally and commit the changes"exit 1fi- shell: bash -euxo pipefail {0}timeout-minutes: 60create_draft_release:if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')@@ -238,16 +216,12 @@ jobs:ref: ${{ github.ref }}- name: script/determine-release-channelrun: script/determine-release-channel- shell: bash -euxo pipefail {0}- name: mkdir -p target/run: mkdir -p target/- shell: bash -euxo pipefail {0}- name: release::create_draft_release::generate_release_notesrun: node --redirect-warnings=/dev/null ./script/draft-release-notes "$RELEASE_VERSION" "$RELEASE_CHANNEL" > target/release-notes.md- shell: bash -euxo pipefail {0}- name: release::create_draft_release::create_releaserun: script/create-draft-release target/release-notes.md- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}timeout-minutes: 60@@ -272,16 +246,12 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/bundle-linuxrun: ./script/bundle-linux- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact zed-linux-aarch64.tar.gz'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -316,16 +286,12 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/bundle-linuxrun: ./script/bundle-linux- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact zed-linux-x86_64.tar.gz'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -369,10 +335,8 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: run_bundling::bundle_mac::bundle_macrun: ./script/bundle-mac aarch64-apple-darwin- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact Zed-aarch64.dmg'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -416,10 +380,8 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: run_bundling::bundle_mac::bundle_macrun: ./script/bundle-mac x86_64-apple-darwin- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact Zed-x86_64.dmg'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -540,7 +502,6 @@ jobs:path: ./artifacts/- name: ls -lR ./artifactsrun: ls -lR ./artifacts- shell: bash -euxo pipefail {0}- name: release::prep_release_artifactsrun: |-mkdir -p release-artifacts/@@ -557,10 +518,8 @@ jobs:mv ./artifacts/zed-remote-server-linux-x86_64.gz/zed-remote-server-linux-x86_64.gz release-artifacts/zed-remote-server-linux-x86_64.gzmv ./artifacts/zed-remote-server-windows-aarch64.zip/zed-remote-server-windows-aarch64.zip release-artifacts/zed-remote-server-windows-aarch64.zipmv ./artifacts/zed-remote-server-windows-x86_64.zip/zed-remote-server-windows-x86_64.zip release-artifacts/zed-remote-server-windows-x86_64.zip- shell: bash -euxo pipefail {0}- name: gh release upload "$GITHUB_REF_NAME" --repo=zed-industries/zed release-artifacts/*run: gh release upload "$GITHUB_REF_NAME" --repo=zed-industries/zed release-artifacts/*- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}validate_release_assets:@@ -584,7 +543,6 @@ jobs:fiecho "All expected assets are present in the release."- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}auto_release_preview:@@ -601,7 +559,6 @@ jobs:private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}- name: gh release edit "$GITHUB_REF_NAME" --repo=zed-industries/zed --draft=falserun: gh release edit "$GITHUB_REF_NAME" --repo=zed-industries/zed --draft=false- shell: bash -euxo pipefail {0}env:GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}push_release_update_notification:@@ -641,16 +598,17 @@ jobs:fi)echo "message=$MESSAGE" >> "$GITHUB_OUTPUT"- shell: bash -euxo pipefail {0}env:GH_TOKEN: ${{ github.token }}- name: release::send_slack_messagerun: |curl -X POST -H 'Content-type: application/json'\--data '{"text":"${{ steps.generate-webhook-message.outputs.message }}"}' "$SLACK_WEBHOOK"- shell: bash -euxo pipefail {0}env:SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WORKFLOW_FAILURES }}concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex 2e97fab8e02..f6f3bf6659f 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -22,10 +22,8 @@ jobs:fetch-depth: 0- name: steps::cargo_fmtrun: cargo fmt --all -- --check- shell: bash -euxo pipefail {0}- name: ./script/clippyrun: ./script/clippy- shell: bash -euxo pipefail {0}timeout-minutes: 60run_tests_windows:if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')@@ -94,23 +92,18 @@ jobs:version=$(git rev-parse --short HEAD)echo "Publishing version: ${version} on release channel nightly"echo "nightly" > crates/zed/RELEASE_CHANNEL- shell: bash -euxo pipefail {0}- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/bundle-linuxrun: ./script/bundle-linux- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact zed-linux-aarch64.tar.gz'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -145,23 +138,18 @@ jobs:version=$(git rev-parse --short HEAD)echo "Publishing version: ${version} on release channel nightly"echo "nightly" > crates/zed/RELEASE_CHANNEL- shell: bash -euxo pipefail {0}- name: steps::setup_sentryuses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454bwith:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/bundle-linuxrun: ./script/bundle-linux- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact zed-linux-x86_64.tar.gz'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -201,7 +189,6 @@ jobs:version=$(git rev-parse --short HEAD)echo "Publishing version: ${version} on release channel nightly"echo "nightly" > crates/zed/RELEASE_CHANNEL- shell: bash -euxo pipefail {0}- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -212,10 +199,8 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: run_bundling::bundle_mac::bundle_macrun: ./script/bundle-mac aarch64-apple-darwin- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact Zed-aarch64.dmg'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -255,7 +240,6 @@ jobs:version=$(git rev-parse --short HEAD)echo "Publishing version: ${version} on release channel nightly"echo "nightly" > crates/zed/RELEASE_CHANNEL- shell: bash -euxo pipefail {0}- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -266,10 +250,8 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: run_bundling::bundle_mac::bundle_macrun: ./script/bundle-mac x86_64-apple-darwin- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact Zed-x86_64.dmg'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -417,7 +399,6 @@ jobs:cachixArgs: -v- name: nix_build::build_nix::buildrun: nix build .#default -L --accept-flake-config- shell: bash -euxo pipefail {0}timeout-minutes: 60continue-on-error: truebuild_nix_mac_aarch64:@@ -448,7 +429,6 @@ jobs:cachixArgs: -v- name: nix_build::build_nix::buildrun: nix build .#default -L --accept-flake-config- shell: bash -euxo pipefail {0}timeout-minutes: 60continue-on-error: trueupdate_nightly_tag:@@ -473,7 +453,6 @@ jobs:path: ./artifacts/- name: ls -lR ./artifactsrun: ls -lR ./artifacts- shell: bash -euxo pipefail {0}- name: release::prep_release_artifactsrun: |-mkdir -p release-artifacts/@@ -490,10 +469,8 @@ jobs:mv ./artifacts/zed-remote-server-linux-x86_64.gz/zed-remote-server-linux-x86_64.gz release-artifacts/zed-remote-server-linux-x86_64.gzmv ./artifacts/zed-remote-server-windows-aarch64.zip/zed-remote-server-windows-aarch64.zip release-artifacts/zed-remote-server-windows-aarch64.zipmv ./artifacts/zed-remote-server-windows-x86_64.zip/zed-remote-server-windows-x86_64.zip release-artifacts/zed-remote-server-windows-x86_64.zip- shell: bash -euxo pipefail {0}- name: ./script/upload-nightlyrun: ./script/upload-nightly- shell: bash -euxo pipefail {0}env:DIGITALOCEAN_SPACES_ACCESS_KEY: ${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }}DIGITALOCEAN_SPACES_SECRET_KEY: ${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}@@ -507,7 +484,6 @@ jobs:git config user.email [email protected]git tag -f nightlygit push origin nightly --force- shell: bash -euxo pipefail {0}- name: release::create_sentry_releaseuses: getsentry/action-release@526942b68292201ac6bbb99b9a0747d4abee354cwith:@@ -532,6 +508,8 @@ jobs:run: |curl -X POST -H 'Content-type: application/json'\--data '{"text":"❌ ${{ github.workflow }} failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}' "$SLACK_WEBHOOK"- shell: bash -euxo pipefail {0}env:SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_WORKFLOW_FAILURES }}+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_agent_evals.yml b/.github/workflows/run_agent_evals.ymlindex 02212516482..3036b6ffd9b 100644--- a/.github/workflows/run_agent_evals.yml+++ b/.github/workflows/run_agent_evals.yml@@ -34,24 +34,18 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: cargo build --package=evalrun: cargo build --package=eval- shell: bash -euxo pipefail {0}- name: run_agent_evals::agent_evals::run_evalrun: cargo run --package=eval -- --repetitions=8 --concurrency=1 --model "${MODEL_NAME}"- shell: bash -euxo pipefail {0}env:ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}@@ -61,8 +55,10 @@ jobs:if: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 600concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_bundling.yml b/.github/workflows/run_bundling.ymlindex 87619f7c185..7f0ad57b51f 100644--- a/.github/workflows/run_bundling.yml+++ b/.github/workflows/run_bundling.yml@@ -30,16 +30,12 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/bundle-linuxrun: ./script/bundle-linux- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact zed-linux-aarch64.tar.gz'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -73,16 +69,12 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/bundle-linuxrun: ./script/bundle-linux- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact zed-linux-x86_64.tar.gz'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -125,10 +117,8 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: run_bundling::bundle_mac::bundle_macrun: ./script/bundle-mac aarch64-apple-darwin- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact Zed-aarch64.dmg'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -171,10 +161,8 @@ jobs:token: ${{ secrets.SENTRY_AUTH_TOKEN }}- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: run_bundling::bundle_mac::bundle_macrun: ./script/bundle-mac x86_64-apple-darwin- shell: bash -euxo pipefail {0}- name: '@actions/upload-artifact Zed-x86_64.dmg'uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4with:@@ -279,3 +267,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_cron_unit_evals.yml b/.github/workflows/run_cron_unit_evals.ymlindex f2e1e8731fd..9dfda662301 100644--- a/.github/workflows/run_cron_unit_evals.yml+++ b/.github/workflows/run_cron_unit_evals.yml@@ -28,7 +28,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -36,21 +35,16 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::cargo_install_nextestuses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250- shell: bash -euxo pipefail {0}- name: ./script/run-unit-evalsrun: ./script/run-unit-evals- shell: bash -euxo pipefail {0}env:ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}@@ -61,7 +55,6 @@ jobs:if: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}- name: run_agent_evals::cron_unit_evals::send_failure_to_slackif: ${{ failure() }}uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52@@ -74,3 +67,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 2c275011f50..5358f19631a 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -51,7 +51,6 @@ jobs:check_pattern "run_licenses" '^(Cargo.lock|script/.*licenses)' -qPcheck_pattern "run_nix" '^(nix/|flake\.|Cargo\.|rust-toolchain.toml|\.cargo/config.toml)' -qPcheck_pattern "run_tests" '^(docs/|script/update_top_ranking_issues/|\.github/(ISSUE_TEMPLATE|workflows/(?!run_tests)))' -qvP- shell: bash -euxo pipefail {0}outputs:run_action_checks: ${{ steps.filter.outputs.run_action_checks }}run_docs: ${{ steps.filter.outputs.run_docs }}@@ -77,16 +76,12 @@ jobs:version: '9'- name: steps::prettierrun: ./script/prettier- shell: bash -euxo pipefail {0}- name: steps::cargo_fmtrun: cargo fmt --all -- --check- shell: bash -euxo pipefail {0}- name: ./script/check-todosrun: ./script/check-todos- shell: bash -euxo pipefail {0}- name: ./script/check-keymapsrun: ./script/check-keymaps- shell: bash -euxo pipefail {0}- name: run_tests::check_style::check_for_typosuses: crate-ci/typos@2d0ce569feab1f8752f1dde43cc2f2aa53236e06with:@@ -125,7 +120,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -133,16 +127,12 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::clippyrun: ./script/clippy- shell: bash -euxo pipefail {0}timeout-minutes: 60clippy_mac:needs:@@ -158,7 +148,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -166,7 +155,6 @@ jobs:path: ~/.rustup- name: steps::clippyrun: ./script/clippy- shell: bash -euxo pipefail {0}timeout-minutes: 60run_tests_windows:needs:@@ -213,7 +201,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -221,13 +208,10 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::setup_nodeuses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020with:@@ -236,15 +220,12 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250- shell: bash -euxo pipefail {0}- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast- shell: bash -euxo pipefail {0}- name: steps::cleanup_cargo_configif: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 60services:postgres:@@ -268,7 +249,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -282,15 +262,12 @@ jobs:uses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 300- shell: bash -euxo pipefail {0}- name: steps::cargo_nextestrun: cargo nextest run --workspace --no-fail-fast- shell: bash -euxo pipefail {0}- name: steps::cleanup_cargo_configif: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 60doctests:needs:@@ -309,28 +286,22 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::setup_cargo_configrun: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- id: run_doctestsname: run_tests::doctests::run_doctestsrun: |cargo test --workspace --doc --no-fail-fast- shell: bash -euxo pipefail {0}- name: steps::cleanup_cargo_configif: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 60check_workspace_binaries:needs:@@ -346,7 +317,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -354,24 +324,18 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: cargo build -p collabrun: cargo build -p collab- shell: bash -euxo pipefail {0}- name: cargo build --workspace --bins --examplesrun: cargo build --workspace --bins --examples- shell: bash -euxo pipefail {0}- name: steps::cleanup_cargo_configif: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}timeout-minutes: 60check_dependencies:needs:@@ -399,7 +363,6 @@ jobs:command: machete- name: run_tests::check_dependencies::check_cargo_lockrun: cargo update --locked --workspace- shell: bash -euxo pipefail {0}- name: run_tests::check_dependencies::check_vulnerable_dependenciesif: github.event_name == 'pull_request'uses: actions/dependency-review-action@67d4f4bd7a9b17a0db54d2a7519187c65e339de8@@ -420,7 +383,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -434,16 +396,12 @@ jobs:jobSummary: false- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: ./script/generate-action-metadatarun: ./script/generate-action-metadata- shell: bash -euxo pipefail {0}- name: run_tests::check_docs::install_mdbookuses: peaceiris/actions-mdbook@ee69d230fe19748b7abf22df32acaa93833fad08with:@@ -452,7 +410,6 @@ jobs:run: |mkdir -p target/deploymdbook build ./docs --dest-dir=../target/deploy/docs/- shell: bash -euxo pipefail {0}- name: run_tests::check_docs::lychee_link_checkuses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332with:@@ -477,10 +434,8 @@ jobs:path: ~/.rustup- name: ./script/check-licensesrun: ./script/check-licenses- shell: bash -euxo pipefail {0}- name: ./script/generate-licensesrun: ./script/generate-licenses- shell: bash -euxo pipefail {0}check_scripts:needs:- orchestrate@@ -493,15 +448,12 @@ jobs:clean: false- name: run_tests::check_scripts::run_shellcheckrun: ./script/shellcheck-scripts error- shell: bash -euxo pipefail {0}- id: get_actionlintname: run_tests::check_scripts::download_actionlintrun: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)- shell: bash -euxo pipefail {0}- name: run_tests::check_scripts::run_actionlintrun: |${{ steps.get_actionlint.outputs.executable }} -color- shell: bash -euxo pipefail {0}- name: run_tests::check_scripts::check_xtask_workflowsrun: |cargo xtask workflows@@ -510,7 +462,6 @@ jobs:echo "Please run 'cargo xtask workflows' locally and commit the changes"exit 1fi- shell: bash -euxo pipefail {0}timeout-minutes: 60build_nix_linux_x86_64:needs:@@ -540,7 +491,6 @@ jobs:pushFilter: -zed-editor-[0-9.]*-nightly- name: nix_build::build_nix::buildrun: nix build .#debug -L --accept-flake-config- shell: bash -euxo pipefail {0}timeout-minutes: 60continue-on-error: truebuild_nix_mac_aarch64:@@ -571,7 +521,6 @@ jobs:pushFilter: -zed-editor-[0-9.]*-nightly- name: nix_build::build_nix::buildrun: nix build .#debug -L --accept-flake-config- shell: bash -euxo pipefail {0}timeout-minutes: 60continue-on-error: truecheck_postgres_and_protobuf_migrations:@@ -591,7 +540,6 @@ jobs:fetch-depth: 0- name: run_tests::check_postgres_and_protobuf_migrations::remove_untracked_filesrun: git clean -df- shell: bash -euxo pipefail {0}- name: run_tests::check_postgres_and_protobuf_migrations::ensure_fresh_mergerun: |if [ -z "$GITHUB_BASE_REF" ];@@ -602,7 +550,6 @@ jobs:git merge -q "origin/$GITHUB_BASE_REF" -m "merge main into temp"echo "BUF_BASE_BRANCH=$GITHUB_BASE_REF" >> "$GITHUB_ENV"fi- shell: bash -euxo pipefail {0}- name: run_tests::check_postgres_and_protobuf_migrations::bufbuild_setup_actionuses: bufbuild/buf-setup-action@v1with:@@ -663,7 +610,9 @@ jobs:check_result "build_nix_mac_aarch64" "${{ needs.build_nix_mac_aarch64.result }}"exit $EXIT_CODE- shell: bash -euxo pipefail {0}concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/.github/workflows/run_unit_evals.yml b/.github/workflows/run_unit_evals.ymlindex ced24170f14..2678d04bc7a 100644--- a/.github/workflows/run_unit_evals.yml+++ b/.github/workflows/run_unit_evals.yml@@ -31,7 +31,6 @@ jobs:run: |mkdir -p ./../.cargocp ./.cargo/ci-config.toml ./../.cargo/config.toml- shell: bash -euxo pipefail {0}- name: steps::cache_rust_dependencies_namespaceuses: namespacelabs/nscloud-cache-action@v1with:@@ -39,21 +38,16 @@ jobs:path: ~/.rustup- name: steps::setup_linuxrun: ./script/linux- shell: bash -euxo pipefail {0}- name: steps::install_moldrun: ./script/install-mold- shell: bash -euxo pipefail {0}- name: steps::download_wasi_sdkrun: ./script/download-wasi-sdk- shell: bash -euxo pipefail {0}- name: steps::cargo_install_nextestuses: taiki-e/install-action@nextest- name: steps::clear_target_dir_if_largerun: ./script/clear-target-dir-if-larger-than 250- shell: bash -euxo pipefail {0}- name: ./script/run-unit-evalsrun: ./script/run-unit-evals- shell: bash -euxo pipefail {0}env:ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}@@ -64,7 +58,9 @@ jobs:if: always()run: |rm -rf ./../.cargo- shell: bash -euxo pipefail {0}concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.run_id }}cancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/extensions/workflows/run_tests.yml b/extensions/workflows/run_tests.ymlindex 60fa9f7d0fd..aa748dc5784 100644--- a/extensions/workflows/run_tests.yml+++ b/extensions/workflows/run_tests.yml@@ -16,3 +16,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}prcancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/extensions/workflows/shared/bump_version.yml b/extensions/workflows/shared/bump_version.ymlindex 49aca672e25..bbf7e9b11ca 100644--- a/extensions/workflows/shared/bump_version.yml+++ b/extensions/workflows/shared/bump_version.yml@@ -28,7 +28,6 @@ jobs:bump_type="patch"fiecho "bump_type=$bump_type" >> $GITHUB_OUTPUT- shell: bash -euxo pipefail {0}env:HAS_MAJOR_LABEL: |-${{ (github.event.action == 'labeled' && github.event.label.name == 'major') ||@@ -57,3 +56,6 @@ jobs:concurrency:group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}labelscancel-in-progress: true+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/extensions/workflows/shared/release_version.yml b/extensions/workflows/shared/release_version.ymlindex 623ec04fde4..076cc04d10b 100644--- a/extensions/workflows/shared/release_version.yml+++ b/extensions/workflows/shared/release_version.yml@@ -14,3 +14,6 @@ jobs:secrets:app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}app-secret: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}+defaults:+ run:+ shell: bash -euxo pipefail {0}diff --git a/tooling/xtask/src/tasks/workflows/bump_patch_version.rs b/tooling/xtask/src/tasks/workflows/bump_patch_version.rsindex 00298463c6d..cc6229587bf 100644--- a/tooling/xtask/src/tasks/workflows/bump_patch_version.rs+++ b/tooling/xtask/src/tasks/workflows/bump_patch_version.rs@@ -48,7 +48,6 @@ fn run_bump_patch_version(branch: &WorkflowInput) -> steps::NamedJob {git tag "v${output}${tag_suffix}"git push origin HEAD "v${output}${tag_suffix}""#})- .shell(steps::BASH_SHELL).add_env(("GIT_COMMITTER_NAME", "Zed Zippy")).add_env(("GIT_COMMITTER_EMAIL",diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex 1801190dfac..561b9edd794 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -7,7 +7,7 @@ use indexmap::IndexMap;use crate::tasks::workflows::{nix_build::build_nix,runners::Arch,- steps::{BASH_SHELL, CommonJobConditions, repository_owner_guard_expression},+ steps::{CommonJobConditions, repository_owner_guard_expression},vars::{self, PathCondition},};@@ -175,12 +175,7 @@ pub fn orchestrate(rules: &[&PathCondition]) -> NamedJob {"fetch-depth","${{ github.ref == 'refs/heads/main' && 2 || 350 }}",)))- .add_step(- Step::new(step_name.clone())- .run(script)- .id(step_name)- .shell(BASH_SHELL),- );+ .add_step(Step::new(step_name.clone()).run(script).id(step_name));NamedJob { name, job }}diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rsindex 90e28e08af3..6db4f2fa6c6 100644--- a/tooling/xtask/src/tasks/workflows/steps.rs+++ b/tooling/xtask/src/tasks/workflows/steps.rs@@ -2,7 +2,7 @@ use gh_workflow::*;use crate::tasks::workflows::{runners::Platform, vars, vars::StepOutput};-pub const BASH_SHELL: &str = "bash -euxo pipefail {0}";+const BASH_SHELL: &str = "bash -euxo pipefail {0}";// https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsshellpub const PWSH_SHELL: &str = "pwsh";@@ -160,7 +160,7 @@ pub fn script(name: &str) -> Step<Run> {if name.ends_with(".ps1") {Step::new(name).run(name).shell(PWSH_SHELL)} else {- Step::new(name).run(name).shell(BASH_SHELL)+ Step::new(name).run(name)}}@@ -290,9 +290,7 @@ pub mod named {/// (You shouldn't inline this function into the workflow definition, you must/// wrap it in a new function.)pub fn bash(script: impl AsRef<str>) -> Step<Run> {- Step::new(function_name(1))- .run(script.as_ref())- .shell(BASH_SHELL)+ Step::new(function_name(1)).run(script.as_ref())}/// Returns a pwsh-script step with the same name as the enclosing function.@@ -308,25 +306,26 @@ pub mod named {pub fn run(platform: Platform, script: &str) -> Step<Run> {match platform {Platform::Windows => Step::new(function_name(1)).run(script).shell(PWSH_SHELL),- Platform::Linux | Platform::Mac => {- Step::new(function_name(1)).run(script).shell(BASH_SHELL)- }+ Platform::Linux | Platform::Mac => Step::new(function_name(1)).run(script),}}- /// Returns a Workflow with the same name as the enclosing module.+ /// Returns a Workflow with the same name as the enclosing module with default+ /// set for the running shell.pub fn workflow() -> Workflow {- Workflow::default().name(- named::function_name(1)- .split("::")- .collect::<Vec<_>>()- .into_iter()- .rev()- .skip(1)- .rev()- .collect::<Vec<_>>()- .join("::"),- )+ Workflow::default()+ .name(+ named::function_name(1)+ .split("::")+ .collect::<Vec<_>>()+ .into_iter()+ .rev()+ .skip(1)+ .rev()+ .collect::<Vec<_>>()+ .join("::"),+ )+ .defaults(Defaults::default().run(RunDefaults::default().shell(BASH_SHELL)))}/// Returns a Job with the same name as the enclosing function.