Skip to content

[ci] Bump OpenTelemetry to 1.45.2 and filelock to 4.2.4+ on Python 3.12+ - #68360

Merged
jeffreywang88 merged 1 commit into
masterfrom
bump-otel-filelock
Nov 20, 2026
Merged

jeffreywang88 merged 1 commit into
masterfrom
bump-otel-filelock

Conversation

@jeffreywang88

@jeffreywang88 jeffreywang88 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Overview

vLLM 0.34.0 needs opentelemetry>=1.45.1 and filelock>=4.2.4. Ray pins OpenTelemetry 1.39.0 and filelock 3.29.0 in requirements_compiled.txt, and the rayllm depsets are built on top of that, so the vLLM bump can't resolve. This PR lifts both pins for all of Ray. The vLLM bump itself is stacked on top in #68361.

Approach

  • OpenTelemetry: bump the family pins in test-requirements.txt to 1.45.2 (api, sdk, proto, exporter-otlp-proto-grpc) and 0.66b2 (exporter-prometheus, semantic-conventions, instrumentation-fastapi).
  • filelock: add a >=4.2.4 floor on Python 3.12+ only. aim (tune tests, Python < 3.12) caps filelock below 4, even in its latest release, so 3.10/3.11 stay on 3.29.0. The same floor goes in base-test-requirements.txt, which only the rayllm base depset reads.
  • Regenerated requirements_compiled.txt (ci/ci.sh compile_pip_dependencies, Python 3.11, pip-tools 7.4.1), requirements_compiled_py3.14.txt (compile_pip_dependencies_py314), and every depset (raydepsets build --all-configs). Apart from OpenTelemetry and filelock, the only other change is snowflake-connector-python 4.8 → 5.2 on Python 3.14, because 4.8 caps filelock below 4.
  • [deps][core] Bump OpenTelemetry to 1.40 / 0.61b0 to fix headers #66698 bumps OpenTelemetry to 1.40 to fix duplicate Prometheus headers. This PR goes further to 1.45.2, so it would replace that one.

Validation

  • python/ray/tests/test_open_telemetry_metric_recorder.py: 19 passed.
  • python/ray/serve/tests/test_serve_with_tracing.py: passed.
  • Drove OpenTelemetryMetricRecorder through PrometheusMetricReader with a gauge, counter, sum and histogram, including one metric with two different label sets. The scraped output parses with prometheus_client, has one HELP block per metric, and is identical on 1.39.0 and 1.45.2.
  • test_metrics_agent.py and dashboard/.../test_reporter.py: the failures I saw locally come from my dev box (a Ray cluster already running there, no dashboard frontend build, no DNS). The same 17 tests fail the same way with the old pins, so I'm relying on CI for these.

🤖 Generated with Claude Code

@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 Python dependency lock files and requirements across various environments. Key changes include upgrading the opentelemetry suite of packages (such as opentelemetry-api and opentelemetry-sdk) to version 1.45.2 (and related instrumentation/exporter packages to 0.66b2). Additionally, filelock is upgraded to 4.2.12 for Python 3.12+ to satisfy vLLM requirements, and snowflake-connector-python is updated to 5.2.0 in the Python 3.14 requirements. No review comments were provided, so I have no further feedback on the changes.

@jeffreywang88 jeffreywang88 added the go add ONLY when ready to merge, run all tests label Nov 19, 2026
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core devprod labels Nov 20, 2026
@jeffreywang88
jeffreywang88 merged commit 935cc32 into master Nov 20, 2026
7 checks passed
@jeffreywang88
jeffreywang88 deleted the bump-otel-filelock branch November 20, 2026 07:10
jeffreywang88 added a commit that referenced this pull request Nov 21, 2026
## Overview

Bumps Ray LLM to vLLM 0.34.0. Stacked on #68360, which lifts the
OpenTelemetry and filelock pins vLLM 0.34 needs; review that one first.
No open PR does this bump.

## Approach

- `vllm[audio]` 0.33.0 → 0.34.0 in `setup.py` and
`llm-requirements.txt`. `nixl` / `nixl-cu13` 1.5.0 → 1.5.2 to match
vLLM's `kv_connectors.txt`.
- `docker/ray-llm/Dockerfile`: vLLM scripts ref → `v0.34.0`, DeepEP
commit → the one vLLM 0.34's install script uses.
- Regenerated the rayllm locks (`raydepsets build`). Notable moves:
transformers 5.17 → 5.22.2, huggingface-hub 1.33 → 2.4.0, flashinfer
0.7.3, datasets 5.2.0, mistral-common 1.13.1.
- No other Ray code changes needed for the bump. I went through the vLLM
0.34 changes that touch what Ray imports (engine client,
`init_app_state` / `build_app`, tokenizer, the DP server) and they still
line up.
- Removed the compile-cache backport (`engines/vllm/patches/`). vLLM
0.34 has `VLLM_COMPILE_ON_ONE_RANK` (vllm-project/vllm#63247) and pins
torch 2.14, so ModelExpress setup now just sets that flag, unless the
user already set it. MX peers load a transferred compile cache on other
GPU indices, so the cache has to be device-neutral.
- Docs: version tables now say nightly → 0.34.0, and I added the missing
2.61.0 (0.33.0) and 2.60.0 (0.29.0) rows from the release branches.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Jeffrey Wang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
elliot-barn added a commit that referenced this pull request Nov 22, 2026
…ndency pins (#68360) onto releases/2.61.0 (#68425)

## Why

Ship Ray 2.61.0 with vLLM 0.34.0 instead of 0.33.0.

## What

Two commits on top of `releases/2.61.0`:

1. **#68360** (merged on master as 935cc32): bumps OpenTelemetry to
1.45.2 and filelock to 4.2.4+ on Python 3.12+. vLLM 0.34.0 can't resolve
without it.
2. **#68361** at 4cc6bf6 (by @jeffreywang88, **still open against
master**): bumps `vllm[audio]` to 0.34.0, NIXL to 1.5.2, the ray-llm
Dockerfile refs, and the rayllm locks, and replaces the compile-cache
backport with `VLLM_COMPILE_ON_ONE_RANK`.

Differences from the sources:

- **#68360 conflict**: one comment-only conflict in
`requirements_compiled_py3.14.txt` (the `# via` list for
`sortedcontainers`). Master lists `hypothesis` there, which #68259 added
and this branch doesn't have, so the entry is `# via distributed`.
- **Docs**: the vLLM version tables say 2.61.0 → 0.34.0. #68361 on
master adds that row as 0.33.0, which will need the same fix there if
this pick lands.
- Every other file #68361 touches is identical to its PR head.

grpcio stays at 1.75.0: #68361's locks were generated before #67491
(grpcio 1.85.0), which is not on this branch.

## Testing

- `bazel run //ci/raydepsets:raydepsets -- build --all-configs --check`
passes ("Lock files are up to date").
- No images built and no LLM tests run locally.

This is a draft because #68361 hasn't merged on master. If that PR
changes before it merges, this pick needs to be refreshed to match.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Jeffrey Wang <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Jeffrey Wang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
rueian pushed a commit that referenced this pull request Nov 25, 2026
…68526)

## Description
`test_working_dir_cleanup` in `test_runtime_env_working_dir` has
[recently been
flaky](https://buildkite.com/ray-project/postmerge/builds/21214#01a20c29-f2ce-41cc-84d2-226a35240703).
Upon investigation, we see that the failure began occurring after we've
upgraded the filelock version in
#68360. The working dir cleanup
test works by checking the ctime of files to ensure that a previous file
has been cleaned up. However, the upgrade from filelock `3.29.0` to
`4.2.12` meant that where `3.29` used to cleanup the file lock file, the
`4.2.12` change no longer does this to ensure stronger mutual exclusion
guarantees. tox-dev/filelock#574

This PR deflakes the `test_working_dir_cleanup` by ignoring the filelock
files since those are now persisted for stronger safety. Though the
files themselves have 0 bytes, they do incur an inode per unique URI
that the user needs for the runtime env. Because we do not expect a
large number of unique URI throughout the lifetime of a job, we have
decided to keep consistent with filelock's decision for stronger mutual
exclusion guarantees.

## Related issues

## Additional information
Postmerge run post fix:
https://buildkite.com/ray-project/postmerge/builds/21232

Signed-off-by: davik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants