-
Notifications
You must be signed in to change notification settings - Fork 154
requirements.txt relative path not replaced correctly when used in serverless dependency #2849
Copy link
Copy link
Closed
Labels
BugSomething isn't workingSomething isn't workingDABsDABs related issuesDABs related issuesResponse Requested
Description
Describe the issue
We're using serverless compute to run DAB jobs, and a requirements.txt to create the python environment.
Configuration
resources:
jobs:
run_tests_job:
name: run_tests_job
tasks:
- task_key: start_test_runner
spark_python_task:
python_file: ../tests/run_pytest.py
environment_key: default
environments:
- environment_key: default
spec:
client: '1'
dependencies:
- "-r ../requirements.txt" # Problem lineMy current workaround is to replace the problem line with - "-r ${workspace.file_path}/requirements.txt"
Steps to reproduce the behavior
Please list the steps required to reproduce the issue, for example:
- Run
databricks bundle validateworks correctly - Run
databricks bundle deployto see the error:
Error: file doesn't exist ./resources/-r ../requirements.txt
at resources.jobs.run_tests_job.environments[0].spec.dependencies[0]
in resources/run_tests_job.yml:15:17
Expected Behavior
The relative path should work in the same way as the python_file.
Actual Behavior
The asset bundle's configuration is being not being parsed correctly, possibly due to the -r flag
OS and CLI version
0.251.0
Linux
Is this a regression?
No. Similar issue: #1751
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingDABsDABs related issuesDABs related issuesResponse Requested