diff --git a/.github/workflows/integration-tests-api.yml b/.github/workflows/integration-tests-api.yml index 47eed26e..d755a976 100644 --- a/.github/workflows/integration-tests-api.yml +++ b/.github/workflows/integration-tests-api.yml @@ -6,6 +6,7 @@ on: - main - dev - test/* + - fix/tests jobs: api-tests: @@ -31,9 +32,13 @@ jobs: with: install_only: true + - name: Print Current Working Directory + run: | + pwd + - name: Prepare and create cluster. run: | - domino platform prepare --cluster-name=domino-cluster --workflows-repository=${{secrets.TESTS_WORKFLOWS_REPOSITORY}} --github-workflows-ssh-private-key=None --github-workflows-token=${{ secrets.TESTS_GITHUB_WORKFLOWS_TOKEN }} --github-default-pieces-repository-token=${{ secrets.TESTS_GITHUB_PIECES_TOKEN }} --deploy-mode=local-k8s-dev --local-pieces-repository-path=[] --local-domino-path='' --local-rest-image='domino-rest:test' --local-frontend-image='' --local-airflow-image='' + domino platform prepare --cluster-name=domino-cluster --workflows-repository=${{secrets.TESTS_WORKFLOWS_REPOSITORY}} --github-workflows-ssh-private-key='' --github-workflows-token=${{ secrets.TESTS_GITHUB_WORKFLOWS_TOKEN }} --github-default-pieces-repository-token=${{ secrets.TESTS_GITHUB_PIECES_TOKEN }} --deploy-mode=local-k8s-dev --local-pieces-repository-path=[] --local-domino-path='./src/domino' --local-rest-image='domino-rest:test' --local-frontend-image='' --local-airflow-image='' domino platform create --install-airflow=False - name: Install tests dependencies. diff --git a/rest/utils/routing.py b/rest/utils/routing.py deleted file mode 100644 index 7b423e0d..00000000 --- a/rest/utils/routing.py +++ /dev/null @@ -1,8 +0,0 @@ -def conditional_endpoint(enabled=True): - def decorator(func): - if enabled: - return func - def disabled(): - return {"message": "This endpoint is disabled."} - return disabled - return decorator \ No newline at end of file diff --git a/src/domino/cli/utils/platform.py b/src/domino/cli/utils/platform.py index 835a9f6f..03b3762f 100644 --- a/src/domino/cli/utils/platform.py +++ b/src/domino/cli/utils/platform.py @@ -142,9 +142,10 @@ def create_platform(install_airflow: bool = True, use_gpu: bool = False) -> None ) ) if platform_config['dev'].get('DOMINO_LOCAL_DOMINO_PACKAGE'): + domino_local_package_absolute_path = Path(platform_config['dev']['DOMINO_LOCAL_DOMINO_PACKAGE']).resolve() extra_mounts_local_repositories.append( dict( - hostPath=platform_config['dev']['DOMINO_LOCAL_DOMINO_PACKAGE'], + hostPath=str(domino_local_package_absolute_path), containerPath=f"/domino/domino_py/src/domino", readOnly=True, propagation='HostToContainer'