[Data] Fix wide_schema_pipeline_tensors cloudpickle deserialization#62149
Merged
goutamvenkat-anyscale merged 4 commits intoMar 30, 2026
Conversation
…tensor metadata deserialization The test data in S3 was written by Ray 2.49-2.54 which used cloudpickle for tensor shape metadata. Current Ray expects JSON and fails. Setting RAY_DATA_AUTOLOAD_CLOUDPICKLE_TENSOR_METADATA=1 enables the fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Goutam <goutam@anyscale.com>
The previous fix only set the env var on the driver. The deserialization also happens in worker tasks (_fetch_parquet_file_info), so propagate via ray.init(runtime_env=...) for the tensors data type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Goutam <goutam@anyscale.com>
Setting the env var only on the driver script doesn't reach worker tasks. Use cluster.byod.runtime_env which is the established pattern in release tests for setting env vars across all nodes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Goutam <goutam@anyscale.com>
bveeramani
approved these changes
Mar 30, 2026
…de_schema_pipeline tests Signed-off-by: Goutam <goutam@anyscale.com>
mancfactor
pushed a commit
to mancfactor/ray
that referenced
this pull request
Apr 2, 2026
…ay-project#62149) ## Summary - The `wide_schema_pipeline_tensors` release test fails because the S3 test data was written by Ray 2.49-2.54, which serialized tensor shape metadata with cloudpickle. Current Ray expects JSON and raises `ValueError`. - Sets `RAY_DATA_AUTOLOAD_CLOUDPICKLE_TENSOR_METADATA=1` in the test script to enable the cloudpickle fallback for this trusted internal dataset. ## Test plan - [ ] Re-run the `wide_schema_pipeline_tensors` release test and verify it passes - [ ] Confirm other `wide_schema_pipeline_*` variants (primitives, objects, nested_structs) are unaffected 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Goutam <goutam@anyscale.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Frank Mancina <fmancina@haproxy.com>
Lucas61000
pushed a commit
to Lucas61000/ray
that referenced
this pull request
May 15, 2026
…ay-project#62149) ## Summary - The `wide_schema_pipeline_tensors` release test fails because the S3 test data was written by Ray 2.49-2.54, which serialized tensor shape metadata with cloudpickle. Current Ray expects JSON and raises `ValueError`. - Sets `RAY_DATA_AUTOLOAD_CLOUDPICKLE_TENSOR_METADATA=1` in the test script to enable the cloudpickle fallback for this trusted internal dataset. ## Test plan - [ ] Re-run the `wide_schema_pipeline_tensors` release test and verify it passes - [ ] Confirm other `wide_schema_pipeline_*` variants (primitives, objects, nested_structs) are unaffected 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Goutam <goutam@anyscale.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
wide_schema_pipeline_tensorsrelease test fails because the S3 test data was written by Ray 2.49-2.54, which serialized tensor shape metadata with cloudpickle. Current Ray expects JSON and raisesValueError.RAY_DATA_AUTOLOAD_CLOUDPICKLE_TENSOR_METADATA=1in the test script to enable the cloudpickle fallback for this trusted internal dataset.Test plan
wide_schema_pipeline_tensorsrelease test and verify it passeswide_schema_pipeline_*variants (primitives, objects, nested_structs) are unaffected🤖 Generated with Claude Code