Skip to content

[Core] [Azure] Updating pinned Azure python module references - #57744

Closed
marosset wants to merge 2 commits into
ray-project:masterfrom
marosset:update-reps
Closed

marosset wants to merge 2 commits into
ray-project:masterfrom
marosset:update-reps

Conversation

@marosset

Copy link
Copy Markdown
Contributor

Description

Updating pinned versions for Azure python packages

Related issues

Types of change

  • Bug fix 🐛
  • New feature ✨
  • Enhancement 🚀
  • Code refactoring 🔧
  • Documentation update 📖
  • Chore 🧹
  • Style 🎨

Checklist

Does this PR introduce breaking changes?

  • Yes ⚠️
  • No

Testing:

  • Added/updated tests for my changes
  • Tested the changes manually
  • This PR is not tested ❌ (please explain why)

Code Quality:

  • Signed off every commit (git commit -s)
  • Ran pre-commit hooks (setup guide)

Documentation:

  • Updated documentation (if applicable) (contribution guide)
  • Added new APIs to doc/source/ (if applicable)

Additional context

Part of #55906

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the pinned versions for several Azure Python packages within test-requirements.txt. While keeping dependencies current is a good practice, the corresponding compiled requirements file, python/requirements_compiled.txt, has not been updated to reflect these changes. This can lead to dependency conflicts and build failures. It's important to regenerate python/requirements_compiled.txt to ensure consistency across the project's dependencies.

cursor[bot]

This comment was marked as outdated.

@marosset

Copy link
Copy Markdown
Contributor Author

After updating python/requirements/test-requirements.txt I ran ./ci/ci.sh compile_pip_dependencies to update the requirements_compiled.txt file.

Is there something else that needs to be done here?

@marosset

Copy link
Copy Markdown
Contributor Author

After updating python/requirements/test-requirements.txt I ran ./ci/ci.sh compile_pip_dependencies to update the requirements_compiled.txt file.

Is there something else that needs to be done here?

I copied the requirements_compiled.txt from the buildkite job.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Oct 16, 2025
@ZacAttack ZacAttack added the go add ONLY when ready to merge, run all tests label Oct 16, 2025
@@ -2434,6 +2431,7 @@ typing-extensions==4.12.2
# gradio
# gradio-client
# graphene
# grpcio

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've kicked off the premerge tests to make sure, but this one makes me a touch nervous. Ray vendors grpc, so I'm not sure what this will do....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all the azure modules would work with grpcio v1.74.0.

It looks like this may have just gotten updated due to a new version being released and

# Python version-specific requirements
grpcio >= 1.32.0; python_version < '3.10'
grpcio >= 1.42.0; python_version >= '3.10'
# Version used in mac CI; needs upgrade.
grpcio == 1.54.2; sys_platform == "darwin"

Should we pin v1.74.0 for python versions >= 3.10?

@github-actions

github-actions Bot commented Nov 1, 2025

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Nov 1, 2025
@marosset

marosset commented Nov 3, 2025

Copy link
Copy Markdown
Contributor Author

@ZacAttack - Do you have any suggestions on how to correctly handle the dependencies here?
Many of the Azure packages I'm bumping are quite old

@github-actions github-actions Bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Nov 4, 2025
@MengjinYan

Copy link
Copy Markdown
Contributor

@marosset Thanks for the wait! Do you mind resolve the conflicts in your PR?

@andrew-anyscale Do you mind taking a look at the dependency updates?

@elliot-barn

elliot-barn commented Jul 27, 2026 •

Copy link
Copy Markdown
Collaborator

@marosset Updating the deps in this PR here

@elliot-barn elliot-barn mentioned this pull request Jul 28, 2026
elliot-barn added a commit that referenced this pull request Jul 31, 2026
Bumping azure deps 

azure-cli-core==2.77.0
azure-identity==1.23.1
azure-mgmt-compute==35.0.0
azure-mgmt-network==29.0.0
azure-mgmt-resource==24.0.0
msrestazure==0.6.4.post1


Bump ref from: #57744

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
@elliot-barn

elliot-barn commented Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator

@marosset my PR is merged. Feel free to close this PR

Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
Bumping azure deps 

azure-cli-core==2.77.0
azure-identity==1.23.1
azure-mgmt-compute==35.0.0
azure-mgmt-network==29.0.0
azure-mgmt-resource==24.0.0
msrestazure==0.6.4.post1


Bump ref from: ray-project#57744

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
Bumping azure deps

azure-cli-core==2.77.0
azure-identity==1.23.1
azure-mgmt-compute==35.0.0
azure-mgmt-network==29.0.0
azure-mgmt-resource==24.0.0
msrestazure==0.6.4.post1

Bump ref from: ray-project#57744

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Signed-off-by: 400Ping <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
Bumping azure deps 

azure-cli-core==2.77.0
azure-identity==1.23.1
azure-mgmt-compute==35.0.0
azure-mgmt-network==29.0.0
azure-mgmt-resource==24.0.0
msrestazure==0.6.4.post1


Bump ref from: ray-project#57744

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
rueian added a commit that referenced this pull request Oct 24, 2026
## Description

`azure-mgmt-resource` 25.0.0 split deployment operations into the
separate `azure-mgmt-resource-deployments` package. Ray's Azure
autoscaler still relies on the legacy deployment APIs exposed through
`ResourceManagementClient`, which breaks with the newer SDK layout.

This change uses the dedicated deployments client when available,
preserves the legacy path for existing 24.x installations, and raises an
actionable error when neither API surface is available. Current
Ray-managed Azure installation paths also install
`azure-mgmt-resource-deployments==2.0.0`.

## Duplicate work

I searched current Ray PRs and issues for the Azure deployments SDK
split, `DeploymentsMgmtClient`, `azure-mgmt-resource-deployments`, and
related resource SDK 25 and 26 terms. I did not find an active PR
implementing this autoscaler source migration.

#57744 was also reviewed and only updates dependency files. It does not
implement the corresponding autoscaler source migration.

## Tests

Compatibility matrix:

- `azure-mgmt-resource==24.0.0`, without
`azure-mgmt-resource-deployments`: 36 passed
- `azure-mgmt-resource==24.0.0` +
`azure-mgmt-resource-deployments==2.0.0`: 36 passed
- `azure-mgmt-resource==25.0.0` +
`azure-mgmt-resource-deployments==2.0.0`: 36 passed
- `azure-mgmt-resource==26.0.0` +
`azure-mgmt-resource-deployments==2.0.0`: 36 passed

Also ran the targeted Azure autoscaler tests, `test_autoscaler_yaml.py`,
relevant pre-commit checks, `git diff --check`, and `raydepsets
--check`.

`testValidateDefaultConfig` for vSphere produces the same failure on
unmodified upstream and is not introduced by this change.

No live Azure deployment was performed, and the full Ray Bazel/CI suite
was not run locally.

## Dependency update

This PR adds one Azure SDK dependency to Ray's Azure dependency inputs
and installation paths. The corresponding changes in
`requirements_compiled.txt` and the raydepset lock files are generated
outputs of that dependency update.

## AI assistance

AI assistance was used. I used Ziek for investigation, implementation
support, and validation.

Ziek is a system I am building to help software changes propagate safely
from upstream providers into affected downstream codebases by
identifying impact, determining the appropriate migration, and verifying
the result before delivery. This Azure SDK change is a concrete example
of that workflow.

I reviewed every changed line, ran the tests listed above, and take
responsibility for this change.

---------

Signed-off-by: Sai Teja Mutchi <[email protected]>
Co-authored-by: Rueian <[email protected]>
Co-authored-by: Alima Azamat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Development

Successfully merging this pull request may close these issues.

5 participants