Skip to content

Sync eng/common directory with azure-sdk-tools for PR 10913 #45739

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#10913 See eng/common workflow

Path.Combine will allow for fully qualified paths to override the combination. For example `Path.Combine("a","b","c:\test")` will resolve to `c:\test'. We have depended on such behavior in a few places like https://github.com/Azure/azure-sdk-for-python/blob/d66b5160f2fb9a3ca03e833a65b1c429993b2bc2/eng/pipelines/templates/steps/smoke-test-steps.yml#L99 so I'm reverting back to Path.Combine.
@azure-sdk azure-sdk requested review from Copilot and weshaggard June 17, 2025 22:16
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Jun 17, 2025
@azure-sdk azure-sdk removed the request for review from weshaggard June 17, 2025 22:16
@azure-sdk azure-sdk requested a review from a team as a code owner June 17, 2025 22:16
Copy link
Contributor

@Copilot 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

This PR syncs the eng/common workflow scripts with updates from the azure-sdk-tools repository, ensuring consistent path handling.

  • Replaces string interpolation for constructing service directory paths with Path.Combine for better cross-platform compatibility.
Comments suppressed due to low confidence (1)

eng/common/TestResources/New-TestResources.ps1:166

  • [nitpick] Consider using PowerShell's native Join-Path cmdlet for path concatenation (e.g., Join-Path -Path $repositoryRoot -ChildPath "sdk/$ServiceDirectory") to improve readability and consistency with PowerShell conventions.
        $root = [System.IO.Path]::Combine($repositoryRoot, "sdk", $ServiceDirectory) | Resolve-Path

@azure-sdk azure-sdk merged commit 86de9be into main Jun 18, 2025
16 checks passed
@azure-sdk azure-sdk deleted the sync-eng/common-weshaggard-patch-1-10913 branch June 18, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants