Skip to content

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

Merged
timovv merged 26 commits intoAzure:mainfrom
timovv:unified-recorder/18227-unified-recorder-in-template
Jan 10, 2022
Merged

[Unified Recorder] Add sample unified recorder tests to template#18817
timovv merged 26 commits intoAzure:mainfrom
timovv:unified-recorder/18227-unified-recorder-in-template

Conversation

@timovv
Copy link
Copy Markdown
Member

@timovv timovv commented Nov 25, 2021

@timovv timovv requested a review from HarshaNalluru November 25, 2021 00:03
@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
createPipelineFromOptions,
InternalPipelineOptions
createPipelineFromOptions
} from "@azure/core-http";
Copy link
Copy Markdown
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

"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
Copy Markdown
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
Copy Markdown
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
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