Skip to content

Commit 76d191e

Browse files
Project import generated by Copybara. (#46)
1 parent 18b4541 commit 76d191e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Created by https://www.gitignore.io/api/c,c++,node,java,python,intellij,netbeans
22
# Edit at https://www.gitignore.io/?templates=c,c++,node,java,python,intellij,netbeans
33

4+
# Mac droppings
5+
.DS_Store
6+
47
### C ###
58
# Prerequisites
69
*.d
@@ -47,7 +50,8 @@
4750
*.pdb
4851

4952
# Kernel Module Compile Results
50-
*.mod*
53+
# commented out below line to allow modeling files to be committed
54+
# *.mod*
5155
*.cmd
5256
.tmp_versions/
5357
modules.order
@@ -271,6 +275,8 @@ public/
271275
.dynamodb/
272276

273277
### Python ###
278+
.venv
279+
274280
# Byte-compiled / optimized / DLL files
275281
__pycache__/
276282
*.py[cod]

ci/get_excluded_tests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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))))
7575
EndOfMessage
@@ -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)))
9191
EndOfMessage
9292
# -- End of Query Rules Heredoc --
9393

@@ -115,7 +115,7 @@ esac
115115

116116
excluded_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 |

ci/skip_merge_gate_targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
//tests/integ/snowflake/ml/model:deployment_to_snowservice_integ_test
22
//tests/integ/snowflake/ml/registry:model_registry_integ_test_snowservice
3-
//tests/perf:test_perf

0 commit comments

Comments
 (0)