Skip to content

Sync eng/common directory with azure-sdk-tools for PR 10579 #34262

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 3 commits into from
May 10, 2025

Conversation

azure-sdk
Copy link
Collaborator

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

@Copilot Copilot AI review requested due to automatic review settings May 9, 2025 02:03
@azure-sdk azure-sdk requested a review from a team as a code owner May 9, 2025 02:03
@azure-sdk azure-sdk requested a review from heaths May 9, 2025 02:03
@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 May 9, 2025
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 synchronizes the eng/common directory with the latest changes from azure-sdk-tools, enhancing support for automatic .env file handling for test resources. Key changes include the addition of a flag ($SupportsTestResourcesDotenv) to control .env file loading, the implementation of a bicep file linting function (LintBicepFile), and adjustments in the test resource scripts to improve .env file generation and removal.

Reviewed Changes

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

Show a summary per file
File Description
eng/common/scripts/common.ps1 Added a configuration flag for controlling automatic .env file loading.
eng/common/TestResources/TestResources-Helpers.ps1 Introduced the LintBicepFile function and updated deployment output logic for .bicep.
eng/common/TestResources/Remove-TestResources.ps1 Extended file removal logic to delete .env files generated by test resource scripts.
eng/common/TestResources/README.md Updated documentation regarding the .env file requirements and gitignore configuration.
eng/common/TestResources/New-TestResources.ps1.md Revised documentation to reflect updated OutFile behavior and file protection details.
eng/common/TestResources/New-TestResources.ps1 Modified logic to conditionally enable OutFile based on Windows and dotenv support.

@azure-sdk azure-sdk force-pushed the sync-eng/common-testresources-dotenv-10579 branch from 88e96df to 7a1f9b6 Compare May 9, 2025 02:22
heaths added 3 commits May 9, 2025 03:32
If a language repo opts into it *and* if a `test-resources.bicep` file exists and lints clean of writing secrets *and* if the `.env` file is gitignore'd, write a `.env` file next to `test-resources.bicep`.
@azure-sdk azure-sdk force-pushed the sync-eng/common-testresources-dotenv-10579 branch from 7a1f9b6 to a0e02bb Compare May 9, 2025 03:32
@heaths heaths merged commit 638efaf into main May 10, 2025
14 checks passed
@heaths heaths deleted the sync-eng/common-testresources-dotenv-10579 branch May 10, 2025 04:52
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