-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{ARM} fix: Add @live_only() annotations to bicep scenario tests for CI compatibility #32171
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
Conversation
…atibility - Add @live_only() annotation to test_bicep_deployment_size_optimization - Add @live_only() annotation to test_bicep_vs_arm_template_deployment - These tests require bicep CLI which is not available in CI environments - Annotations ensure tests only run in live test scenarios, preventing CI failures - Unit tests with mocks continue to run in CI for proper coverage Tests validated: - 2 scenario tests properly SKIPPED in CI mode - 8 unit tests continue to PASS in CI mode
️✔️AzureCLI-FullTest
|
|
Hi @vhvb1989, |
There was a problem hiding this 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 fixes CI/CD pipeline failures by adding @live_only() annotations to bicep scenario tests that depend on the bicep CLI tool. The tests require bicep CLI which is not available in CI environments, causing test failures.
- Adds @live_only() decorator to two bicep scenario tests
- Ensures tests only run in live environments where bicep CLI is available
- Maintains CI test coverage through existing unit tests with mocks
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
This PR adds @live_only() annotations to bicep scenario tests to prevent CI failures.
Problem
The bicep template size optimization scenario tests require the bicep CLI tool to be available, which is not installed in CI environments. This causes test failures in CI/CD pipelines.
Solution
Tests Affected
Validation
Related Changes
This PR complements the bicep template size optimization feature by ensuring the associated tests can run properly in CI environments.