Skip to content

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

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

[core] Fix cpp api mac breakage from #56514#56915
edoakes merged 10 commits intoray-project:masterfrom
dayshah:fix-cpp-mac

Conversation

@dayshah
Copy link
Copy Markdown
Contributor

@dayshah dayshah commented Sep 25, 2025

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.

Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
Signed-off-by: dayshah <dhyey2019@gmail.com>
@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 <dhyey2019@gmail.com>
Copy link
Copy Markdown
Collaborator

@edoakes edoakes left a comment

Choose a reason for hiding this comment

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

sure!

@@ -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
7 checks passed
@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 <dhyey2019@gmail.com>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
joshkodi pushed a commit to joshkodi/ray that referenced this pull request Oct 13, 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 <dhyey2019@gmail.com>
Signed-off-by: Josh Kodi <joshkodi@gmail.com>
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 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 <dhyey2019@gmail.com>
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 <dhyey2019@gmail.com>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 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 <dhyey2019@gmail.com>
Signed-off-by: Aydin Abiar <aydin@anyscale.com>
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 <dhyey2019@gmail.com>
Signed-off-by: Future-Outlier <eric901201@gmail.com>
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