Skip to content

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

Merged
weshaggard merged 3 commits intomainfrom
copilot/fix-8652dad9-2974-43ab-8926-5f24ede8b07a
Jun 24, 2025
Merged

Remove LinuxImageDemand variable and replace usage with actual string value#41734
weshaggard merged 3 commits intomainfrom
copilot/fix-8652dad9-2974-43ab-8926-5f24ede8b07a

Conversation

Copy link
Contributor

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 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 AI requested a review from weshaggard June 24, 2025 00:19
@weshaggard weshaggard marked this pull request as ready for review June 24, 2025 00:21
Copilot AI review requested due to automatic review settings June 24, 2025 00:21
Copy link
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

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 AI requested a review from 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.

3 participants