Repository navigation
Write a JUnit XML report from databricks pipelines test #7299
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
Open
tharunbhuk-db
wants to merge
9
commits into
tharun/pipelines-test-pr2-output
Choose a base branch
from
tharun/pipelines-test-pr3-junit
base: tharun/pipelines-test-pr2-output
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
34b6330
Write a JUnit XML report from databricks pipelines test
tharunbhuk-db 5c6e0a1
Name pipelines test JUnit cases relative to the project folder, as py…
tharunbhuk-db 9c1ba5d
Replace an older pipelines test JUnit report when a flag is invalid
tharunbhuk-db 88bd03f
Replace an older pipelines test JUnit report when --resume names an u…
tharunbhuk-db f360375
Cover the JUnit report of a passing pipelines test run
tharunbhuk-db 5f18da5
Link the pipelines test changelog entries to #7299
tharunbhuk-db 9245151
Test each pipelines test JUnit behavior once and use /Workspace/Users…
tharunbhuk-db f61716e
Say that pipelines test JUnit names keep the snapshot path with works…
tharunbhuk-db 7c61f68
Accept the Windows error text in the pipelines test JUnit report case
tharunbhuk-db File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * Add `--junit-xml` to `databricks pipelines test`, which writes the test results as a JUnit XML report. ([#7299](https://github.com/databricks/cli/pull/7299)) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="1234" tests="1" failures="0" errors="1" skipped="0"> | ||
| <testcase name="pipelines test"> | ||
| <error message="unsupported pytest argument "-x": only -k and -m are supported">unsupported pytest argument "-x": only -k and -m are supported</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="1234" tests="1" failures="0" errors="1" skipped="0"> | ||
| <testcase name="pipelines test"> | ||
| <error message="--junit-xml cannot be used with --no-wait because no results are available when the command returns">--junit-xml cannot be used with --no-wait because no results are available when the command returns</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="4" failures="1" errors="1" skipped="1"> | ||
| <testcase classname="tests.test_orders" name="test_valid_order" time="1.000"></testcase> | ||
| <testcase classname="tests.test_orders" name="test_backfill_fails" time="1.000"> | ||
| <failure message="AssertionError: assert 100 == 150">AssertionError: assert 100 == 150</failure> | ||
| </testcase> | ||
| <testcase classname="tests.test_orders" name="test_legacy_format_skipped" time="1.000"> | ||
| <skipped></skipped> | ||
| </testcase> | ||
| <testcase classname="tests.test_orders" name="test_fixture_error" time="1.000"> | ||
| <error message="RuntimeError: fixture 'orders' setup failed">RuntimeError: fixture 'orders' setup failed</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="4" failures="0" errors="3" skipped="0"> | ||
| <testcase classname="tests.test_compute" name="test_small_order" time="1.000"></testcase> | ||
| <testcase classname="tests.test_compute" name="test_crash_on_large_order"> | ||
| <error message="no result received"></error> | ||
| </testcase> | ||
| <testcase classname="tests.test_compute" name="test_last_order"> | ||
| <error message="no result received"></error> | ||
| </testcase> | ||
| <testcase name="update [UUID]"> | ||
| <error message="RUN INCOMPLETE: the update failed before all test results were received.">RUN INCOMPLETE: the update failed before all test results were received.
update [UUID] is FAILED: ComputeTerminatedException: Compute terminated unexpectedly.</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="3" failures="1" errors="1" skipped="0"> | ||
| <testcase classname="tests.test_late_failure" name="test_backfill_fails" time="1.000"> | ||
| <failure message="AssertionError: assert 100 == 150">AssertionError: assert 100 == 150</failure> | ||
| </testcase> | ||
| <testcase classname="tests.test_late_failure" name="test_breaks_update_after_summary" time="1.000"></testcase> | ||
| <testcase name="update [UUID]"> | ||
| <error message="update [UUID] is FAILED: ResultDeliveryException: Test results could not be verified.">update [UUID] is FAILED: ResultDeliveryException: Test results could not be verified.</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="1" failures="0" errors="1" skipped="0"> | ||
| <testcase name="update [UUID]"> | ||
| <error message="No tests were collected.">No tests were collected.</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="1" failures="0" errors="0" skipped="0"> | ||
| <testcase classname="tests.test_orders" name="test_valid_order" time="1.000"></testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="2" failures="0" errors="1" skipped="0"> | ||
| <testcase classname="tests.test_delivery" name="test_breaks_update_after_summary" time="1.000"></testcase> | ||
| <testcase name="update [UUID]"> | ||
| <error message="update [UUID] is FAILED: ResultDeliveryException: Test results could not be verified.">update [UUID] is FAILED: ResultDeliveryException: Test results could not be verified.</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="1" failures="0" errors="1" skipped="0"> | ||
| <testcase name="pipelines test"> | ||
| <error message="reference does not exist: ${var.missing}">reference does not exist: ${var.missing}</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
8 changes: 8 additions & 0 deletions
8
acceptance/pipelines/test/run-control/out.not-test-update.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="1" failures="0" errors="1" skipped="0"> | ||
| <testcase name="pipelines test"> | ||
| <error message="update [UUID] is not a test update; pass the update ID that pipelines test printed">update [UUID] is not a test update; pass the update ID that pipelines test printed</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="" tests="1" failures="0" errors="1" skipped="0"> | ||
| <testcase name="pipelines test"> | ||
| <error message="outside a project, identify the pipeline with --pipeline-id">outside a project, identify the pipeline with --pipeline-id</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuites> | ||
| <testsuite name="my_pipeline" tests="2" failures="0" errors="2" skipped="0"> | ||
| <testcase classname="tests.test_slow" name="test_hang_on_lock"> | ||
| <error message="no result received"></error> | ||
| </testcase> | ||
| <testcase name="update [UUID]"> | ||
| <error message="RUN INCOMPLETE: the update was canceled before all test results were received.">RUN INCOMPLETE: the update was canceled before all test results were received.
update [UUID] is CANCELED</error> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| RecordRequests = false | ||
|
|
||
| # Replace error message from windows | ||
| [[Repls]] | ||
| Old = 'open missing/report.xml: The system cannot find the path specified\.' | ||
| New = 'open missing/report.xml: no such file or directory' |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking: the "an older report is replaced" check now appears in five scripts: arguments, submit-error, run-control, outside, and an invalid project. Each shows the same thing, that a failure before the update still rewrites the report. One case before the request and one at submit would cover it, and the other goldens could go.