fix: improve apps deploy error when APP_NAME is missing#4820
Open
jamesbroadhead wants to merge 5 commits intodatabricks:mainfrom
Open
fix: improve apps deploy error when APP_NAME is missing#4820jamesbroadhead wants to merge 5 commits intodatabricks:mainfrom
jamesbroadhead wants to merge 5 commits intodatabricks:mainfrom
Conversation
The old error "accepts 1 arg(s), received 0" was unclear. The new message explains that APP_NAME is required, shows usage, mentions the databricks.yml alternative, and suggests an app name inferred from the current directory. Co-authored-by: Isaac Signed-off-by: James Broadhead <jamesbroadhead@gmail.com>
Co-authored-by: Isaac Signed-off-by: James Broadhead <jamesbroadhead@gmail.com>
Cover normal cases (app.yml, app.yaml, no config) and edge cases (deleted cwd) to verify graceful degradation. Co-authored-by: Isaac Signed-off-by: James Broadhead <jamesbroadhead@gmail.com>
Co-authored-by: Isaac Signed-off-by: James Broadhead <jamesbroadhead@gmail.com>
- Check os.WriteFile error return values - Use t.Chdir() instead of manual os.Chdir + cleanup - Remove unnecessary testChdir helper Co-authored-by: Isaac Signed-off-by: James Broadhead <jamesbroadhead@gmail.com>
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
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
accepts 1 arg(s), received 0error with a clear message explaining thatAPP_NAMEis requireddatabricks.ymlauto-detect alternative, and suggest an app name inferred from the current directory nameTest plan
go test ./cmd/apps/ -run TestMakeArgsOptionalpassesgo build ./cmd/apps/succeedsThis pull request was AI-assisted by Isaac.