@@ -69,7 +69,7 @@ if [[ $mode = "unused" || $mode = "all" ]]; then
6969 unused_test_rule_file=${working_dir} /unused_test_rule
7070
7171 # -- Begin of Query Rules Heredoc --
72- cat > " ${unused_test_rule_file} " << EndOfMessage
72+ cat > " ${unused_test_rule_file} " << EndOfMessage
7373 let missing_deps = filter('//snowflake/ml[:/].*', kind('py_library rule', deps(tests/...) except deps(snowflake/ml:wheel))) in
7474 kind('source file', labels(srcs, kind('py_test rule', rdeps(//tests/..., \$ missing_deps, 1))))
7575EndOfMessage
@@ -85,9 +85,9 @@ if [[ $mode = "unaffected" || $mode = "all" ]]; then
8585 unaffected_test_rule_file=${working_dir} /unaffected_test_rule
8686
8787 # -- Begin of Query Rules Heredoc --
88- cat > " ${unaffected_test_rule_file} " << EndOfMessage
88+ cat > " ${unaffected_test_rule_file} " << EndOfMessage
8989 let unaffected_targets = //tests/... - rdeps(//tests/..., set($( < " ${affected_targets_file} " ) )) in
90- kind('source file', labels(srcs, kind('py_test rule', \$ unaffected_targets)))
90+ kind('source file', labels(srcs, set( $( < ci/skip_merge_gate_targets ) ) + kind('py_test rule', \$ unaffected_targets)))
9191EndOfMessage
9292 # -- End of Query Rules Heredoc --
9393
115115
116116excluded_test_source_rule_file=${working_dir} /excluded_test_source_rule
117117
118- printf " kind('source file', set(%s) + set( $( < ci/skip_merge_gate_targets ) ) " " $( < " ${targets_to_exclude_file} " ) ) " > " ${excluded_test_source_rule_file} "
118+ printf " kind('source file', set(%s)) " " $( < " ${targets_to_exclude_file} " ) " > " ${excluded_test_source_rule_file} "
119119
120120${bazel} query --query_file=" ${excluded_test_source_rule_file} " \
121121 --output location |
0 commit comments