File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ ENV PYTHONPATH="${SPARK_HOME}/python/:${SPARK_HOME}/python/lib/py4j-0.10.9.7-src
3838WORKDIR /home/spark/regtests
3939COPY ./regtests/setup.sh /home/spark/regtests/setup.sh
4040COPY ./regtests/pyspark-setup.sh /home/spark/regtests/pyspark-setup.sh
41- COPY ./client/python /home/spark/client/python
41+ COPY ./client/python /home/spark/regtests/ client/python
4242COPY ./regtests/polaris-reg-test /home/spark/polaris
4343COPY ./regtests/requirements.txt /tmp/
4444
@@ -48,11 +48,11 @@ RUN python3 -m venv /home/spark/polaris-venv && \
4848 deactivate \
4949 ./setup.sh
5050
51- COPY --chown=spark . /home/spark/regtests
51+ COPY --chown=spark ./regtests /home/spark/regtests
5252
5353# /home/spark/regtests might not be writable in all situations, see https://github.com/apache/polaris/pull/205
5454USER root
5555RUN chmod -R go+rwx /home/spark/regtests
5656USER spark
5757
58- ENTRYPOINT ["./regtests/ run.sh" ]
58+ ENTRYPOINT ["./run.sh" ]
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if [ ! -d ${SCRIPT_DIR}/polaris-venv ]; then
3939 . ${SCRIPT_DIR} /polaris-venv/bin/activate
4040 pip install -f requirements.txt
4141
42- cp ${SCRIPT_DIR} /client/python/pyproject.toml ${SCRIPT_DIR}
42+ cp ${SCRIPT_DIR} /regtests/ client/python/pyproject.toml ${SCRIPT_DIR}
4343
4444 # Save the current directory
4545 CURRENT_DIR=$( pwd)
5353# Save the current directory
5454CURRENT_DIR=$( pwd)
5555cd $SCRIPT_DIR > /dev/null
56- PYTHONPATH=client/python SCRIPT_DIR=" $SCRIPT_DIR " ${SCRIPT_DIR} /polaris-venv/bin/python3 client/python/cli/polaris_cli.py " $@ "
56+ PYTHONPATH=regtests/ client/python SCRIPT_DIR=" $SCRIPT_DIR " ${SCRIPT_DIR} /polaris-venv/bin/python3 regtests/ client/python/cli/polaris_cli.py " $@ "
5757status=$?
5858cd $CURRENT_DIR > /dev/null
5959
Original file line number Diff line number Diff line change 2626
2727pip install -r requirements.txt
2828
29- cd ../ client/python
29+ cd client/python
3030python3 -m poetry install
3131deactivate
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ cd ${REGTEST_HOME}
5353
5454if [ -z " ${1} " ]; then
5555 loginfo ' Running all tests'
56- TEST_LIST=" ../ client/python/test $( find t_* -wholename ' *t_*/src/*' ) "
56+ TEST_LIST=" client/python/test $( find t_* -wholename ' *t_*/src/*' ) "
5757else
5858 loginfo " Running single test ${1} "
5959 TEST_LIST=${1}
@@ -92,7 +92,7 @@ echo "Root bearer token: ${REGTEST_ROOT_BEARER_TOKEN}"
9292
9393for TEST_FILE in ${TEST_LIST} ; do
9494 # Special-case running all client pytests
95- if [ " ${TEST_FILE} " == ' ../ client/python/test' ]; then
95+ if [ " ${TEST_FILE} " == ' client/python/test' ]; then
9696 loginfo " Starting pytest for entire client suite"
9797 SCRIPT_DIR=" $SCRIPT_DIR " python3 -m pytest ${TEST_FILE}
9898 CODE=$?
Original file line number Diff line number Diff line change 2727import sys
2828from typing import Callable
2929
30- CLI_PYTHONPATH = f'{ os .path .dirname (os .path .abspath (__file__ ))} /../../../ client/python'
30+ CLI_PYTHONPATH = f'{ os .path .dirname (os .path .abspath (__file__ ))} /../../client/python'
3131ROLE_ARN = 'arn:aws:iam::123456789012:role/my-role'
3232POLARIS_HOST = os .getenv ('POLARIS_HOST' , 'localhost' )
3333POLARIS_URL = f'http://{ POLARIS_HOST } :8181/api/catalog/v1/oauth/tokens'
You can’t perform that action at this time.
0 commit comments