Skip to content

Stage compat/ and stop ignoring examples/ and compat/ in app deploy - #501

Closed
sundarleads wants to merge 1 commit into
databrickslabs:issue_500from
sundarleads:fix/deploy-app-stage-compat-issue-500
Closed

sundarleads wants to merge 1 commit into
databrickslabs:issue_500from
sundarleads:fix/deploy-app-stage-compat-issue-500

Conversation

@sundarleads

Copy link
Copy Markdown

Follow-up to #500, now against issue_500.

issue_500 already stages examples/, so this adds compat/ to both deploy scripts and drops compat/ and examples/ from .databricksignore so sync doesn't skip them.

I also extended the staging test to check .databricksignore against the dirs setup.py needs. It fails on current issue_500 and passes with this change. flake8 and bandit are clean. Haven't run the .ps1 on Windows, it's a one-line change.

setup.py needs examples/ (MCP templates) and compat/ (dlt_meta and src packages) to build the wheel when the App starts. issue_500 already stages examples/. This adds compat/ to both deploy scripts and removes compat/ and examples/ from .databricksignore, which the scripts stage for databricks sync. The new test checks that both scripts stage every directory setup.py needs, and that .databricksignore does not exclude any of them.
@ravi-databricks

Copy link
Copy Markdown
Contributor

Thank you for the follow-up. This fix is already present on the target
issue_500 branch in commit 1d33f59, including the deploy-script updates,
.databricksignore correction, and regression test.

Closing this PR as a duplicate.

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 this pull request may close these issues.

2 participants