Skip to content
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

[Unified Recorder] Add sample unified recorder tests to template #18817

Merged

Conversation

@timovv timovv requested a review from a team as a code owner November 25, 2021 00:03
@ghost ghost added the EngSys This issue is impacting the engineering system. label Nov 25, 2021
@timovv timovv force-pushed the unified-recorder/18227-unified-recorder-in-template branch from 04daaec to 1eff9e6 Compare December 7, 2021 00:05
@timovv timovv marked this pull request as draft December 7, 2021 00:06
@timovv
Copy link
Member Author

timovv commented Dec 7, 2021

Running into this issue when creating recordings in browser:

image

To reproduce, try running TEST_MODE=record rushx test:browser in the template package.

Tried to add the dotenv shim to the shared rollup config (see the PR changes) to no avail, but might be doing something wrong. @HarshaNalluru said you might be able to weigh in, @witemple-msft?

@timovv timovv force-pushed the unified-recorder/18227-unified-recorder-in-template branch from 1eff9e6 to eee8f21 Compare December 9, 2021 00:09
@timovv
Copy link
Member Author

timovv commented Dec 9, 2021

Still not quite ready, some tests aren't passing on the browser. Going to take another look tomorrow.

@timovv timovv force-pushed the unified-recorder/18227-unified-recorder-in-template branch from 19f2a94 to ff90778 Compare December 10, 2021 00:01
Copy link
Member

@jeremymeng jeremymeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should any new recordings be removed now that we don't have storage tests?

@timovv
Copy link
Member Author

timovv commented Dec 15, 2021

Yup, thought I'd removed them already! Think I got caught by #19045 again. I'll fix it up.

@HarshaNalluru HarshaNalluru mentioned this pull request Dec 15, 2021
97 tasks
Copy link
Member

@witemple-msft witemple-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing my red review.

@timovv timovv added the test-utils-recorder Label for the issues related to the common recorder label Dec 15, 2021
bearerTokenAuthenticationPolicy,
createPipelineFromOptions,
InternalPipelineOptions
createPipelineFromOptions
} from "@azure/core-http";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR, I didn't realize we are still using core-http in the template. I think we should update to corev2. Filed #19447 to track

@@ -39,17 +39,17 @@
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
"generate:client": "autorest --typescript ./swagger/README.md",
"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 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}/*.spec.js\"",
"integration-test:browser": "dev-tool run test:browser",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev-tool run test:browser is a different script than the test:browser in line 48 right? Not a big deal but I was originally confused thinking this would end up in an infinite loop of "test:browser" -> "integration-test:browser" -> "test:browser".

I wonder if we can have a different name in dev-tool?

Copy link
Member

@joheredi joheredi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great! And changes to migrate an existing package seem straight forward which is great! Looking forward to try this out in a few packages once everything is merged in a single recorder package!

@timovv timovv enabled auto-merge (squash) January 10, 2022 22:00
@timovv timovv merged commit 3d3914b into Azure:main Jan 10, 2022
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-js that referenced this pull request May 10, 2022
Review request for Microsoft.ContainerService to add version 2022-04-02-preview (Azure#18900)

* Adds base for updating Microsoft.ContainerService from version preview/2022-03-02-preview to version 2022-04-02-preview

* Updates readme

* Updates API version in new specs and examples

* update readme (Azure#18714)

* add NetworkPluginMode to ManagedCluster (Azure#18735)

* add NetworkPluginMode to ManagedCluster

* add overlay example

* remove example

* only keep overlap as option

* Add properties for apiserver-vnet-integration (Azure#18705)

* Update for AKS trusted access feature (Azure#18708)

* Update for AKS trusted access feature

* fixup! Update for AKS trusted access feature

* fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Update for AKS trusted access feature

* OSSKU supports Windows options (Azure#18706)

* OSSKU supports Windows options

* Add example Create Agent Pool with Windows OSSKU

* Improve description about the default value

* Improve the description to clarify

* Improve description about default Windows OSSKU

* add storageProfile into managedcluster (Azure#18817)

Signed-off-by: Ji An Liu <jiliu8@microsoft.com>

* capatalize NetworkPluginMode name (Azure#18884)

* capatalize NetworkPluginMode name

* capitalize in description

* aks: add enableCustomCATrust in v20220402-preview api-version (Azure#18830)

* aks: add enableCustomCATrust in v20220402-preview api-version

* aks: add description of CustomCATrust

* aks: fix typo, add DaemonSet to custom words list

Co-authored-by: Mikolaj Umanski <mumanski@microsoft.com>

* [AKS] Update on trustedaccess resource (Azure#18947)

* Add paging for trusted access

* update async state

* fixup! update async state

* Use enum for TrustedAccessRoleBinding's ProvisioningState (Azure#18950)

Co-authored-by: Tyler Lloyd <tyler.lloyd@microsoft.com>
Co-authored-by: gossion <guwe@microsoft.com>
Co-authored-by: Dong Liu <doliu@microsoft.com>
Co-authored-by: Shiqian Tao <62196586+ShiqianTao@users.noreply.github.com>
Co-authored-by: Ji'an Liu <jiliu8@microsoft.com>
Co-authored-by: Mikołaj Umański <mik.umanski@gmail.com>
Co-authored-by: Mikolaj Umanski <mumanski@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system. test-utils-recorder Label for the issues related to the common recorder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Unified Recorder] Use unified recorder in the template SDK tests
7 participants