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

1245 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Meng c6dbe7ef23
[EngSys] upgrade dep dependency `sinon` version to `^17.0.0` (#27601) 2023-11-02 17:14:17 +00:00
EmmaZhu-MSFT 79a6000fb3
Enable file OAuth test cases (#27627)
### Packages impacted by this PR


### Issues associated with this PR


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


### 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)
2023-11-02 12:09:23 +08:00
EmmaZhu-MSFT b0a37f9902
[Storage]Update release version (#27615)
### Packages impacted by this PR


### Issues associated with this PR


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


### 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)
2023-11-01 11:09:02 +08:00
EmmaZhu-MSFT d5c6a7a446
Upgrade storage packages versions (#27603)
### Packages impacted by this PR


### Issues associated with this PR


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


### 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)
2023-10-31 15:33:36 +08:00
Jeremy Meng 09111131ef [EngSys] Increment minimum supported node version to v18
***NO_CI***

- React to @types/node changes
- Fix eslint-plugin tests
2023-10-30 21:01:37 +00:00
Jeremy Meng e99100596a
[storage] update code coverage config files (#27513)
Some build output file paths in code coverage config are now out-dated:

- shared policies are now from storage-blob so they are no longer needed
in `exclude` list.
- output files for queue are now under dist-esm/storage-queue

This PR updates these config files to have correct paths.
2023-10-26 13:43:24 -07:00
EmmaZhu-MSFT 19d46b727b
Rerecord storage cases (#27127)
### Packages impacted by this PR


### Issues associated with this PR


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


### 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: Timo van Veenendaal <timov@microsoft.com>
Co-authored-by: Harsha Nalluru <sanallur@microsoft.com>
2023-10-26 16:45:35 +08:00
Ben Broderick Phillips 2cefbc69f5
Set min tls version for storage live tests (#27526) 2023-10-24 16:48:39 -04:00
Jeremy Meng 4371e976b1 [engsys] replace dev dependency `nyc` with `c8`
***NO_CI***

The combination of `nyc` + `esm` is broken in latest versions of
NodeJS (https://github.com/istanbuljs/nyc/issues/1530#issuecomment-1773403365).
Since `esm` package is no longer actively maintained and its repo is archived,
it's less likely that the issue will be fixed soon.

This change switches to use another code coverage tool `c8` which is not
affected. `c8` respects `.nycrc` config files so those are not renamed.
2023-10-23 17:08:26 -04:00
Jeremy Meng 6d7f6359cb [engsys] update dev dependency `typescript` version to `~5.2.0`
***NO_CI***

- Upgrade typedoc too as older version only supports TypeScript 5.0
2023-10-23 14:32:05 -04:00
Deyaaeldeen Almahallawi 72d460d5ba Use dev-tool bundle in arm libraries ***NO_CI*** 2023-10-16 21:03:26 +00:00
Jeremy Meng c65d843a30 Increment minimum supported node version to 16
***NO_CI***

- update engine.node to >=16.0.0 in package.json
- update @types/node version to ^16.0.0
- update dev-tool sample's MIN_SUPPORTED_NODE_VERSION to 16
- update eslint-plugin's rules and tests related to engine.node version
- remove TextEncoder and TextDecoder stubs as they are now on global object
- fix tests compiler error due to better typings in v16
- update some README files to not reference version like 14.x.x
2023-10-09 21:09:54 +00:00
kazrael2119 ab391b646b
[mgmt] update quick-start link in changelog (#27260)
https://github.com/Azure/azure-sdk-for-js/pull/27223#discussion_r1338094846
2023-09-27 17:51:50 +08:00
Jeremy Meng b2dfb59d59 [test] upgrade dev dependency `mocha` to `^10.0.0`
- along with it, `@types/mocha` version to `^10.0.0`
- add `esm` dev dependency as they are used, but not explicitly list
- use dev-tool run command for test scripts as much as possible
- fix test issue caused by Mocha behavior change around test name
- move `import "chai/register-should"` to mocha -r command line option for core
  http tests

***NO_CI***
2023-09-26 18:54:14 +00:00
Deyaaeldeen Almahallawi e95422bbd0 Fix up Azure dependencies ***NO_CI*** 2023-09-22 18:38:37 +00:00
Jeremy Meng 431a3c3502
[EngSys] upgrade dev dependency `mocha` to `^10.0.0` for some packages (#27019)
- bump `mocha` version
- update dev-tool test commmand to add
`TS_NODE_COMPILER_OPTIONS='{"module":"commonjs"}'` for TS input
- update dev-tool test command to apply a Mocha workaround of requiring
`esm` for ESM JS input
- add missing `cross-env` or `esm` dev dependencies
- adjust some test's import of `http` and `https`.
- update dependency testing script
2023-09-15 11:09:31 -07:00
Jeremy Meng b6fe0179fd
[test] disable code coverage temporarily (#27129)
Latest NodeJS versions broke nyc. This PR disables it temporarily.

https://github.com/istanbuljs/nyc/issues/1530

An workitem is logged to track re-enabling it after the issue is
resolved.

https://github.com/Azure/azure-sdk-for-js/issues/27128
2023-09-15 09:22:01 -07:00
Jeremy Meng ddb0950e0d
[dev-tool] add a `--no-test-proxy` option to run test commands (#26991)
It is desirable to centralize our NPM test scripts so that we can change
common options easily. Currently test-proxy is always launched, which
isn't useful for packages (e.g., core) that don't have recorded tests.

This PR adds an opt-in option to not launch test-proxy when running
tests.


### Packages impacted by this PR
`@azure/dev-tool`
2023-09-01 11:17:45 -07:00
Jeremy Meng 56d2330abe [EngSys] add `ts-node` dev dependencies to rush projects
***NO_CI***

Most of our packages, if not all, have dev dependency on `ts-node` either
directly (`mocha --require ts-node/register`) or indirectly via dev-tool (`run
test:node-ts-input`). Currently tests are running fine because mocha is able to
resolve ts-node currently. It may fail in other cases though (e.g., after
migrating a package to ESM).

This ensures `ts-node@^10.0.0` and `types/node` are included for our rush
packages.
2023-08-23 14:36:24 -07:00
Azure SDK Bot d7330b335d
Post release automated changes for storage releases (#26913)
Post release automated changes for azure-arm-storage
2023-08-23 20:49:22 +08:00
Jeremy Meng 53ed551880
[storage] port pagenate deletion support from storage/stable branch (#26899)
Port PR https://github.com/Azure/azure-sdk-for-js/pull/26730

- port blob changes
- port file-datalake changes
2023-08-23 19:53:53 +08:00
kazrael2119 7ebe33ec68
storage release (#26737)
https://github.com/Azure/sdk-release-request/issues/4388
2023-08-21 16:17:03 +08:00
Jeremy Meng d9bfd12b75
[storage-file-share] update core-util version to ^1.4.0 (#26689)
as we have bumped core-util minor version, v1.3.3 no longer exists
2023-08-02 12:49:34 -07:00
Jeremy Meng 8e9d3bb0d4
[storage-file-share] Fix DirectoryClient `exists` test (#26640)
Two tests are not awaiting on `dirClient.exists()` calls, which some
times caused weird test failure probably due to different timing in
async calls where test recorder couldn't find recording for some tests.

This PR adds await for the two calls.
2023-08-01 15:26:39 -07:00
Jeff Fisher 82ab59cac0
[storage-file-share] Fix empty continuation token with list methods (#26676)
### Packages impacted by this PR

`@azure/storage-file-share`

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

When the empty string was passed as a continuationToken to the `byPage`
method of any `list` operation, the constructed url would have an empty
marker parameter `&marker=&`.

This was causing issues with SharedKey authentication since we now share
the same credential signing logic as `storage-blob` and the
implementation of `getURLQueries` in storage-blob ignores query
parameters without a value:

b4e1a63cd2/sdk/storage/storage-blob/src/utils/utils.common.ts (L371)

However, the previous copy of this method in `storage-file-share` did
not:

b4e1a63cd2/sdk/storage/storage-file-share/src/utils/utils.common.ts (L306)

Notice the missing `&& lastIndexOfEqual < value.length - 1` in the
second implementation.

### 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?

While it is possible to change the way storage-blob does this signing to
match storage-file-share, given that storage-blob is a far more popular
package, there is considerable risk to changing behavior there.

Since existing storage-file-share customers (such as Storage Explorer)
may be already passing the empty string today, there is a strong desire
to maintain that contract.

Rather than diverge the signing logic around SharedKeyCredential again,
I believe the least invasive fix is to have the list methods in
storage-file-share ignore the empty string as demonstrated in this PR.
2023-08-01 11:18:07 -07:00
Jeremy Meng 31233a4a7f
[storage] port accountName from SAS connect string support from storage/stable (#26672)
Port PR https://github.com/Azure/azure-sdk-for-js/pull/26159

- port source and test change for blob

- update one negative test. We used to throw an error when splting an
undefined `parsedUrl.pathname` in `getAccountNameFromUrl`. In core v2 we
changed to use `URL` instead of `URLBuilder`. `parsedUrl.pathname` is
now an empty string, an empty `accountName` is returned instead of error
thrown.

- duplicate source change for other storage package as we currently are
doing for internal util methods.
2023-07-31 15:35:51 -07:00
Jeremy Meng 17e88fa2a7
[Storage] update versions and CHANGELOG entries (#26590)
- ensure service versions are latest
- copy over CHANGELOG entries from storage/stable branch
2023-07-31 14:23:10 -07:00
Jeremy Meng 0d9f89ac90
[engsys] upgrade dev dependency `sinon` and `@types/sinon` (#26622)
- update `sinon` version to `^15.0.0`. The breaking changes does not
affect our usages.
- upgrade `@types/sinon` to `^10.0.0`. This reveals test issue where
mocked tokens are not compatible with `AccessToken`. This PR fixes the
tests too.
2023-07-27 09:54:37 -07:00
Jeremy Meng ceb875078b
[storage] port listHandles access rights support from storage/stable (#26556)
Port PR https://github.com/Azure/azure-sdk-for-js/pull/25674

- update swagger and re-generate
- port test changes
- port source changes
2023-07-21 17:30:58 -07:00
Jeremy Meng 80c93bc590
[storage] port file OAuth and trailing dots support from storage/stable branch (#26318)
Port PR https://github.com/Azure/azure-sdk-for-js/pull/25005

- port code
- port tests
- add recordings for trailing dots tests
- add recordings for OAuth tests
2023-07-20 17:39:03 -07:00
Jeremy Meng 19a005a02c
[storage] port bug fix PR #25516 from storage/stable (#26537)
- port fix PR https://github.com/Azure/azure-sdk-for-js/pull/25516
2023-07-20 16:56:05 -07:00
Jeremy Meng f0ff00f1c4
[storage] Port PR #26441 from storage/stable (#26539)
- port PR https://github.com/Azure/azure-sdk-for-js/pull/26441
2023-07-20 16:51:33 -07:00
Jeremy Meng f65ac8c6aa
[storage] port HNS permission support from storage/stable (#26563)
Port PR https://github.com/Azure/azure-sdk-for-js/pull/25675

- update blob service version to 2023-01-03
- add "appendBlock - append large block" test
- port file-datalake source changes
- port file-datalake tests and add recordings
2023-07-20 16:49:29 -07:00
Jeremy Meng f230674c8e
[Storage] add re-exports for conveniences (#26567)
We used to re-export types, or have copies of same types from each
storage package so customers have the conveniences of not importing them
from another package. This PR adds back some missing types that were
exported.
2023-07-20 16:48:49 -07:00
Jeremy Meng 9c9c709d58
[Storage] Port encryption context support from storage/stable branch (#26553)
Port PR https://github.com/Azure/azure-sdk-for-js/pull/25094

- update swagger and re-generate
- update models
- port tests
- port product source changes
- add recordings for new tests
2023-07-20 14:19:41 -07:00
Jeff Fisher 250df30bb2
Remove deprecated package @azure/storage-datalake (#26251)
### Packages impacted by this PR

`@azure/storage-datalake`

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

This package has long since been replaced by
`@azure/storage-file-datalake`, hasn't been published in 4 years, and is
deprecated on npm.
2023-06-26 10:35:25 +08:00
Jeremy Meng 1c32404cbc
[storage] update package version to 12.20.0 (#26303)
There are still inconsistent package versions in some places. This PR
updates them all to `12.20.0`
2023-06-22 13:01:54 -07:00
Jeremy Meng 84aeb3d13c
[Storage] port PR #24953 from storage/stable branch (#26279)
https://github.com/Azure/azure-sdk-for-js/pull/24953

- port tests. source changes are not needed any more as we no longer use
`URLBuilder`, but switched to `URL`
- add recordings for new tests
2023-06-22 12:50:02 -07:00
Jeff Fisher 2d25e3d43d
Remove core-http from perf tests (#26276)
### Packages impacted by this PR

`@azure-tests/perf-storage-blob`
`@azure-tests/perf-core-rest-pipeline`
`@azure/test-utils-perf`


### Issues associated with this PR

#24525 

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

Remove last references to `core-http` from the tree as it will soon be
deprecated.
2023-06-20 14:50:31 -07:00
Jeremy Meng 0c5a6bc6ca
[Storage] port PR #24934 from storage/stable branch (#26256)
CHANGELOG update is not included in this PR and will be copied over in
one future PR.
2023-06-20 12:59:53 -07:00
Jeff Fisher 3afd071334
[storage-queue] Migrate to latest test recorder & test proxy (#26240)
### Packages impacted by this PR

`storage-queue`

### Issues associated with this PR

Closes #23427

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

Migrate to use the latest test recorder based on the standard EngSys
test proxy and migrate new recordings to the test asset repo.

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

https://github.com/Azure/azure-sdk-for-js/pull/26149
https://github.com/Azure/azure-sdk-for-js/pull/26150
2023-06-19 11:14:15 -07:00
Jeremy Meng ed6446fd31
[storage] Port PR #24759 from storage/stable (#26194)
- port tests
- use isBrowser from core-util
- port the source changes
- re-generate client
- update test resource names to use different variable names. New
recorder
unique names are slightly different from previous version and cause same
name to
  be retrieved for "dir" variable.
- add recordings
2023-06-19 10:33:24 -07:00
Jeff Fisher 52caec6292
[storage-queue] Migrate to core-tracing GA (#26223)
### Packages impacted by this PR

`@azure/storage-queue`

### Issues associated with this PR

Fixes #21313

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

This PR migrates to core-tracing GA and updates tests accordingly.

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

https://github.com/Azure/azure-sdk-for-js/pull/24773
https://github.com/Azure/azure-sdk-for-js/pull/24548
https://github.com/Azure/azure-sdk-for-js/pull/24850
https://github.com/Azure/azure-sdk-for-js/pull/25048
https://github.com/Azure/azure-sdk-for-js/pull/26135
2023-06-16 11:38:51 -07:00
Jeff Fisher 6582843a1a
[storage-queue] Migrate to core-rest-pipeline (#26207)
### Packages impacted by this PR

`@azure/storage-queue`

### Issues associated with this PR

Fixes #15813
Closes #15594

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

This PR migrates storage-queue to the new core pipeline in the same way
that storage-file-share was migrated. There are no changes to the public
surface and existing recorded tests still pass.

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

https://github.com/Azure/azure-sdk-for-js/pull/26102
2023-06-15 14:10:58 -07:00
Jeff Fisher 04e9b9fcea
[storage-file-share] Migrate test recordings out of repo (#26150)
### Packages impacted by this PR

`@azure/storage-file-share`

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

Migrate test recordings out of the repository using the steps provided
by the asset sync guide:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/test-utils/recorder/ASSET_SYNC_MIGRATION.md
2023-06-08 23:04:55 +00:00
Jeff Fisher aa2120a452
[storage-file-share] Migrate to latest test recorder & test proxy (#26149)
### Packages impacted by this PR

`@azure/storage-file-share`

### Issues associated with this PR

#23427

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

Migrate to use the latest test recorder based on the standard EngSys
test proxy. This will allow us to migrate recordings out of the
repository in a future PR.
2023-06-08 15:23:01 -07:00
Jeff Fisher a34fda9140
[storage-file-share] Migrate to core-tracing GA (#26135)
### Packages impacted by this PR

`@azure/storage-file-share`

### Issues associated with this PR

Fixes #21312

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

This PR migrates to core-tracing GA and updates tests accordingly.

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

https://github.com/Azure/azure-sdk-for-js/pull/24773
https://github.com/Azure/azure-sdk-for-js/pull/24548
https://github.com/Azure/azure-sdk-for-js/pull/24850
https://github.com/Azure/azure-sdk-for-js/pull/25048
2023-06-07 15:56:03 -07:00
Jeff Fisher e7f9ea36b9
[storage-file-share] Migrate to core-rest-pipeline (#26102)
### Packages impacted by this PR

`@azure/storage-file-share`

### Issues associated with this PR

#15813

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

This PR migrates storage-file-share to the new core pipeline in the same
way that storage-blob and storage-file-datalake were migrated. There are
no changes to the public surface and existing recorded tests still pass.

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

#24141, #24835
2023-06-07 11:29:58 -07:00
kazrael2119 f4623b2a28
Migrate flexible and hybrid (#25967) 2023-05-24 10:12:54 +08:00
kazrael2119 63bfb1cd0c
migrate sdk recording files 3 (#25679)
https://github.com/Azure/azure-sdk-for-js/issues/25410
2023-04-28 16:49:05 +08:00
Jeremy Meng d3a06a7349 [EngSys] upgrade dev dependency `typescript` to `~5.0.0`
***NO_CI***

- update versions in package.json
- change a couple ^ version to ~ version because typescript doesn't follow semver
2023-04-18 23:04:26 +00:00
Jeremy Meng cd3685a2c9
[credscan][file,queue] Fix warnings (#25493)
Replace the secret-looking signed identifier ID with a UUID

Fixes issue #25479
2023-04-10 09:49:45 -07:00
Jeff Fisher f2a8a39c60
[storage-blob] Fix paths in client instead of using a pipeline policy (#25381)
### Packages impacted by this PR

`@azure/storage-blob`

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

When generating the client library, the OpenAPI input specification uses
path parameters to model sending the container and blob ids to the
service. However, since these ids require special handling to be escaped
properly, the SDK manages the complete URL itself.

This causes the path parameters to be duplicated when processed by
core-client. To avoid this problem, I previously used a pipeline policy
that removed the duplicate information.

While migrating `storage-file-datalake`, I thought of a different
solution, namely that of having the client itself modify the
OperationSpec directly before the request is generated. This results in
less work at runtime and is a bit cleaner in terms of making each
operation request.

This PR ports the same approach to storage-blob.
2023-04-07 09:50:27 -07:00
Alexander Wennerstrøm 6044709188
Corrected code typo in the code examples (#24909)
### Packages impacted by this PR
@azure/storage-queue

### Issues associated with this PR
Didn't find any when doing a quick search

### Describe the problem that is addressed by this PR
Current code example says that "iterator" should be used to obtain the
value, but it is item where one should get the value from


### 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?)_
No code change per say, just example / usage change

### 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)_
- [ ] Added a changelog (if necessary)
2023-03-28 10:06:50 +08:00
Jeremy Meng f03b068c53
[storage][test] remove IE11/Edge workaround (#25250) 2023-03-14 22:58:56 +00:00
Jeff Fisher 70395abc6e
[storage-file-datalake] Migrate test recordings out of repo (#25186)
### Packages impacted by this PR

`@azure/storage-file-datalake`

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

Migrate test recordings out of the repository using the steps provided
by the asset sync guide:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/test-utils/recorder/ASSET_SYNC_MIGRATION.md
2023-03-09 13:30:30 -08:00
Jeff Fisher a7855faada
[storage-file-datalake] Migrate to test recorder v2 (#25172)
### Packages impacted by this PR

`@azure/storage-file-datalake`

### Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/23427

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

Migrate to use the latest test recorder based on the standard EngSys
test proxy. This will allow us to migrate recordings out of the
repository in a future PR.
2023-03-09 11:47:01 -08:00
Jeremy Meng ae26cc9d92 [engsys] remove karma ie and edge launcher
as we no longer need to test them.

***NO_CI***
2023-03-06 17:08:15 -05:00
Harsha Nalluru 66e595c647
[storage-file-datalake] [Bug Fix] Fix the date property(createdOn, expiresOn) in some of the returned responses (#25072)
### Packages impacted by this PR
`@azure/storage-file-datalake`

### Issues associated with this PR
Fixes #25068 

### Describe the problem that is addressed by this PR
`windowsFileTimeTicksToTime` calculation somehow went wrong since 2023
with a 1-day difference, perhaps due to miscalculation w.r.t leap days.

This PR attempts to fix the bug and fix the tests.

The new implementation makes use of the JS Date object to do most of the
calculation instead of relying on the numbers/constants to account for
the leap days.
```js
// Existing Code - Straight from the storage-file-datalake code
function windowsFileTimeTicksToTime(timeNumber: string | undefined): Date | undefined {
  if (!timeNumber) return undefined;
  const timeNumberInternal = parseInt(timeNumber!);

  if (timeNumberInternal === 0) return undefined;

  const date = new Date(timeNumberInternal / 10000);
  date.setUTCFullYear(date.getUTCFullYear() - 369);
  return date;
}

// New Implementation - Alternative algo from stackoverflow that works as expected
// Reference https://stackoverflow.com/a/24188106
function windowsFileTimeTicksToTime2(timeNumber: string | undefined): Date | undefined {
  if (!timeNumber) return undefined;
  const timeElapsed = parseInt(timeNumber)/10000;

  if (timeElapsed === 0) return undefined;

  // Milliseconds calculated relative to "12:00 A.M. January 1, 1970" (will be negative)
  const initialFrameOfReference = Date.UTC(1601, 0, 1);

  // TimeRelativeTo1970 = (TimeAt1601 - TimeAt1970) + (Current - TimeAt1601) = (Current - TimeAt1970)
  return new Date(initialFrameOfReference + timeElapsed);
}

// Value from a saved recording 
const olderTicks = "132934495529749313"; // April 3rd, 2022
console.log(windowsFileTimeTicksToTime(olderTicks))  // "2022-04-03T08:52:32.974Z" 
console.log(windowsFileTimeTicksToTime2(olderTicks)) // "2022-04-03T08:52:32.974Z" 

// Current time (At about the time of this PR) 
const newerTicks = "133222649014464202"; // March 2nd, 2023
console.log(windowsFileTimeTicksToTime(newerTicks))  // "2023-03-01T21:08:21.446Z"
console.log(windowsFileTimeTicksToTime2(newerTicks)) // "2023-03-02T21:08:21.446Z"
```

## Playground if you want to play with
[windows filetime to JS date - TS
playground](https://www.typescriptlang.org/play?#code/PTAEGUBcCcEMEsDmALSoBm0D2BbUlkBTUAZ0izkUIFp14AbGgE1klntgGtiBjLJwgCh0AVwB2PSPCxjQAd3himWOSQBiDQgBV4ObfB6cSWrDr0AKKXoByInACNC0AFykYixKAA+ocQLpihEwAlK4AIqzEPn6EAUGgAN6CoKDw6KDmAIRWhLYOTsGg0ISQItCyMXFMANzJoHxiZPi6uXaO0ACSYpBOYuygALygAA6w0CSEXZCWLXntmcG1dWkZOXNOU739AzugAAyFxaXlvkqxikFLKSCgAILyisqqGJrNeqkkoLCgAGwALNR7PA0AA3dgiYgEVhFQjDYoTbqfAjEMRtJygLDpACMez21D6YiwEwaTFS3ScYPoSOQ0JpIOIhA4wwmTDqNxIih4xCxACZnLi7gA6ACygtAAClYKixgBPUBYgA08p+eyxoAAwlgKExFJFSQBVMTwenjfpmYjmfVadXBQVssARHpfHhc4aQT7fSkQ-A0tDFOGEBHu0A4BjwYkyJifTC4eV8gW3EViyXS6ByxXygCcAHY9vbQAAJJzEEjILAieikvjQYqSH3EGWEMagVH5aBfdA9dsNE1SMSIO0pBpNFhOoaBOSgR2EGY2NGdcnlfpgHG4g61FKjwiCiaQK3qtQV+gATSb0HMW8FVD31sP9BPZ-MhWooAAzD9M4s6kcyrIt7UAF9BEEG5bnoLs+ikekvnoRAsAwbA8DIWBDCwE10HoFQfWhOQKCML5PkIAAPYZCEkIIQLAAAlWJiwkYhUEgZlnBAZDUPQzC5EFPgcGAWBgB5P4sQADmEnEfmEcRJGkWQFCUFR1E0c0dEMYxTBaHlZ1aNtXDIaAPG8U5-AuEJwkiQzKhMxI6hSFYsjWedDhKX8jPOQIahs0BQIeeTnjoRg3mIcMvl+AEgVBcFIV9GEAyDakUXnDFsVxfEpSJMjIzJLtKWpWlYGgxlYGZCiUmuMAOXouN+T2IVRQlKURFleUlSxFU1U1bVdR6A0jRNEgzRaDJ91tTybnFcAp3MlDXWDT1Iuwv1YXhQhERDBh6HDDKlGjRCqoTJN6tTdMWpzPNSq8sBwCwJU5EIABye9QBpJQAuRep2B4CtWBkz5FDW+9NpJHbYyIYpPOHNAcgAUSZFlBhGMYJimLT1mgYJgFXXFqgu0BzTJf6NojbbSE5YgACJeWq2rkwapqM1a1UyeA867Oh2H4h2IYDhhY4KjOKorlKiGyWBeB2DUOA9AAeXQGj0Dorl4enQV93MBnFT2BUsUWMrQGFdbAcjT4eA+r7uphDgoMheCKfjGrEzqlNGrTZqs1zMmMgUR7HBbQhEG++lgk8n8TgnSaenMRRRfFyXCBluWFeIABqQKYaKlkdZucxzVuSB1dAF8c7z07ChT8x1TKYpugL3GWlz9XCiGcvK5WtBC7r4vcyDoDKNAAA1eaYzwb5+vpUla06-tQEEYWsErJwVPwoYKdfHlM1fP4-kzABWbe1+zLfXyxV8yex0C4QYN9oCYJUeT2HkeRnmQSDn7dMMQcw5KeRTGGUgwjBMOacwc8BDQEXiQYIhQcZkzvg-agewAR7FfFoPYwlnB72cKvQUOY-gAC0PZP0aK-QU79P6PAUhoX+LRwGAI0sA+eYD-4QMKDcGB98eTwMQcg1B6C+RYJwfg6evcK41lboFDIucvj2HLJDIg4jMQ+mCgABSooUQhTQJwLyYfDFeq8H7-EzKqTe-xYGnxxsKMYPBkCgB5EoW+99XzqOIaQr+FClLUKYbQiwmjGGqUgbrNhPJXzwOCaqLQPIsT8jQREwUxj8FOMYCQrAH9XGqEofoPQND1J6E0j48B-jWGwNCaEnk4TIk8JiXEpmgggA)
2023-03-06 20:25:33 +00:00
Jeff Fisher 9d568f4578
[storage-file-datalake] Migrate to core-tracing GA (#25048)
### Packages impacted by this PR

`@azure/storage-file-datalake`

### Issues associated with this PR

Fixes #21315

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

This PR migrates to core-tracing GA and updates tests accordingly.



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

https://github.com/Azure/azure-sdk-for-js/pull/24773
https://github.com/Azure/azure-sdk-for-js/pull/24548
https://github.com/Azure/azure-sdk-for-js/pull/24850
2023-03-06 08:19:34 -08:00
Jeff Fisher b1509d6756 Update test-recorder to drop support for `@Azure/core-http` and
bump the major version accordingly.

***NO_CI***
2023-03-02 15:21:26 -08:00
Jeff Fisher d168eeef28
[storage-blob-changefeed] Migrate test recordings out of repo (#25066)
### Packages impacted by this PR

`@azure/storage-blob-changefeed`

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

Migrate test recordings out of the repository using the steps provided
by the asset sync guide:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/test-utils/recorder/ASSET_SYNC_MIGRATION.md
2023-03-02 12:31:14 -08:00
Jeff Fisher 9bb2099b2a
[storage-blob] Migrate test recordings out of repo (#25016)
### Packages impacted by this PR

`@azure/storage-blob`

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

Migrate test recordings out of the repository using the steps provided
by the asset sync guide:
https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/test-utils/recorder/ASSET_SYNC_MIGRATION.md
2023-03-02 10:24:45 -08:00
Jeff Fisher 83d9b65c19
[storage-file-datalake] Migrate to core-rest-pipeline (#24835)
### Packages impacted by this PR

`@azure/storage-file-datalake`

### Issues associated with this PR

#15813

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

This PR migrates storage-file-datalake to the new core pipeline in the
same fashion that storage-blob was recently migrated. There are no
changes to the public surface and existing recorded tests still pass.


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

#24141
2023-03-01 09:36:03 -08:00
Jeff Fisher 85c71df8d8
[storage-blob-changefeed] Migrate to test recorder v2 (#24907)
### Packages impacted by this PR

`@azure/storage-blob-changefeed`

### Issues associated with this PR

https://github.com/Azure/azure-sdk-for-js/issues/23427

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

Migrate to use the latest test recorder based on the standard EngSys
test proxy. This will allow us to migrate recordings out of the
repository in a future PR.
2023-02-27 07:41:26 -08:00
Jeremy Meng 199a67ac7e
[storage-blob][test] remove x-ms-encryption-key from recordings (#24980)
use `removeHeaderSanitizer` to remove the `x-ms-encryption-key` header
from the recordings. The header value contains test resource keys that
made credscan unhappy.
2023-02-24 10:15:42 -08: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
Jeff Fisher c748576acb
[storage-blob-changefeed] Migrate to tracing GA (#24850)
### Packages impacted by this PR

`@azure/storage-blob-changefeed`

### Issues associated with this PR

Fixes #21311

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

This PR migrates to core-tracing GA and updates tests accordingly.


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

#24773
#24548
2023-02-16 13:13:51 -08:00
Jeremy Meng ab7b77204f
[storage][docs] fix links (#24838)
The `feature/storage/stable` branch was removed in favor of `storage/stable` branch.
2023-02-13 09:52:47 -08:00
Jeremy Meng 42d359f404 [engsys] upgrade @rollup plugins dev dependencies
***NO_CI***

- `@rollup/plugin-commonjs` to `^24.0.0`
- `@rollup/plugin-json` to `^6.0.0`
- `@rollup/plugin-multi-entry` to `^6.0.0`
- `rollup-plugin-polyfill-node` to `^0.12.0`
- `@rollup/plugin-inject` to `^5.0.0`
- `@rollup/plugin-replace` to `^5.0.0`

Fix notification-hubs rollup test config: now sourcemaps plugin is complaining
about .ts file. Move typescript plugin before it.

Fix service-bus to include needed rollup dependencies. It was lucky to be able
to re-use on other packages to install them but is failing in some builds.
2023-02-10 15:12:48 -08:00
Jeremy Meng ab536fc39a [engsys] make typescript version consistent to ~4.8.0
***NO_CI***

This is the result of

- `rush add --dev -m -p typescript@~4.8.0`

- and update versions in non-rush projects
2023-02-10 11:41:53 -08:00
Jeff Fisher 7a3bc72647
[storage-blob-changefeed] Migrate to core-rest-pipeline (#24773)
### Packages impacted by this PR

storage-blob-changefeed

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

Migrated to use `core-rest-pipeline` (coreV2). Since this package
doesn't directly expose REST operations, there is very little change.
`core-http` only provided a few common interfaces that have been moved
to other packages.
2023-02-10 08:33:25 -08:00
Mike Harder ffe09dd9a1
[Perf] Refactor tests.yml into one file per package per language (#24398) 2023-02-09 21:17:31 -08:00
EmmaZhu-MSFT c7aca54eb3
[storage]Update readme to notice about storage sdk branch (#24789)
Update readme file to notice customer about storage sdk releasing branch
2023-02-08 11:46:12 -08:00
Jeff Fisher 7bb0947718
[storage-blob] migrate to test recorder v2 (#24618)
Adopt new recorder and adjust tests as needed
2023-02-02 11:00:55 -08:00
Jeff Fisher 65e8bb6db3
Fix issue with missing `return` in blobBatch (#24573) 2023-01-27 00:34:16 +00:00
Jeremy Meng bbb29823c9 [engsys] upgrade dev dependency `dotenv` version to `^16.0.0`
***NO_CI***
2023-01-26 15:59:56 -08:00
Jeff Fisher 74d52a8cca
[storage-blob] Upgrade to core-tracing 1.0 (#24548) 2023-01-24 19:23:15 +00:00
Jeff Fisher 8d0ce9d0dd
[storage-blob] Storage core v2 migration (#24141)
Migrate `storage-blob` to `core-rest-pipeline`.

Stable development of storage has moved to the `feature/storage/stable` branch until acceptance testing of main has completed.
2023-01-20 11:34:45 -08:00
Jeremy Meng e0aa30e76e
[storage] upgrade core-http dependency version to v3 (#24483)
to be consistent with storage-blob
2023-01-17 12:29:43 -08:00
Mike Harder 50bef9b2f7
[Perf] Upgrade dependency core-http to v3 (#24482) 2023-01-13 18:11:12 -08:00
Jeremy Meng 696ec98edf
[engsys] fix check-format failures (#24439)
* [engsys] fix check-format failures

- keyvault-command doesn't have samples-dev directory
- result of of `rush format`.  formatting changes that potentially caused by prettier upgrade

* form-recognizer api.md formatting change
2023-01-11 14:07:08 -08:00
EmmaZhu-MSFT 3a66d25b51
[Storage]Append with, Acquire, Release & Renewal of Lease; Flush with Release Lease (#23530)
* [Storage]Append with, Acquire, Release & Renewal of Lease; Flush with Release Lease

* Add change log description

* Resolve comments

* Resolve comments
2023-01-11 14:48:13 +08:00
EmmaZhu-MSFT c1aabbc058
[storage-blob]cold tier and blob listing with prefix,delimiter and include version (#23863)
* Add a test case for listing with prefix, delimiter and include version

* Add support for cold tier
2023-01-10 09:49:55 +08:00
Azure SDK Bot 0c3d4a8c41
Post release automated changes for storage releases (#24326)
Post release automated changes for azure-arm-storage-profile-2020-09-01-hybrid
2022-12-23 06:59:36 +00:00
kazrael2119 b188f520a1
recording refresh 24 (#24318)
* recording refresh 24

* update files

* update files

* update files

* update files

* update files

* update files

* update files
2022-12-23 10:22:29 +08:00
Azure SDK Bot c4c7bd398a
Post release automated changes for storage releases (#24285)
Post release automated changes for azure-arm-storage
2022-12-20 08:39:07 +00:00
kazrael2119 af8fc03c37
delete useless sdks (#24183)
* delete sdks

* update files
2022-12-16 10:01:33 +08:00
Jeremy Meng 63cf6bead5
[engsys] upgrade dev dependency `puppeteer` to `^19.2.2` (#24152)
* upgrade dev dependency `puppeteer` to `^19.2.2`

* update pnpm-lock.yaml

* Fix failing tests

by changing them to verify `error.name`.  The error message from parsing an
incomplete JSON string has been improved in recent versions of chromium.
Unfortunately it doesn't match NodeJS version any more.
2022-12-07 13:15:35 -08:00
Dina Berry c2d8a5c107
Blob Storage - container name rules link (#24071) 2022-12-06 09:45:55 -08:00
kazrael2119 6e1a5eef1a
storage release (#23988)
* storage release

* update files

* update files
2022-11-30 11:48:01 +08:00
Jeremy Meng a9f4825c7c
[engsys] Upgrade dev dependency `dotenv` version to `^16.0.0` for selected packages (#24020)
to have pipelines' validation.
2022-11-28 15:39:15 -08:00
Jeremy Meng a8b1f645e8
[core-http] bump major version to v3 (#23773)
For the runtime behavior change in deserializing parsed project from XML.

### Packages impacted by this PR
`@azure/core-http`
2022-11-09 11:57:42 -08:00
Jeremy Meng 90fc8ae261
[core-http] mark de-serialized XML properties as handled (#23660)
Currently we copy additional properties into the result if they are not marked
as handled. In cases where `xmlName` is different from `seralizedName`, we end
up copying unwanted additional property that has been de-serialized already
because the marked flag is set for `serializedName`.

This PR marks an XML property as handled after it is de-serialized.
2022-11-07 09:49:20 -08:00
Jeff Fisher 526926acc6
Upgrade TypeScript to 4.8 for most packages (#23730) 2022-11-05 01:24:43 +00:00
Timo van Veenendaal 8b85210e09
[recorder] Remove recorder dependency from packages without recorded tests (#23562) 2022-11-03 11:12:17 -07:00
Azure SDK Bot 0fceaa336b
Post release automated changes for storage releases (#23534)
Post release automated changes for azure-storage-blob
2022-10-19 09:05:02 +00:00
Jeremy Meng 98508cfa18 [EngSys] update engines required node version and @types/node version to v14
***NO_CI***

- string replace in package json: 12 => 14 for engines/node and for dependency @types/node
- eslint: update `json-engine-is-present` rule to 14.0.0 as LTS version
- identity: react to typing improvements for `readFile()`'s `options.encoding`
- trivial generated api.md file changes due to @types/node version bump
2022-10-14 14:29:35 -07:00
EmmaZhu-MSFT e1e3c0a261
[Storage]Update version to prepare fot STG84 GA release. (#23459) 2022-10-14 02:21:24 +00:00
EmmaZhu-MSFT ef9938adc8
[storage]Fixed an issue of escaping slashes in blob name unnecessarily. (#23461)
* [storage]Fixed an issue of escaping slashes in blob name unnecessarily.

* Add two more test cases.
2022-10-14 07:45:53 +08:00
Jeremy Meng 6c881ed3a1 [engsys] upgrade dev dependency `@microsoft/api-extractor` to `^7.31.1`
***NO_CI***

- bump api-extractor dev dependency to ^7.31.1 for all packages
- insignificant review file changes for cosmos and blob
2022-09-22 17:09:15 -07:00
Marco Wiedemeyer 9a79cddf68
[storage-blob] Escape path like dotnet for storage blob names (exclude path separator from encoding) (#22654)
* Use escape path like dotnet for storage blob names

* Rerecord test cases.

* Remove it.only to fix tests

* Rerecord test cases for testing against browser

Co-authored-by: Marco Wiedemeyer <mwiedeme@outlook.com>
Co-authored-by: Emma Zhu <emmazhu@microsoft.com>
2022-09-22 11:22:26 +08:00
Jeremy Meng f280f87f7b [engsys] fix broken nodejs lts schedule link
On https://nodejs.org/ it is now point to https://github.com/nodejs/release#release-schedule

***NO_CI***
2022-09-19 16:37:05 -04:00
Mike Harder 10e08b917c
[Perf] Update storage perf dependency versions (#23146) 2022-09-13 17:17:33 -07:00
Jeremy Meng d98d442fa6
[engsys] upgrade `downlevel-dts` version to ^0.10.0 (#23131)
This fixes an error in automated `rush update --full` build.

***NO_CI***
2022-09-07 11:29:19 -07:00
Deyaaeldeen Almahallawi 3de4ed1adf
[core-lro] Deprecate cancelOperation and introduce createPoller (#22753)
# Fixing LRO cancellation by deprecating `cancelOperation`
Canceling a long-running operation is currently done by calling `cancelOperation`: eb0aa1da67/sdk/core/core-lro/src/poller.ts (L79-L82) However the cancellation behavior could vary between APIs in a way that makes `cancelOperation` a confusing abstraction. In particular, when sending a cancellation request, the service may respond with either a 200 or a 202 response, depending on the API and/or the operation, where the former indicates the operation has been canceled immediately and the latter indicates it could be some time before the operation is deemed as canceled. Handling 202 responses needs care to set the customer's expectation about wait times and this is typically done by providing a poller object that customer could use to optionally block until the operation finishes. This discrepancy in behavior makes `cancelOperation` not a suitable abstraction for the case when cancellation returns a 202 response.

In this PR, I am deprecating `cancelOperation` and leaving it up to the library author to implement operation cancellation as they see fit. This proposal has been discussed with @bterlson, @joheredi, and @witemple-msft and they're all on-board with it.

## Pollers without cancellation abstraction
The PR also introduces a second poller interface that doesn't have `cancelOperation` at all, named `SimplePollerLike`. This interface is meant to be used for pollers for new operations that don't support cancellation.
The other difference between `PollerLike` and `SimplePollerLike` is in how the operation state is defined. `PollerLike` defines its state shape as a type that extends `PollOperationState<TResult>`: eb0aa1da67/sdk/core/core-lro/src/pollOperation.ts (L17-L38) Mainly, it has `isStarted`, `isCanceled`, and `isCompleted` booleans. However, the semantics of `isCanceled` can be confusing; should it be set at the time when the cancellation request is sent or when the service responds that the operation is canceled?
To avoid this confusion, `OperationState` replaces those booleans with a status field typed as a union of states:
```ts
export interface OperationState<TResult> {
  /**
   * The current status of the operation.
   */
  status: "notStarted" | "running" | "succeeded" | "canceling" | "canceled" | "failed";
  /**
   * Will exist if the operation encountered any error.
   */
  error?: Error;
  /**
   * Will exist if the operation produced a result of the expected type.
   */
  result?: TResult;
}
```
Which makes it clear that it reflects operation status after each poll.

## Use case: Implement LRO cancellation in @azure/ai-language-text (https://github.com/Azure/azure-sdk-for-js/pull/22852)

The proposal is implemented in a different PR: https://github.com/Azure/azure-sdk-for-js/pull/22852


This LRO cancellation returns a 202 response so cancellation itself is an LRO. I am proposing to implement cancellation by returning a function named `sendCancellationRequest` alongside the operation poller, so the return type is:

```ts
interface AnalyzeBatchOperation {
    poller: AnalyzeBatchPoller;
    sendCancellationRequest(): Promise<void>;
}
```

And client code can simply destruct the output object as follows to get access to the poller and the cancellation function:

```ts
const { poller, sendCancellationRequest } = await client.beginAnalyzeBatch(actions, documents, "en");
...
// Let's cancel the operation
await sendCancellationRequest(); // poller.cancelOperation() no longer exists
```

Design considerations:
- cancellation as a concept is not related to polling so a poller is not the right place to send cancellation requests
- canceling an operation requires knowing the operation ID/location, but we shouldn't ask customers for that information because it is an implementation detail
- cancellation is an LRO but it doesn't have its own operation location, i.e. the operation location is the same for the operation being cancelled and the cancellation operation itself. This means there is no need to create a dedicated poller for the cancellation operation and customers could still use the existing poller to await their operation or its cancellation
- cancellation is a POST request with no interesting response, so it should be modeled programmatically as `(): Promise<void>` function
2022-09-01 00:52:05 -04:00
Azure SDK Bot 52229090ec
Post release automated changes for storage releases (#23012)
* Post release automated changes for azure-storage-blob

* Post release automated changes for azure-storage-file-datalake
2022-08-26 06:17:04 +00:00
EmmaZhu-MSFT 95394b7f0f
Prepare STG84 release. (#23002) 2022-08-25 13:13:32 +08:00
Azure SDK Bot fec926691f
Post release automated changes for storage releases (#22948)
Post release automated changes for azure-arm-storage
2022-08-22 14:36:36 +00:00
azraelczw 4a110d9a9d
release storage (#22905)
* release storage

* update files

* update files

* Update _meta.json

Co-authored-by: kazrael2119 <1326019091@qq.com>
Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
2022-08-19 15:03:23 +08:00
EmmaZhu-MSFT b8afd33954
[storage]Fix issue of not be able to parse URL with account name in Path correctly (#22895)
* Fix issue of not be able to parse URL with account name in Path correctly

* Resolve comments
2022-08-16 09:50:00 +00:00
EmmaZhu-MSFT 68c9acb772
Fix failures in passing or converting permissions (#22712) 2022-08-16 07:16:28 +00:00
EmmaZhu-MSFT d51125a928
Fix a hang issue in downloading when there's transient network issue (#22894) 2022-08-16 14:45:44 +08:00
EmmaZhu-MSFT 900347d49c
Storage stg84 features (#22773)
* Add feature append with flush.

* Add support for encryption scope for datalake service.

* Resolve comments.

* Resolve pnpm-lock

* Resolve pnpm-lock
2022-08-11 16:56:28 +08:00
Jeremy Meng 84fabfd41e [engsys] upgrade `typescript` to `^4.6.0` for rest packages
***NO_CI***

This is a follow-up to PR #21536 and PR #21537.

- upgrade typescript to 4.6.0 for communication packages

- upgrade typescript to 4.6 for test-utils and dev-tool

- upgrade typescript to 4.6
2022-07-22 16:41:43 -04:00
Azure SDK Bot 24a5f57fac
Post release automated changes for storage releases (#22506)
Post release automated changes for azure-storage-blob
2022-07-18 02:05:13 +00:00
Mike Harder 24bfe20953
[Perf] Extend from perf.yml under eng/common (#22590)
- Convert parameter names from camelCase to PascalCase to follow convention
2022-07-15 16:41:25 -07:00
EmmaZhu-MSFT 80949a8a07
Prepare for STG83 release. (#22434) 2022-07-08 09:46:50 +08:00
Mike Harder 6e1531cdd2
[perf] Add pipeline template and storage pipelines (#22291) 2022-06-26 17:28:31 -07:00
Azure SDK Bot 314a7c678d
Post release automated changes for storage releases (#22290)
Post release automated changes for azure-storage-blob
2022-06-17 07:15:33 +00:00
EmmaZhu-MSFT e6d1f7a358
Update version and change log for STG83 preview. (#22280) 2022-06-16 22:38:56 +08:00
EmmaZhu-MSFT cd7741fa43
Added support for permission, acl, lease and expiry time setting in file/directory creation in datalake (#22037)
* Added support for permission, acl, lease and expiry time setting in file/directory creation in datalake

* Resolve review comments
2022-06-16 10:57:32 +08:00
Azure SDK Bot 9f6946acea
Post release automated changes for storage releases (#22270)
Post release automated changes for azure-arm-storage
2022-06-16 01:09:55 +00:00
kazrael2119 e1aa34cd59
update storage package (#22259)
* update storage package

* update storage package

* update storage package

* update storage package

* update storage package

* update servicefabricmesh package

Co-authored-by: ZiWei Chen (WICRESOFT NORTH AMERICA LTD) <v-ziweichen@microsoft.com>
2022-06-16 07:21:47 +08:00
Jeff Fisher 4e8d6a3f94
Fix doc warnings in various README files (#22267)
Fixes #22204
Fixes #22205
Fixes #22206
2022-06-15 14:53:44 -07:00
EmmaZhu-MSFT 3ebe1f6a7d
Add support for partition dns in datalake package. (#18596) 2022-06-15 19:56:12 +08:00
EmmaZhu-MSFT 696d94d4b1
Added two new features for change feed package. (#22152)
* Change to return empty change feed when meta/segments.json is not created yet.

* Added ability to set Change Feed chunk download size

* Resolve comments
2022-06-14 10:47:57 +08:00
Mike Harder 0b9e7eb8db
Move storage-blob resource location to canadacentral (#22071)
- Reverts unintentional move to westus in #13886
- Aligns storage-blob with storage-file-share and storage-file-datalake
- Ensures access is over ipv4, which is required for some SAS tests
- If both agent VMs and storage account are in westus, access is over ipv6
2022-06-02 12:09:26 -07:00
Jeremy Meng 86cbca6548 [eslint] enable linter rules for README javascript code blocks
***NO_CI***

Co-authored-by: Wei Jun <67103802+WeiJun428@users.noreply.github.com>

- [x] template

Enable README Eslint (#21612)

* fixed ai-anomaly-detector

* fixed minor error

* fixed app-configuration

* fixed communication-chat

* fixed communication-common

* fixed communication-identity

* fixed communication-network-traversal

* fixed communication-phone-numbers

* fixed communication-short-codes

* fixed communication-sms

* fixed container-registry

* fixed digital-twins-core

* fixed eventgrid

* fixed event-hubs

* fixed ai-form-recognizer

* fixed opentelemetry-instrumentation-azure-sdk

* fixed mixed-reality-authentication

* fixed quantum-jobs

* fixed mixed-reality-remote-rendering

* fixed schema-registry

* fixed service-bus

* fixed storage-blob

* fixed storage-file-datalake

* fixed storage-file-share

* fixed storage-queue

* fixed data-tables

* fixed video-analyzer-edge

* fixed web-pubsub

* fixed web-pubsub-express

* partially fixed attestation

* added target to lint:fix in attestation

* fixed ai-anomaly-detector

* revert attestation

* fixed container-registry

* fixed digital-twins-core

* fixed eventgrid

* fixed opentelemetry-instrumentation-azure-sdk

* fixed mixed-reality-authentication

* fixed mixed-reality-remote-rendering

* storage-blob

* fixed storage-file-datalake

* fixed storage-file-share

* fixed storage-queue

* fixed template

* fixed ai-text-analytics

* fixed schema-registry-arvo

* fixed ai-metric-advisor

* fixed eventhubs-checkpointstore-table

* fixed eventhubs-checkpointstore-blob

* fixed identity-vscode

* fixed identity-cache-persistence

Add `-ext .ts,.javascript,.js` option back

This option is used to specify file patterns under directories. Without it,
unwanted files (e.g., *.json under test folder) will be linted.
2022-05-24 11:58:40 -07:00
Jeremy Meng 83e13d88f9 [engsys] upgrade `eslint` dev dependency version to ^8.0.0 for rest packages
***NO_CI***
2022-05-20 13:21:30 -07:00
Azure SDK Bot 1429d0f44b
Post release automated changes for storage releases (#21859)
Post release automated changes for azure-storage-blob
2022-05-13 11:18:10 +00:00
Jeremy Meng 68921a94f9
[engsys] upgrade `puppeteer` dev dependency to ^14.0.0 (#21837) 2022-05-12 11:57:03 -07:00
EmmaZhu-MSFT b9a7129197
Bump version for storage packages. (#21830) 2022-05-12 17:26:30 +08:00
Timo van Veenendaal cf19b7b0d0
[Perf] Multicore support (#20736)
The perf framework previously did not support true multi-core operation. This PR provides an implementation of multicore support based on a message-passing model.

Two new options are added to the perf framework as part of this PR:
* `--cpus`/`-c`: number specifying the number of cores (CPUs) to use. Defaults to 1, set to 0 to match the number of cores on the machine.
* `--use-worker-threads`: boolean, defaults to false. Pass this flag to use `worker_threads` instead of `child_process` for multithreading (see Multithreading implementations, below)
2022-05-11 12:02:29 -07:00
EmmaZhu-MSFT 92b5cd0bd6
Refined user-agent value to avoid failure when os information is not available on some platforms. (#20095) 2022-05-09 20:32:16 +08:00
Azure SDK Bot 5d81b1df30
Post release automated changes for storage releases (#21476)
Post release automated changes for azure-storage-blob
2022-05-09 08:34:50 +00:00
EmmaZhu-MSFT 2fa4acfdf2
Fix issue to expose blob properties in raw response. (#21615)
* Fix issue to expose blob properties in raw response.

* Fix samples issues of: no request in error's detailed info, data lake file system name should be lower cased.
2022-05-07 11:06:23 +08:00
Wei Jun a1cff0b28f
[Storage-Queue][Samples] add a scenario of receiving more than one messages with `receiveMessages()` (#21704)
* added new scenarios

* removed old samples

* republished updated samples
2022-05-06 12:54:43 -07:00
EmmaZhu-MSFT c72a68d697
Remove unuse options introduced from last feature implementation. (#21603) 2022-04-30 11:02:19 +08:00
Jeremy Meng c86700356f
[engsys] upgrade rollup dev dependencies version (#21647)
for packages that has their own rollup configurations to match what's used in dev-tool.

- rollup to v2.60.2
- rollup-plugin-sourcemaps to v0.6.3
- @rollup/plugin-node-resolve to v13.0.6
2022-04-28 09:59:30 -07:00
Sarangan Rajamanickam 88406ffab4
Version Update for Profile Packages (#21590) 2022-04-25 10:30:55 -07:00
Sarangan Rajamanickam 2df5b84342
Deprecate Old Profiles (#21576) 2022-04-23 21:38:40 -07:00
praveenkuttappan 84329dd2e8 Pin API-extrator to 7.18.11 2022-04-20 15:32:34 -07:00
Jeremy Meng 191e4ce330 [EngSys] prepare for upgrading TypeScript to v4.6
Before upgrading we want to address the breaking change of catch variable now
defaulting to `unkown` by explicitly specify `: any` for implicit `any` catch
variables in our code base.

This commit applies the result of running the following codemod (credit: Maor)

```ts
import { API, FileInfo } from "jscodeshift";
export default function transformer(file: FileInfo, api: API) {
  const j = api.jscodeshift;
  const code = j(file.source);
  code
    .find(j.CatchClause)
    .filter(({ node }) => {
      return node.param && node.param.type == "Identifier" && !node.param.typeAnnotation;
    })
    .forEach(({ node }) => {
      if (node.param.type == "Identifier") {
        node.param.typeAnnotation = j.tsTypeAnnotation(j.tsAnyKeyword());
      }
    });
  return code.toSource();
}
```
2022-04-19 12:11:57 -07:00
Matthew Podwysocki 2daac16e2b
[storage-internal-avro] Fix ESLint errors (#21297) 2022-04-19 11:36:06 -04:00
EmmaZhu-MSFT 7cfa4f23bd
Change to parse wasSoftDeleted from a string in change feed. (#21442)
Update changelog and version for storage packages.
2022-04-19 11:59:29 +08:00
Jeremy Meng b835e0bc70
[engsys] fixing linter errors (#21459)
* [engsys] fixing linter errors

* Address CR feedback
2022-04-18 13:49:05 -07:00
EmmaZhu-MSFT 3fe379f8a3
Add support for file change time property support for storage file share (#21275)
* Add support for file change time property support in storage file package.
Change timestamp headers to be optional, add support for last write time in putRange/putRangeFromUrl methods.
Add support for content type header in rename

* Fix code review comments
2022-04-18 01:28:16 +00:00
EmmaZhu-MSFT af94526280
Add support for contination token in getting page ranges. (#21280)
Add support for  x-ms-copy-source-tags-options
2022-04-18 09:11:02 +08:00
EmmaZhu-MSFT e479a499ac
Support CPK in datalake (#21272)
* Support CPK in datalake

* Add creation time and expiry time in response of list paths.

* Fix code checking failures.

* Fix reviewing comments
2022-04-18 07:58:15 +08:00