-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Event hubs] Separate event hubs tests into public and internal and enable min-max tests #12798
[Event hubs] Separate event hubs tests into public and internal and enable min-max tests #12798
Conversation
@richardpark-msft @chradek Live min-max tests passed woohoo!! https://dev.azure.com/azure-sdk/internal/_build/results?buildId=648059&view=logs&j=458fae0f-1dd6-5242-ab00-2d189819d1f1 |
/azp run js - eventhubs-client - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
sdk/eventhub/event-hubs/package.json
Outdated
@@ -58,7 +58,7 @@ | |||
"extract-api": "tsc -p . && api-extractor run --local", | |||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | |||
"integration-test:browser": "karma start --single-run", | |||
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-esm/test/*.spec.js dist-esm/test/**/*.spec.js", | |||
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace dist-esm/test/public/*.spec.js dist-esm/test/internal/*.spec.js dist-esm/test/public/**/*.spec.js dist-esm/test/internal/**/*.spec.js", |
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.
@willmtemple - tell me that someday we'll make devtool compose this line (or just invoke devtool directly).
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.
For metrics-advisor we are using devtool
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.
@richardpark-msft What about something like dev-tool run-default integration-test:node
that would be able to run a standard default configuration?
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.
Ultimately my hope is that this can be supported in Rush, since it seems hacky to do such a thing in dev-tool.
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.
Thanks for working on this @KarishmaGhiya! Left some minor comments.
sdk/eventhub/event-hubs/test/public/eventHubConsumerClient.spec.ts
Outdated
Show resolved
Hide resolved
sdk/eventhub/event-hubs/test/public/utils/testInMemoryCheckpointStore.ts
Outdated
Show resolved
Hide resolved
sdk/eventhub/event-hubs/test/public/utils/testInMemoryCheckpointStore.ts
Show resolved
Hide resolved
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.
Looks good and thanks for doing this. @chradek seems to have the most amount of feedback so I'll defer to him on giving a final approval.
/azp run js - eventhubs-client - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Looks good to me, thanks for doing this work! I triggered a live test run because I'm superstitious and need to see those green check marks, but once that finishes (and passes) ship it!
/azp run js - eventhubs-client - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Hello @KarishmaGhiya! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This pull request is protected by Check Enforcer. What is Check Enforcer?Check Enforcer helps ensure all pull requests are covered by at least one check-run (typically an Azure Pipeline). When all check-runs associated with this pull request pass then Check Enforcer itself will pass. Why am I getting this message?You are getting this message because Check Enforcer did not detect any check-runs being associated with this pull request within five minutes. This may indicate that your pull request is not covered by any pipelines and so Check Enforcer is correctly blocking the pull request being merged. What should I do now?If the check-enforcer check-run is not passing and all other check-runs associated with this PR are passing (excluding license-cla) then you could try telling Check Enforcer to evaluate your pull request again. You can do this by adding a comment to this pull request as follows: What if I am onboarding a new service?Often, new services do not have validation pipelines associated with them, in order to bootstrap pipelines for a new service, you can issue the following command as a pull request comment: |
8a216d0
to
e9b709f
Compare
5ab8070
to
b1fc046
Compare
Max tests pass, min fails - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=698908&view=logs&j=458fae0f-1dd6-5242-ab00-2d189819d1f1 |
For detailed information on what we are doing in mim-max testing read this blog - https://devblogs.microsoft.com/azure-sdk/testing-semver-dependency-ranges/
Segregate the test files into internal and public folders. Code separation done where required to increase the coverage for min-max tests.
Enable Min max testing and solve any complications with it
Ensure the number of tests run in min-max = no of tests in the public folder
Min Max tests pass - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=698908&view=logs&j=9c8a71a2-d309-50a1-ebfc-15dfea2fe8ca
After merging - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=699877&view=logs&j=38753cb9-b155-5978-2d3f-2d89d306e985