Skip to content

[storage-file-datalake] Migrate to core-rest-pipeline#24835

Merged
xirzec merged 24 commits intoAzure:mainfrom
xirzec:storageFileDatalake
Mar 1, 2023
Merged

[storage-file-datalake] Migrate to core-rest-pipeline#24835
xirzec merged 24 commits intoAzure:mainfrom
xirzec:storageFileDatalake

Conversation

@xirzec
Copy link
Copy Markdown
Member

@xirzec xirzec commented Feb 11, 2023

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

@xirzec xirzec added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Feb 11, 2023
@xirzec xirzec self-assigned this Feb 11, 2023
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-storage-file-datalake

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 13, 2023

/azp run js - storage-file-datalake - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 14, 2023

/azp run js - storage-file-datalake - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@EmmaZhu
Copy link
Copy Markdown
Member

EmmaZhu commented Feb 16, 2023

@xirzec , I'm looking into this PR and may need to run some case manually. We have several cases which requires manually setting environments.

About the SAS token case failures, will you look into them? Or do you need me to look into the them?

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 16, 2023

@EmmaZhu I have an update for the failing tests and I have been looking into an issue with the browser in live mode. I hope to have an updated version pushed soon.

I'll ping you when the live tests are passing and it's in a good state for manual testing. I appreciate you helping validate! 👍

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 17, 2023

/azp run js - storage-file-datalake - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 17, 2023

@EmmaZhu I think it should be good for testing now! 👍


- Migrated dependency on `@azure/core-http` to `@azure/core-rest-pipeline`.

## 12.13.0 (Unreleased)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove this 12.13.0?


- Migrated dependency on `@azure/core-http` to `@azure/core-rest-pipeline`.

## 12.12.0 (Unreleased)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

merge into 12.20.0?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I wasn't sure if this was going to ship out of the stable branch or not, definitely have to fix up the changelog before we release out of main

@EmmaZhu
Copy link
Copy Markdown
Member

EmmaZhu commented Feb 27, 2023

Hi @xirzec , I'm working on the validation.
Seems there are some required files not tracking by git, "git clean -dxf" would delete them and cause failures.

I also see some failure in one of the large file uploading case. I think I can send a PR to your branch later.

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 27, 2023

Seems there are some required files not tracking by git, "git clean -dxf" would delete them and cause failures.

How strange. Do you know which files are having issues? I'm surprised it built in CI with untracked changes.

I also see some failure in one of the large file uploading case. I think I can send a PR to your branch later.

Sure! Also happy to take a look at a repro if you have a consistent one. 👍

parsedHeaders: FileSystemListPathsHeaders;
};
};
export type ListPathsSegmentResponse = FileSystemListPathsHeaders & PathListModel;
Copy link
Copy Markdown
Member

@EmmaZhu EmmaZhu Feb 28, 2023

Choose a reason for hiding this comment

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

Would this interface miss row response?
Would have the same question on several below response definitions like: PathCreateResponse, PathDeleteResponse, PathFlushDataResponse...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Looking into this, it seems that ListPathsSegmentResponse was not actually used anywhere in the public API surface, presumably because only FileSystemListPathsResponse is used instead. I've removed this unnecessary type.

I also fixed up the typings where _response wasn't being typed correctly for headers-only response models, namely:

PathCreateResponse
PathDeleteResponse
FileFlushResponse
FileUploadResponse
PathSetAccessControlResponse
PathSetPermissionsResponse

@EmmaZhu
Copy link
Copy Markdown
Member

EmmaZhu commented Feb 28, 2023

The failure is in test case upload with chunkSize = FILE_UPLOAD_MAX_CHUNK_SIZE should succeed but it's not caused by migration, the migration should be fine.

The 'git clean -dxf' issue might be caused by my local environment, the issue has gone on a totally new cloned environment.

I left one comment. We'd need to run some perf/resource consumption testing before releasing, but I don't think it's a blocking for this PR.

@xirzec
Copy link
Copy Markdown
Member Author

xirzec commented Feb 28, 2023

I left one comment. We'd need to run some perf/resource consumption testing before releasing, but I don't think it's a blocking for this PR.

Yes, thank you for this! It was a good catch. @HarshaNalluru do we have existing perf tests for this package?

@HarshaNalluru
Copy link
Copy Markdown
Contributor

@xirzec xirzec merged commit 83d9b65 into Azure:main Mar 1, 2023
@xirzec xirzec deleted the storageFileDatalake branch March 1, 2023 17:36
xirzec added a commit that referenced this pull request Jun 7, 2023
### 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
minhanh-phan pushed a commit to minhanh-phan/azure-sdk-for-js that referenced this pull request Jun 12, 2023
### Packages impacted by this PR

`@azure/storage-file-share`

### Issues associated with this PR

Azure#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)_

Azure#24141, Azure#24835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants