Add battle-tested improvements to app-python, app-apx, and model-serving skills#209
Open
CheeYuTan wants to merge 1 commit intodatabricks-solutions:mainfrom
Open
Conversation
…ing skills Real-world fixes from deploying Databricks Apps in production: databricks-app-python: - Add 5 critical MUST/MUST NOT rules: /metrics endpoint, CDN blocking, don't delete-recreate apps, don't upload dev files, React hooks ordering - Fix valueFrom YAML syntax (valueFrom.resource instead of flat valueFrom) - Add CLI API PATCH workflow for attaching resources programmatically - Add valueFrom vs value fallback troubleshooting - Add port binding guidance and DATABRICKS_APP_PORT details per framework - Add "never delete-recreate" warning and clean stale files workflow - Add Lakebase OAuth security label error fix and PGPASSWORD workaround - Add Lakebase Sync (reverse ETL) quick-start instructions - Add 4 new troubleshooting entries: App Not Available, blank frontend, React Error #310, gateway health check databricks-app-apx: - Add React Error #310 (hooks ordering) troubleshooting entry databricks-model-serving: - Add system.ai.similarity_search to built-in UC functions table
30840d6 to
e37b320
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds real-world fixes and troubleshooting guidance to 3 skills, based on hands-on experience deploying Databricks Apps in production.
databricks-app-python(6 files, +8.4KB)Critical Rules (SKILL.md):
/metricsendpoint requirement — gateway health-checks this endpointnode_modules/,__pycache__/,frontend/src/)Resource Management (2-app-resources.md):
valueFromYAML syntax (valueFrom.resource:instead of flatvalueFrom:)valueFromvsvaluefallback troubleshootingFramework Guidance (3-frameworks.md):
DATABRICKS_APP_PORTdetails per framework command/metricsendpoint, CDN blocking, never delete appsDeployment (4-deployment.md):
Lakebase (5-lakebase.md):
SECURITY LABEL FOR databricks_auth)PGPASSWORDempty workaround using SDK token generationTroubleshooting (SKILL.md):
databricks-app-apx(1 file, +385B)databricks-model-serving(1 file, +61B)system.ai.similarity_searchto built-in UC functions tableTest plan
valueFromYAML syntax matches current Databricks Apps runtime/api/2.0/apps/<app-name>)system.ai.similarity_searchis a valid built-in function