-
Notifications
You must be signed in to change notification settings - Fork 39
Fix flaky integration tests and add test logging #70
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
Merged
kartikgupta-db
merged 29 commits into
databricks:main
from
kartikgupta-db:fix-integration-tests
Aug 24, 2022
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
db4f8d8
integration test fixes
kartikgupta-db 498c090
retry job with yarn reinstall
kartikgupta-db b7cffa7
retry job with yarn reinstall
kartikgupta-db 14fbe2e
retry job with yarn reinstall
kartikgupta-db dfca6fe
change retry
kartikgupta-db 65d48fb
change retry
kartikgupta-db cf1a7c9
change retry
kartikgupta-db 866f8f5
screenshotter
kartikgupta-db 00e9a59
Merge branch 'main' into fix-integration-tests
kartikgupta-db e80c88e
remove console.log
kartikgupta-db b9a62df
upload test logs
kartikgupta-db 875f2a0
always upload logs
kartikgupta-db b2e53e5
better test log naming
kartikgupta-db 46d1149
remove vscode binary before integration test
kartikgupta-db f1cfafa
Path p-cancelable
kartikgupta-db 8e1406a
Revert "Path p-cancelable"
kartikgupta-db 064b7fa
Got patch
kartikgupta-db cda1e7d
Revert "Got patch"
kartikgupta-db 1bc3d90
added async lock
kartikgupta-db 1280fc4
don't fail all test when some environments fail
kartikgupta-db 946850b
don't fail all test when some environments fail
kartikgupta-db 83bf8ae
don't fail all test when some environments fail
kartikgupta-db 5c64b41
don't fail all test when some environments fail
kartikgupta-db 1fefe50
don't fail all test when some environments fail
kartikgupta-db 7518b4a
remove async lock
kartikgupta-db 0f75813
typo fix
kartikgupta-db 2fe46b3
remove 2 second wait
kartikgupta-db e32fc3a
fix periodic runner
kartikgupta-db 3d4fe01
Merge branch 'main' into fix-integration-tests
kartikgupta-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
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 |
|---|---|---|
|
|
@@ -12,4 +12,5 @@ out/ | |
| !.yarn/sdks | ||
| !.yarn/versions | ||
| **/coverage/ | ||
| **/.nyc_output/ | ||
| **/.nyc_output/ | ||
| .databricks/** | ||
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,2 @@ | ||
| **/logs/** | ||
| bin/** |
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,40 @@ | ||
| import Time, {TimeUnits} from "@databricks/databricks-sdk/dist/retries/Time"; | ||
|
|
||
| export interface RunFunctionDetails { | ||
| fn: () => Promise<void>; | ||
| cleanup?: () => Promise<void>; | ||
| every: Time; | ||
| timer?: NodeJS.Timer; | ||
| } | ||
|
|
||
| export class PeriodicRunner { | ||
| private runFunctions: RunFunctionDetails[] = []; | ||
|
|
||
| runFunction(runFunctionDetails: RunFunctionDetails) { | ||
| this.runFunctions.push(runFunctionDetails); | ||
| return this; | ||
| } | ||
|
|
||
| start() { | ||
| this.runFunctions.forEach((runFunction, idx) => { | ||
| this.runFunctions[idx].timer = setInterval( | ||
| runFunction.fn, | ||
| runFunction.every.toMillSeconds().value | ||
| ); | ||
| }); | ||
| } | ||
|
|
||
| async stop() { | ||
| this.runFunctions.forEach((runFunction) => { | ||
| if (runFunction.timer) { | ||
| clearInterval(runFunction.timer); | ||
| } | ||
| }); | ||
|
|
||
| this.runFunctions.forEach(async (runFunction) => { | ||
| if (runFunction.cleanup) { | ||
| await runFunction.cleanup(); | ||
| } | ||
| }); | ||
| } | ||
| } |
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
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.
Uh oh!
There was an error while loading. Please reload this page.