Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Don't require protobuf and postgres checks for tests_pass for now (#42057)
Cole Miller930b489d90fb
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 002044580a8..db11382d8ba 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -285,40 +285,6 @@ jobs:rm -rf ./../.cargoshell: bash -euxo pipefail {0}timeout-minutes: 60- check_postgres_and_protobuf_migrations:- needs:- - orchestrate- if: needs.orchestrate.outputs.run_tests == 'true'- runs-on: self-mini-macos- steps:- - name: steps::checkout_repo- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683- with:- fetch-depth: 0- - name: run_tests::check_postgres_and_protobuf_migrations::remove_untracked_files- run: git clean -df- shell: bash -euxo pipefail {0}- - name: run_tests::check_postgres_and_protobuf_migrations::ensure_fresh_merge- run: |- if [ -z "$GITHUB_BASE_REF" ];- then- echo "BUF_BASE_BRANCH=$(git merge-base origin/main HEAD)" >> "$GITHUB_ENV"- else- git checkout -B temp- 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_action- uses: bufbuild/buf-setup-action@v1- with:- version: v1.29.0- - name: run_tests::check_postgres_and_protobuf_migrations::bufbuild_breaking_action- uses: bufbuild/buf-breaking-action@v1- with:- input: crates/proto/proto/- against: https://github.com/${GITHUB_REPOSITORY}.git#branch=${BUF_BASE_BRANCH},subdir=crates/proto/proto/- timeout-minutes: 60check_dependencies:needs:- orchestrate@@ -518,6 +484,40 @@ jobs:shell: bash -euxo pipefail {0}timeout-minutes: 60continue-on-error: true+ check_postgres_and_protobuf_migrations:+ needs:+ - orchestrate+ if: needs.orchestrate.outputs.run_tests == 'true'+ runs-on: self-mini-macos+ steps:+ - name: steps::checkout_repo+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683+ with:+ fetch-depth: 0+ - name: run_tests::check_postgres_and_protobuf_migrations::remove_untracked_files+ run: git clean -df+ shell: bash -euxo pipefail {0}+ - name: run_tests::check_postgres_and_protobuf_migrations::ensure_fresh_merge+ run: |+ if [ -z "$GITHUB_BASE_REF" ];+ then+ echo "BUF_BASE_BRANCH=$(git merge-base origin/main HEAD)" >> "$GITHUB_ENV"+ else+ git checkout -B temp+ 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_action+ uses: bufbuild/buf-setup-action@v1+ with:+ version: v1.29.0+ - name: run_tests::check_postgres_and_protobuf_migrations::bufbuild_breaking_action+ uses: bufbuild/buf-breaking-action@v1+ with:+ input: crates/proto/proto/+ against: https://github.com/${GITHUB_REPOSITORY}.git#branch=${BUF_BASE_BRANCH},subdir=crates/proto/proto/+ timeout-minutes: 60tests_pass:needs:- orchestrate@@ -527,7 +527,6 @@ jobs:- run_tests_mac- doctests- check_workspace_binaries- - check_postgres_and_protobuf_migrations- check_dependencies- check_docs- check_licenses@@ -554,7 +553,6 @@ jobs:check_result "run_tests_mac" "${{ needs.run_tests_mac.result }}"check_result "doctests" "${{ needs.doctests.result }}"check_result "check_workspace_binaries" "${{ needs.check_workspace_binaries.result }}"- check_result "check_postgres_and_protobuf_migrations" "${{ needs.check_postgres_and_protobuf_migrations.result }}"check_result "check_dependencies" "${{ needs.check_dependencies.result }}"check_result "check_docs" "${{ needs.check_docs.result }}"check_result "check_licenses" "${{ needs.check_licenses.result }}"diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex 595b185f453..e2f1303c15a 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -42,7 +42,7 @@ pub(crate) fn run_tests() -> Workflow {&should_run_tests,]);- let jobs = [+ let mut jobs = vec![orchestrate,check_style(),should_run_tests.guard(run_platform_tests(Platform::Windows)),@@ -50,7 +50,6 @@ pub(crate) fn run_tests() -> Workflow {should_run_tests.guard(run_platform_tests(Platform::Mac)),should_run_tests.guard(doctests()),should_run_tests.guard(check_workspace_binaries()),- should_run_tests.guard(check_postgres_and_protobuf_migrations()), // could be more specific here?should_run_tests.guard(check_dependencies()), // could be more specific here?should_check_docs.guard(check_docs()),should_check_licences.guard(check_licenses()),@@ -74,6 +73,8 @@ pub(crate) fn run_tests() -> Workflow {];let tests_pass = tests_pass(&jobs);+ jobs.push(should_run_tests.guard(check_postgres_and_protobuf_migrations())); // could be more specific here?+named::workflow().add_event(Event::default().push(