Fix targeted test filter count

This commit is contained in:
starr-openai
2026-05-29 05:56:40 -07:00
parent c4e59dba4b
commit 4bba43fa16
2 changed files with 6 additions and 6 deletions

View File

@@ -419,7 +419,7 @@ jobs:
--workspace-remap "${workspace_root}" \
--filterset "${NEXTEST_FILTERSET}" \
--message-format json |
python3 -c 'import json, sys; print(json.load(sys.stdin)["test-count"])'
python3 -c 'import json, sys; test_list = json.load(sys.stdin); print(sum(testcase["filter-match"]["status"] == "matches" for suite in test_list["rust-suites"].values() for testcase in suite["testcases"].values()))'
)"
if [[ "${test_count}" != "1" ]]; then
echo "nextest filterset must resolve to exactly one test; got ${test_count}" >&2

View File

@@ -32,7 +32,7 @@ jobs:
profile: ci-test
artifact_id: targeted-macos-aarch64
use_sccache: true
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }}
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=session::tests::user_shell_commands_do_not_inherit_managed_network_proxy)' }}
partition_tests: false
require_single_test: true
secrets: inherit
@@ -50,7 +50,7 @@ jobs:
artifact_id: targeted-linux-x64-remote
remote_env: true
use_sccache: true
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }}
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=session::tests::user_shell_commands_do_not_inherit_managed_network_proxy)' }}
partition_tests: false
require_single_test: true
secrets: inherit
@@ -67,7 +67,7 @@ jobs:
profile: ci-test
artifact_id: targeted-linux-arm64
use_sccache: true
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }}
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=session::tests::user_shell_commands_do_not_inherit_managed_network_proxy)' }}
partition_tests: false
require_single_test: true
secrets: inherit
@@ -84,7 +84,7 @@ jobs:
profile: ci-test
artifact_id: targeted-windows-x64
test_threads: 8
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }}
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=session::tests::user_shell_commands_do_not_inherit_managed_network_proxy)' }}
partition_tests: false
require_single_test: true
secrets: inherit
@@ -105,7 +105,7 @@ jobs:
artifact_id: targeted-windows-arm64
test_threads: 8
use_sccache: true
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=user_shell_commands_do_not_inherit_managed_network_proxy)' }}
nextest_filterset: ${{ github.event_name == 'workflow_dispatch' && inputs.nextest_filterset || 'test(=session::tests::user_shell_commands_do_not_inherit_managed_network_proxy)' }}
partition_tests: false
require_single_test: true
secrets: inherit