Граф коммитов

50 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng 1c9a68133b [EngSys] ignore and remove .tshy directories
We currently don't have a use for them and they are safe to ignore based on the
answer in https://github.com/isaacs/tshy/issues/78#issuecomment-2203955286

***NO_CI***
2024-07-03 16:46:35 +00:00
Jeremy Meng 6bc0f6c42b
[EngSys] ignore temporary tshy build directory (#29669) 2024-05-10 19:39:26 +00:00
Maor Leger 4e7bca982c
[identity] AKS live tests (#28939)
### Packages impacted by this PR

@azure/identity

### Issues associated with this PR

Contributes to #26434

### Describe the problem that is addressed by this PR

Adds AKS managed identity integration tests
2024-03-21 15:18:47 -07:00
KarishmaGhiya f9892bb7d4
[Identity] Managed Identity test automation: Azure Functions and Webapps (#28554) 2024-03-14 02:44:52 +00:00
Matthew Podwysocki 3b785dc400
[core] Upgrade to ES-Modules for core (#26238)
### Packages impacted by this PR

- @azure/abort-controller
- @azure/core-auth
- @azure/core-client
- @azure-rest/core-client
- @azure/core-http-compat
- @azure/core-lro
- @azure/core-paging
- @azure/core-rest-pipeline
- @azure/core-sse
- @azure/core-tracing
- @azure/core-util
- @azure/core-xml
- @azure/logger
- @typespec/ts-http-runtime

### Issues associated with this PR


### Describe the problem that is addressed by this PR

This migrates the core packages from a hybrid of CJS and ESM to an ESM
solution using [`tshy`](https://github.com/isaacs/tshy). The core is now
ESM, implemented as a module, and projects using `tshy` to CommonJS and
ESM.

The ESM build targets we will target include:  
- ESM (Node)
- Browser
- React-Native
- Bun
- Deno

This will allow each system to pick up the correct output instead of
picking the browser bundle which has happened in the past. Currently,
our bun and deno support is strictly through npm compatibility and we
are not forking logic at this point for those runtimes.

In order to support ESM, `sinon` does not allow for ESM module mocking,
so we looked for an alterative in `vitest`. This PR also migrates all
core packages stated above from Mocha/Chai for Node and Mocha/Chai/Karma
for the browser to using `vitest` for all tests. Currently, the system
builds a test bundle which targets the correct files such as those
targeted for the browser, eg `log-browser.mts` becomes `log.js` in the
compiled output.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)

---------

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
Co-authored-by: Maor Leger <maorleger@users.noreply.github.com>
Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2024-02-20 17:42:23 +00:00
Patrick Hallisey b76acc8d8d
Add support for autorest preview pipeline (#28042)
Add required overload in LanguageSettings.ps1 to support code generation
from the [autorest.typescript -
preview](https://dev.azure.com/azure-sdk/internal/_build?definitionId=6415)
pipeline
2023-12-13 13:34:12 -08:00
amariwest-msft f001241f15
Add PauseOnStart Recording Option Swagger (#27361)
### Packages impacted by this PR

- communication-call-automation

### Issues associated with this PR

- StartRecording now accepts PauseOnStart.

### Describe the problem that is addressed by this PR

The pauseonstart call recording option was added using a new swagger
spec.

New swagger:
5b7321a923/specification/communication/data-plane/CallAutomation/preview/2023-01-15-preview/communicationservicescallautomation.json

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)

---------

Co-authored-by: Jeremy Meng <jeremy.ymeng@gmail.com>
2023-10-16 18:45:13 +00:00
Timo van Veenendaal 418a979e2f
[dev-tool] Create a symbolic link to recordings when running the proxy tool (#27144)
### Packages impacted by this PR

- `@azure-tools/dev-tool`

### Description

This is a quality-of-life change which makes inspecting recordings
easier. With the new asset sync flow, recordings are no longer stored in
the repo with each package. If you want to look at your recordings for
some reason (e.g. after re-recording to make sure you aren't leaking any
secrets), it takes a few extra steps to find them: navigate to the repo
root, look at the `.breadcrumb` file in the `.assets` folder, and then
use that to find the location of the recordings corresponding to your
package.

This PR improves that process by creating a symbolic link to the
recordings from each package, restoring the original flow.
2023-09-21 09:39:06 -07:00
Jeremy Meng 26ab6c14e9
[samples] Remove Expo from the appconfig React Native sample (#25327)
- Update README steps to remove Expo and use react-native directly
- Add a version with just bare react-native
- Remove the Expo version
2023-03-24 17:29:43 +00:00
Mary Gao 2d6f28bf1e
Update getstarted doc (#25318)
fixes https://github.com/Azure/azure-sdk-for-js/issues/25310
2023-03-21 20:27:33 +08:00
Jose Manuel Heredia Hidalgo aabe42dade
Setup cross language cadl compile (#24661)
This PR does the one-time setup needed to run cadl scripts to generate code. The documentation on how to use the scripts here: https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/Cadl-Project-Scripts.md#per-project-setup
2023-03-11 00:52:18 +00:00
Harsha Nalluru add3b60d3c
[Perf] Add profiling support to the perf framework (#24240)
Fixes https://github.com/Azure/azure-sdk-for-js/issues/14146

Validation:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2201082&view=results

## What's in the PR?
Adds two new options to add profiling support to the perf framework
```
  profile = "Set to true to profile the perf test. When set to true, `cpus` will be overriden to 1." (defaults to false)
  profile-filepath = "Used as the artifact path" (optional)
```
Counterpart in the tools repo
https://github.com/Azure/azure-sdk-tools/pull/5369

## Example generated profile
<img width="1125" alt="image"
src="https://user-images.githubusercontent.com/10452642/218958379-4c62386b-530a-4f3f-84bd-49d51d41bfd4.png">

---------

Co-authored-by: Jeff Fisher <jeffish@microsoft.com>
Co-authored-by: Timo van Veenendaal <me@timo.nz>
2023-02-20 20:25:55 -08:00
Mike Harder 5490311d03
Add *.env to .gitignore (#24079)
- Allow sample.env and test.env
- Fix typo in existing filename
2022-12-01 15:05:12 -08:00
Scott Beddall 312a78f7f5
Integrate Asset-Sync Features (#23405)
* updating create recording request

* first draft. need to integrate node tests and then reach out to harsha

* commiting prettier update

* repair ascension algo

* add initial assets.json. update gitignore.

* move textanalytics recordings. time to try the node tests!

* remaining recorder updates. properly setting the assets.json path now

* using a different version of the proxy to ensure that we include all the bugfixes from recently

* bunch of changes for RECORDING_ASSETS_PATH

* lint applied

* Update sdk/test-utils/recorder/src/utils/utils.ts

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>

* Update sdk/test-utils/recorder/src/utils/createRecordingRequest.ts

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>

* Update sdk/test-utils/recorder/src/utils/relativePathCalculator.browser.ts

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>

* Update sdk/test-utils/recorder/src/utils/utils.ts

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>

* Update sdk/test-utils/recorder/src/utils/utils.ts

* Update sdk/test-utils/recorder/src/utils/createRecordingRequest.ts

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>

* repair imports

* linting commit

* resolve failing node tests

* handle undefined set in environment variable

* commit recordings update now that the source has been updated

* fix pipeline

* if (!fs.existsSync(assetsPath)) return undefined;

* format

* fix lint

* Some refactors; calculate assets path in browser using existing environment variable

* Re-add second environment variable

* undo assets changes

Co-authored-by: Timo van Veenendaal <timov@microsoft.com>
Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2022-11-15 23:30:24 +00:00
Jeff Fisher 19ec69e865
[engsys] Upgrade generate-doc tool to use latest version of TypeDoc (#23523)
Also ported the script to TypeScript and simplified it a bit.
2022-10-20 12:20:26 -07:00
James Suplizio c448098b77
Add default .assets directory to .gitignore (#23466) 2022-10-10 11:32:44 -07:00
Daniel Jurek a2918619ae
Add ToC Generation script and wire up to docindex.yml (#19915)
* Add ToC Generation script and wire up to docindex.yml for testing

Add Docs-ToC.ps1

Remove eng/scripts/docs from .gitignore but keep filtering other docs/ folders

Also checkout packages-legacy.json in sparse checkout

Also check out docs-ref-mapping/

Use -toc-test branch for demo

Review feedback

Review feedback

Remove unnecessary comment

Undo working changes

Add extension point to update the ToC before output

Undo changes to demo set-daily-docs-branch-name.yml

Check for FileMetadata before accessing it

Add ability to artbitarily nest packages in the 'Other' service.

Add comments from review feedback

Add plugin nodes

* Revert unnecessary changes to eng/common

* Review feedback

* Remove automatic ToC generation from main

* Set-StrictMode

* Remove Release-DocsMsDocs.ps1

* Use original syntax
2022-03-01 07:46:36 -08:00
Jeremy Meng 43da702a02
[EventHubs] ignore the generated certs/ folder (#20287)
* [EventHubs] ignore the generated certs/ folder

It is re-generated in every build and used for mock-hub testing

* Revert "[EventHubs] ignore the generated certs/ folder"

This reverts commit 7fed0608fc.

* [engsys] ignore *.srl files

They are files created and used by OpenSSL.
2022-02-09 20:25:35 +00:00
Will Temple 323b40c26f
Ignore alternative code-workspace files. (#19779) 2022-01-11 15:05:11 -05:00
Yoseph Maguire e86368cb2b
Create Device Models Repository Client (#14863)
Create new package for Device Models Repository, see README for details.
2021-05-21 12:46:22 -07:00
Will Temple da64e0760d
Remove and ignore tsdoc-metadata.json (#14681) 2021-04-02 13:08:33 -07:00
Maor Leger 0cb47ee7a0
[KeyVault] - Enable node unit tests for KeyVault Administrator (#13230)
## What

- Enable Node unit tests for KV administration package
- Align our KV test-resources ARM template with dotnet's
- Add Managed HSM to ARM template
- Add script to enable Managed HSM from dotnet's script

## Why

We have lots of changes we want to make, but tests weren't currently runnable. 
Making the entire suite runnable seemed like something we'd want to do early 
before making behavior changes. Unfortunately there are some service integration 
issues we want to address before we can enable _all_ the tests so we decided to pend
the ones that need some extra TLC to get the suite running.

Aligning with dotnet on the ARM template allows us to easily add the Managed HSM 
bits from them and helps standardize what our template looks like across repos.

Finally, Managed HSM support is coming, so we might as well get the deployment correct
now.
2021-01-19 07:40:51 -08:00
Ben Broderick Phillips 1b5a5fec01
Elaborate on smoke test initialize logic in docs and script. Update .gitignore. (#11802)
* Elaborate on smoke test initialize logic in docs and script. Update .gitignore.

* Clarify NODE_PATH variable setting when running smoke tests locally

* Move smoke test .gitignore entries to git root
2020-10-15 13:41:36 -04:00
Deyaaeldeen Almahallawi 5f472ca826
ignore rush autoinstaller files (#11244) 2020-09-15 10:05:09 -04:00
Zoltan Varga 036e1bf6ca
Azure Digitaltwins SDK - API/Architectural board review (#10560)
Initial creation of Azure DigitalTwins SDK
2020-09-01 14:44:35 -07:00
Daniel Rodríguez b0e9149496
[KeyVault] Seems like this line isn't needed (#7383) 2020-02-13 15:06:46 -05:00
Daniel Rodríguez 16fdb6e2d6
`browser` folder moved to `dist-browser` (#7349) 2020-02-12 18:41:03 -08:00
Daniel Rodríguez b67506f0a5
[Recorder] soft-record (#7213)
This PR intends to add soft-record, a way to only record what hasn't changed.

To be able to check whether the tests have changed, we check whether a MD5 hash of the test function's source code has changed from the previous time a recording stored this MD5 to the current test execution.

Any new recording will store this MD5 into the recorded file. To only record the tests that have changed, the user must specify the environment variable TEST_MODE, with value "soft-record".

Fixes #5156
2020-02-11 15:19:53 -05:00
Jonathan Turner ae71adf59c
Add JS examples (#5538) 2019-10-15 05:51:12 +13:00
bsiegel 11134107c7
Clean up leftover files from onboarded libraries (#3683)
* Centralize gitignore rules

* Remove unneeded npmignores

* Remove old github metadata dirs

* Centralize vscode settings & remove editorconfigs

* Remove old travis & AzDevOps configs

* Use centralized prettierrc

* Use eslint everywhere, use centralized eslintrc

* Rush update
2019-07-05 14:46:20 -07:00
Daniel Rodríguez f669d396fa
Added types to the .gitignore (#3322)
We're using `types` in KeyVault's packages. We should ignore them.
Also, we're moving every package to have the types in this `types` folder. See: https://github.com/Azure/azure-sdk-for-js/pull/3329
2019-05-31 11:37:42 -04:00
Brandon Siegel 1e5a1a5b28 Renormalize line endings in Rush files 2019-05-08 12:43:32 -07:00
Harsha Nalluru 52e2c6ec4f
Update .gitignore - ignore browser coverage (#2593)
Ignore browser coverage and published test-results
- `test-results.*xml` (to handle both `test-results.xml` and `test-results.browser.xml`)
2019-04-30 13:18:07 -07:00
Brandon Siegel a2ad3a86d8 Initialize Rush repo 2019-04-29 11:14:28 -07:00
Mike Harder c078983702
Add client build scripts (#844) 2018-12-19 15:28:30 -08:00
Sergey Shandar 72b51a6505
address comments. 2018-10-25 09:59:01 -07:00
Sergey Shandar 5adbf7d305
ignore .js / .js.map files. 2018-10-24 14:53:52 -07:00
Sergey Shandar 80b1e5a940
generating .tgz files. 2018-10-24 11:24:49 -07:00
Dan Schulte d0784372be Merge branch 'master' into daschult/compute 2018-09-18 14:01:10 -07:00
Dan Schulte 936307c434 Ignore package-lock.json file 2018-09-18 13:58:11 -07:00
Dan Schulte 8314d439e8 Ignore js and js.map files in lib folders and bundle files 2018-09-18 13:55:58 -07:00
Dan Schulte 5a7aa1259a Merge branch 'master' into daschult/compute 2018-09-18 13:51:29 -07:00
Dan Schulte dc40a8b02b
Ignore cjs and esm folders 2018-09-18 13:42:19 -07:00
Dan Schulte 648bbf98f4
Ignore cjs and esm folders 2018-09-18 13:41:02 -07:00
Dan Schulte a245f86148 Ignore every node_modules folder 2018-09-18 13:16:16 -07:00
Dan Schulte 9b7927d580 Remove packages from gitignore 2018-09-18 13:14:42 -07:00
Dan Schulte b0e7809554 Stop ignoring packages folder 2018-09-18 10:59:55 -07:00
Dan Schulte 1b162dbd30 Changes based on PR comments 2018-08-27 14:53:45 -07:00
Dan Schulte f30dc3098e Initial commit for copying files from azure-sdk-for-node 2018-08-27 13:58:16 -07:00
Microsoft GitHub User 7a4623835a Initial commit 2017-10-25 11:44:09 -07:00