diff --git a/.github/workflows/rust-ci-full-targeted-test.yml b/.github/workflows/rust-ci-full-targeted-test.yml index fa99cb99b6..8b04336e4b 100644 --- a/.github/workflows/rust-ci-full-targeted-test.yml +++ b/.github/workflows/rust-ci-full-targeted-test.yml @@ -1,6 +1,9 @@ name: rust-ci-full targeted test on: + push: + branches: + - starr/rust-ci-targeted-test-20260529 workflow_dispatch: inputs: platform: @@ -20,7 +23,7 @@ on: jobs: tests_macos_aarch64: - if: ${{ inputs.platform == 'macos-aarch64' }} + if: ${{ (github.event_name == 'workflow_dispatch' && inputs.platform || 'linux-x64-remote') == 'macos-aarch64' }} name: Targeted test — macos-15-xlarge - aarch64-apple-darwin uses: ./.github/workflows/rust-ci-full-nextest-platform.yml with: @@ -29,13 +32,13 @@ jobs: profile: ci-test artifact_id: targeted-macos-aarch64 use_sccache: true - nextest_filterset: ${{ inputs.nextest_filterset }} + nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }} partition_tests: false require_single_test: true secrets: inherit tests_linux_x64_remote: - if: ${{ inputs.platform == 'linux-x64-remote' }} + if: ${{ (github.event_name == 'workflow_dispatch' && inputs.platform || 'linux-x64-remote') == 'linux-x64-remote' }} name: Targeted test — ubuntu-24.04 - x86_64-unknown-linux-gnu (remote) uses: ./.github/workflows/rust-ci-full-nextest-platform.yml with: @@ -47,13 +50,13 @@ jobs: artifact_id: targeted-linux-x64-remote remote_env: true use_sccache: true - nextest_filterset: ${{ inputs.nextest_filterset }} + nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }} partition_tests: false require_single_test: true secrets: inherit tests_linux_arm64: - if: ${{ inputs.platform == 'linux-arm64' }} + if: ${{ (github.event_name == 'workflow_dispatch' && inputs.platform || 'linux-x64-remote') == 'linux-arm64' }} name: Targeted test — ubuntu-24.04-arm - aarch64-unknown-linux-gnu uses: ./.github/workflows/rust-ci-full-nextest-platform.yml with: @@ -64,13 +67,13 @@ jobs: profile: ci-test artifact_id: targeted-linux-arm64 use_sccache: true - nextest_filterset: ${{ inputs.nextest_filterset }} + nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }} partition_tests: false require_single_test: true secrets: inherit tests_windows_x64: - if: ${{ inputs.platform == 'windows-x64' }} + if: ${{ (github.event_name == 'workflow_dispatch' && inputs.platform || 'linux-x64-remote') == 'windows-x64' }} name: Targeted test — windows-x64 - x86_64-pc-windows-msvc uses: ./.github/workflows/rust-ci-full-nextest-platform.yml with: @@ -81,13 +84,13 @@ jobs: profile: ci-test artifact_id: targeted-windows-x64 test_threads: 8 - nextest_filterset: ${{ inputs.nextest_filterset }} + nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }} partition_tests: false require_single_test: true secrets: inherit tests_windows_arm64: - if: ${{ inputs.platform == 'windows-arm64' }} + if: ${{ (github.event_name == 'workflow_dispatch' && inputs.platform || 'linux-x64-remote') == 'windows-arm64' }} name: Targeted test — windows-arm64 - aarch64-pc-windows-msvc uses: ./.github/workflows/rust-ci-full-nextest-platform.yml with: @@ -102,7 +105,7 @@ jobs: artifact_id: targeted-windows-arm64 test_threads: 8 use_sccache: true - nextest_filterset: ${{ inputs.nextest_filterset }} + nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }} partition_tests: false require_single_test: true secrets: inherit @@ -123,7 +126,7 @@ jobs: - name: Confirm selected targeted test passed shell: bash run: | - case '${{ inputs.platform }}' in + case '${{ github.event_name == 'workflow_dispatch' && inputs.platform || 'linux-x64-remote' }}' in macos-aarch64) result='${{ needs.tests_macos_aarch64.result }}' ;; linux-x64-remote) result='${{ needs.tests_linux_x64_remote.result }}' ;; linux-arm64) result='${{ needs.tests_linux_arm64.result }}' ;;