Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bundle fails to work with git based jobs #402

Closed
stikkireddy opened this issue May 24, 2023 · 0 comments · Fixed by #404
Closed

[BUG] Bundle fails to work with git based jobs #402

stikkireddy opened this issue May 24, 2023 · 0 comments · Fixed by #404

Comments

@stikkireddy
Copy link
Contributor

Validate fails due to the path being in a remote repository. That file may not be available locally or relative.

Causes:

Error: cannot create job: Invalid notebook_path: /Users/sri.tikkireddy@databricks.com/.bundle/demo/default/files/bundler. Only relative paths are currently supported for remote repositories. Paths must not begin with '/'.

  with databricks_job.demo,
  on bundle.tf.json line 567, in resource.databricks_job.demo:
 567:       }

Git based jobs are a valid form of deployment. Need a way to support this.

pietern added a commit that referenced this issue Jun 7, 2023
## Changes

Added skipping of translating paths for notebook path in notebook tasks
and python file path in spark python tasks if the git source is not null.

Resolves: #402

## Tests

There is a unit test and also tested with a sample bundle:

```
resources:
  jobs:
    demo:
      git_source:
        git_branch: master
        git_provider: github
        git_url: https://github.com/test/dummy
   ....
```

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant