Skip to content

Remove LinuxImageDemand variable and replace usage with actual string value #41734

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
Jun 24, 2025

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jun 24, 2025

Summary

This PR removes the LinuxImageDemand variable from the image.yml file and replaces its usage with the actual string value, aligning with the changes made in Azure/azure-sdk-for-net#50802.

Changes Made

1. Removed Variable Definition

File: eng/pipelines/templates/variables/image.yml

  • Removed the LinuxImageDemand variable definition:
    - name: LinuxImageDemand
      value: ImageOverride -equals $(LINUXVMIMAGE)

2. Replaced Variable Usage

File: eng/pipelines/docindex.yml

  • Replaced variable reference with the actual resolved value:
    - demands: $(LinuxImageDemand)
    + demands: ImageOverride -equals ubuntu-24.04

Rationale

  • Consistency: Aligns with the approach taken in the .NET repository to eliminate these variables
  • Simplification: Removes an unnecessary layer of indirection
  • Maintainability: Makes the pipeline configuration more explicit and easier to understand

Verification

  • ✅ Confirmed no remaining references to LinuxImageDemand or WindowsImageDemand in the repository
  • ✅ Validated that both modified YAML files are syntactically correct
  • ✅ Verified the resolved value (ubuntu-24.04) matches the current LINUXVMIMAGE variable value
  • ✅ Confirmed the change maintains existing pipeline functionality

Note: WindowsImageDemand was not found in this repository, suggesting it was either already removed or never existed in the Python SDK.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

… value

Co-authored-by: weshaggard <9010698+weshaggard@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Remove LinuxImageDemand and WindowsImageDemand from image.yml and replace usages with variable values Remove LinuxImageDemand variable and replace usage with actual string value Jun 24, 2025
@Copilot Copilot AI requested a review from weshaggard June 24, 2025 00:19
Copilot finished work on behalf of weshaggard June 24, 2025 00:19
@weshaggard weshaggard marked this pull request as ready for review June 24, 2025 00:21
@Copilot Copilot AI review requested due to automatic review settings June 24, 2025 00:21
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 removes the unnecessary LinuxImageDemand variable definition from the pipeline configuration and replaces its usage with the explicit string value "ImageOverride -equals ubuntu-24.04" to improve clarity and consistency.

  • Removed the LinuxImageDemand variable from eng/pipelines/templates/variables/image.yml
  • Inlined the demand string in eng/pipelines/docindex.yml to remove indirection

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eng/pipelines/templates/variables/image.yml Removed the LinuxImageDemand variable definition
eng/pipelines/docindex.yml Replaced the variable reference with a hardcoded value

@Copilot Copilot AI requested a review from weshaggard June 24, 2025 00:36
Copilot finished work on behalf of weshaggard June 24, 2025 00:36
@weshaggard weshaggard merged commit d3fed8a into main Jun 24, 2025
18 checks passed
@weshaggard weshaggard deleted the copilot/fix-8652dad9-2974-43ab-8926-5f24ede8b07a branch June 24, 2025 18:08
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