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

feat: Add NewListDirectoryPathsPager for azuredatalake #23905

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

paulbrittain
Copy link

azure-sdk-for-go issue: #23852
other relevant issue: Azure/azure-rest-api-specs#31894

@tanyasethi-msft Please review 🙂

@github-actions github-actions bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage Storage Service (Queues, Blobs, Files) labels Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

Thank you for your contribution @paulbrittain! We will review the pull request and get back to you soon.

@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tanyasethi-msft
Copy link
Member

I also ran the live test (unrecorded, which runs live on a storage account) pipeline, and it seems to fail for the new test added. Find the error below -
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4455746&view=logs&j=30081788-26d0-562e-2814-e633030d4b74&t=d5c76e6b-9ce1-5a1d-ad9d-4395c3c4169b&l=50981
{CD9D7A8D-ECEC-425D-B4B9-DC853C5D731A}

@paulbrittain
Copy link
Author

I also ran the live test (unrecorded, which runs live on a storage account) pipeline, and it seems to fail for the new test added. Find the error below - https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4455746&view=logs&j=30081788-26d0-562e-2814-e633030d4b74&t=d5c76e6b-9ce1-5a1d-ad9d-4395c3c4169b&l=50981 {CD9D7A8D-ECEC-425D-B4B9-DC853C5D731A}

I've added more tests to client_test.go.

I took a closer look at the failure: The tests are adding a Test directory inside the Storage container, so when a test adds a dir1 directory, the actual directory list without a prefix is:

Test
Test/dir1

When a prefix of Test is given, as in the newly added TestFilesystemListDeletedPathsWithPrefix and in other ...WithPrefix tests, the directory list should be:

dir1

The expected results have been changed to expect this.

Could you please run the azdatalake pipeline again?

@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tanyasethi-msft
Copy link
Member

@paulbrittain ,
Here are the results -
--- FAIL: Test/TestFilesystemListDirectoryPathsContinuation (9.09s)
(Server Failure) - I shall look into this and get back here.
--- PASS: Test/TestFilesystemListDirectoryPathsMaxResults (0.18s)
--- FAIL: Test/TestFilesystemListDirectoryPathsWithPrefix (0.19s)
{010263CE-9C4C-4D0A-A9FE-B49D1426344D}

@paulbrittain paulbrittain force-pushed the add-datalake-newlistdirectorypathspager branch 3 times, most recently from bc2318f to f8edeab Compare January 13, 2025 15:13
@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tanyasethi-msft
Copy link
Member

I tried to fix the pipeline by making changes to the changelog file, but I do not have access to push to your fork.
{2B82CCE3-9009-40A2-B208-2B9BA35E22E7}
This change in changelog file and removal of live test TestFilesystemListDirectoryPathsContinuation will fix the pipeline.

Error in the test from backend -
Line 1858 -> pager := fsClient.NewListDirectoryPathsPager(&opts) [Normal Listing - showonly=directory]
RequestUrl='https://xxx.blob.core.windows.net:443/gofsfilesystemlistdirectorypathscontinuation?comp=list&maxResults=2&restype=container&showonly=directories'
Line 1866 -> pager = fsClient.NewListDeletedPathsPager() [Listing with showonly=deleted with CT from previous Listing, hence fails]

@paulbrittain paulbrittain force-pushed the add-datalake-newlistdirectorypathspager branch from f8edeab to 1b9abb0 Compare January 22, 2025 13:11
@paulbrittain
Copy link
Author

Hi @tanyasethi-msft

Thank you very much for your continued support, and my apologies for being slow in updating the branch. The suggested changes have been implemented now.

Please check the pipeline again when you have the chance

Paul

@paulbrittain
Copy link
Author

@microsoft-github-policy-service agree company="Helio AG"

@tanyasethi-msft
Copy link
Member

/azp run go - azdatalake

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tanyasethi-msft
Copy link
Member

tanyasethi-msft commented Jan 22, 2025

Hey @paulbrittain ,
As I mentioned earlier, this test - TestFilesystemListDirectoryPathsContinuation is not checking the required information and can be removed. This is also causing the pipeline failure.
Please do the needful and then let's merge the changes to main. We have a release scheduled today - if this can go in today, it'd be great.
Otherwise, we'd have to wait a month for this to GA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
2 participants