Skip to content

[core] Fix cpp api mac breakage from #56514 - #56915

Merged
edoakes merged 10 commits into
ray-project:masterfrom
dayshah:fix-cpp-mac
Sep 29, 2025
Merged

edoakes merged 10 commits into
ray-project:masterfrom
dayshah:fix-cpp-mac

Conversation

@dayshah

@dayshah dayshah commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

https://buildkite.com/ray-project/postmerge-macos/builds/8257#01997de0-1e13-4954-a370-6255f650ca17
mac c++ / java tests broke after #56514.

Fixing by reverting to have tag_defs.cc define the vars in a separate file and not just in the header.

Why does this fix it - I have no idea... for some reason the c++ api dynamic linking madness doesn't like the inlined vars on the mac build specifically???


Note

Moves stats tag key definitions to a new implementation file and replaces object-store tag keys with string literals, updating metric definitions/usages and BUILD.

  • Stats:
    • Tag keys: Move TagKeyType definitions from tag_defs.h to new tag_defs.cc (now extern in header); convert LocationKey and ObjectStateKey to constexpr std::string_view.
    • Metrics: Update object_store_memory tags in metric_defs.cc to use ("Location", "ObjectState").
  • Raylet:
    • Metrics usage: Change LocalObjectManager::RecordMetrics to record STATS_object_store_memory with {{stats::LocationKey, "SPILLED"}}.
  • Build:
    • Add tag_defs.cc to srcs of //src/ray/stats:tag_defs in BUILD.bazel.

Written by Cursor Bugbot for commit 53cb359. This will update automatically on new commits. Configure here.

@dayshah
dayshah marked this pull request as ready for review September 28, 2025 22:07
@dayshah
dayshah requested a review from a team as a code owner September 28, 2025 22:07
@dayshah dayshah added the go add ONLY when ready to merge, run all tests label Sep 29, 2025
@dayshah
dayshah enabled auto-merge (squash) September 29, 2025 00:39
@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label Sep 29, 2025
@dayshah
dayshah disabled auto-merge September 29, 2025 05:40
Signed-off-by: dayshah <[email protected]>

@edoakes edoakes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

sure!

Comment thread src/ray/stats/tag_defs.cc
@@ -0,0 +1,37 @@
// Copyright 2017 The Ray Authors.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: this should be 2025

@edoakes
edoakes merged commit 0cc03f8 into ray-project:master Sep 29, 2025
@dayshah
dayshah deleted the fix-cpp-mac branch September 29, 2025 15:46
dstrodtman pushed a commit to dstrodtman/ray that referenced this pull request Oct 6, 2025
…6915)

https://buildkite.com/ray-project/postmerge-macos/builds/8257#01997de0-1e13-4954-a370-6255f650ca17
mac c++ / java tests broke after ray-project#56514.

Fixing by reverting to have tag_defs.cc define the vars in a separate
file and not just in the header.

Why does this fix it - I have no idea... for some reason the c++ api
dynamic linking madness doesn't like the inlined vars on the mac build
specifically???

---------

Signed-off-by: dayshah <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
…6915)

https://buildkite.com/ray-project/postmerge-macos/builds/8257#01997de0-1e13-4954-a370-6255f650ca17
mac c++ / java tests broke after ray-project#56514.

Fixing by reverting to have tag_defs.cc define the vars in a separate
file and not just in the header.

Why does this fix it - I have no idea... for some reason the c++ api
dynamic linking madness doesn't like the inlined vars on the mac build
specifically???

---------

Signed-off-by: dayshah <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
…6915)

https://buildkite.com/ray-project/postmerge-macos/builds/8257#01997de0-1e13-4954-a370-6255f650ca17
mac c++ / java tests broke after ray-project#56514.

Fixing by reverting to have tag_defs.cc define the vars in a separate
file and not just in the header.

Why does this fix it - I have no idea... for some reason the c++ api
dynamic linking madness doesn't like the inlined vars on the mac build
specifically???

---------

Signed-off-by: dayshah <[email protected]>
Signed-off-by: Future-Outlier <[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 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