Skip to content

test pyspec#3453

Open
wonwuakpa-msft wants to merge 8 commits into
mainfrom
wendi/typespecTesting
Open

test pyspec#3453
wonwuakpa-msft wants to merge 8 commits into
mainfrom
wendi/typespecTesting

Conversation

@wonwuakpa-msft
Copy link
Copy Markdown
Member

Description

  • Feature / Bug Fix: (Brief description of the feature or issue being addressed)

  • Related Links:

  • Issues

  • Team thread

  • Documents

  • [Email Subject]

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

Thank you for your contribution to AzCopy!

@wonwuakpa-msft
Copy link
Copy Markdown
Member Author

\azp run

@wonwuakpa-msft wonwuakpa-msft marked this pull request as ready for review May 29, 2026 18:58
Copilot AI review requested due to automatic review settings May 29, 2026 18:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates AzCopy’s ADLS Gen2 ACL handling to correctly target the filesystem root when the transfer path is empty, alongside dependency and CI adjustments.

Changes:

  • Handle empty source/destination paths by using the filesystem root directory client (NewDirectoryClient("/")) for ACL get/set.
  • Update Go dependencies (notably Azure SDK packages) in go.mod/go.sum.
  • Adjust E2E pipeline Azurite startup to include --skipApiVersionCheck.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ste/sourceInfoProvider-Blob.go Adds root-directory ACL retrieval when SrcFilePath is empty; improves error context.
ste/sender-blobFolders.go Adds root-directory ACL setting when DstFilePath is empty.
go.mod Updates Azure SDK + x/* dependencies (including azblob version change).
go.sum Syncs module checksums to match go.mod updates.
AzuriteConfig Adds a new JSON file (appears to be a local artifact).
azurePipelineTemplates/run-e2e.yml Adds --skipApiVersionCheck to Azurite invocation in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +151 to +153
if err != nil {
return nil, fmt.Errorf("Error getting root directory ACL: %v", err)
}
Comment on lines +159 to +161
if err != nil {
return nil, fmt.Errorf("Error getting file ACL: %v", err)
}
Comment thread ste/sender-blobFolders.go
Comment on lines +75 to +80
// We cannot set ACLs with an empty file path
// https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control#can-i-set-the-acl-of-a-container
dstDirectoryDatalakeClient := fileSystemClient.NewDirectoryClient("/")
_, err = dstDirectoryDatalakeClient.SetAccessControl(b.jptm.Context(), &file.SetAccessControlOptions{ACL: acl})
if err != nil {
b.jptm.FailActiveSend("Setting Root Directory ACL", err)
Comment thread ste/sender-blobFolders.go
Comment on lines +149 to +154
if b.jptm.Info().DstFilePath == "" {
dstDirectoryDatalakeClient := dstFileSystemClient.NewDirectoryClient("/")
_, err = dstDirectoryDatalakeClient.SetAccessControl(b.jptm.Context(), &file.SetAccessControlOptions{ACL: acl})
if err != nil {
b.jptm.FailActiveSend("Setting Root Directory ACL", err)
return folderPropertiesSetInCreation{} // standard completion will detect failure
Comment thread AzuriteConfig
@@ -0,0 +1 @@
{"instaceID":"565d2ba6-9736-4429-b396-41298b2f305a"} No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants