Repository navigation
Conversation
Co-authored-by: Isaac <no-reply@databricks.com>
Regression test report ✅Commit: Selected 1 changed tests (limit=20, 0 not selected) 2 tests: regression=0 unreleased=0 coverage=2 failing=0
|
✅ Integration test reportCommit: 8925d24
Top 3 slowest tests (at least 2 minutes):
|
There was a problem hiding this comment.
Automated review at 8925d24. Each finding was verified against the code.
No blocking issues found. 1 non-blocking comment(s) below.
This PR adds the pipeline_empty_root_path acceptance test. It records, under a Badness note, that bundle generate pipeline writes root_path: src/pl without creating the directory, so bundle validate then fails. The test is small and the recorded output matches the current behavior on Linux and macOS. The one thing to check is the Windows Repls entry: the description says it was copied from app_not_yet_deployed, but no test.toml exists there, and the op name it matches may not be what current Go reports.
| Badness = "For a pipeline whose root_path is an empty workspace folder, generate writes root_path: src/pl but does not create src/pl, so the generated bundle fails validate with 'stat src/pl: no such file or directory'. The generated config should validate." | ||
|
|
||
| # Windows reports the missing directory with a different error. | ||
| [[Repls]] |
There was a problem hiding this comment.
[nice to have] The description says this Repl was copied from app_not_yet_deployed, but that test has only script and output.txt, so nothing in the repo backs this exact text. The error comes from translateDirectoryPath calling os.DirFS(...).Stat. That rewrites only the path and keeps the op name from Go's Windows stat. For a missing path, current Go falls through from GetFileAttributesEx to CreateFile and reports CreateFile src/pl: .... If it does, this pattern never matches and the Windows run differs from the golden. Did the Windows task test cell run this test? If not, could you loosen the pattern to something like (GetFileAttributesEx|CreateFile) src/pl: The system cannot find the (path|file) specified\.?
Sankalp-Mittal
left a comment
There was a problem hiding this comment.
[AI Generated] Review by review-factory (Claude Sonnet 5.5 + Claude Opus 5.5 + Claude Opus 5.5, cross-verified). Only points the reviewers agreed on are posted.
No issues found.
Changes
Adds
acceptance/bundle/generate/pipeline_empty_root_path: a pipeline whoseroot_pathis an empty workspace folder.bundle generate pipelinewritesroot_path: src/plinto the config but creates nosrc/pldirectory, becauseFlushToDiskonly creates parent directories of downloaded files. The generated bundle then failsbundle validatewithstat src/pl: no such file or directory. The test records this behavior with a Badness note; the fix is the stacked PR (#8289).This is the pipeline twin of the app bug fixed in #8244, where it was raised as a follow-up in review.
Why
A new small test directory instead of extending
lakeflow_pipelines: that test mocksworkspace/listto always return files, so it cannot model an empty folder. The new test runs against the testserver's real workspace and pipelines handlers, takes about 0.1s per variant, and has the usualDMSmatrix fromacceptance/bundle/generate.This PR was created by analyzing coverage gaps.
Coverage: http://go/cli/dashboard/coverage/file/cmd/bundle/generate/pipeline.go (
NewGeneratePipelineCommand, theRootPath != ""branch around lines 91-96).Tests
The new test passes locally with both DMS variants. It records the current wrong behavior.
Gaps and risks
workspace listreturning no objects.app_not_yet_deployed.🤖 AI agent (claude-opus-5-5, isaac_claude)
This pull request and its description were written by Isaac.