|
1 | 1 | #!/usr/bin/env bash |
2 | 2 | # This script assumes the target Cloud Workspace specified as the command-line argument has the build target. |
3 | | -# To make sure this is the case, run bazel build //Snowpark/ast:ast_proto && bazel build //Snowpark/unparser && bazel run //Snowpark/unparser. |
| 3 | +# To make sure this is the case, run bazel build //Snowpark/ast:ast_proto && bazel build //Snowpark/frontend/unparser && bazel run //Snowpark/frontend/unparser. |
4 | 4 | # The bazel build commands will create the proto and unparser.jar files, whereas bazel run will create the run-files directory. |
5 | 5 |
|
6 | 6 | # N.B. The calling environment further requires: |
@@ -28,15 +28,15 @@ REMOTE_HOME=$(ssh $1 'echo "$HOME"') |
28 | 28 |
|
29 | 29 | # Run bazel build remotely. |
30 | 30 | # Adding _deploy to a bazel JVM target builds a fat jar, |
31 | | -# For the unparser this target is //Snowpark/unparser:unparser_deploy.jar. |
32 | | -ssh $1 'cd ~/Snowflake/trunk && bazel build //Snowpark/ast:ast_proto && bazel build //Snowpark/unparser:unparser_deploy.jar' |
| 31 | +# For the unparser this target is //Snowpark/frontend/unparser:unparser_deploy.jar. |
| 32 | +ssh $1 'cd ~/Snowflake/trunk && bazel build //Snowpark/ast:ast_proto && bazel build //Snowpark/frontend/unparser:unparser_deploy.jar' |
33 | 33 |
|
34 | 34 | # (1) Copy over ast.proto file (required by python -x tox -e protoc). |
35 | 35 | scp $1:"$REMOTE_HOME/Snowflake/trunk/bazel-bin/Snowpark/ast/ast.proto" $SNOWPARK_ROOT/src/snowflake/snowpark/_internal/proto/ast.proto |
36 | 36 |
|
37 | 37 | # (2) Copy over fat unparser_deploy.jar and rename to unparser.jar. |
38 | | -mkdir -p $MONOREPO_DIR/bazel-bin/Snowpark/unparser/ |
39 | | -scp $1:$REMOTE_HOME/Snowflake/trunk/bazel-bin/Snowpark/unparser/unparser_deploy.jar $MONOREPO_DIR/bazel-bin/Snowpark/unparser/unparser.jar |
| 38 | +mkdir -p $MONOREPO_DIR/bazel-bin/Snowpark/frontend/unparser/ |
| 39 | +scp $1:$REMOTE_HOME/Snowflake/trunk/bazel-bin/Snowpark/frontend/unparser/unparser_deploy.jar $MONOREPO_DIR/bazel-bin/Snowpark/frontend/unparser/unparser.jar |
40 | 40 |
|
41 | 41 | pushd $SNOWPARK_ROOT |
42 | 42 | python -m tox -e protoc |
|
0 commit comments