Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Update OpenCensus #32553

Merged
merged 27 commits into from
Feb 25, 2023
Merged

[core] Update OpenCensus #32553

merged 27 commits into from
Feb 25, 2023

Conversation

fishbone
Copy link
Contributor

@fishbone fishbone commented Feb 14, 2023

Why are these changes needed?

This PR updated OpenCensus.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
@fishbone fishbone changed the title [wip]Update opc [core] Update OpenCensus Feb 22, 2023
@fishbone fishbone marked this pull request as ready for review February 22, 2023 23:54
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Signed-off-by: Yi Cheng <74173148+iycheng@users.noreply.github.com>
Copy link
Contributor

@rkooo567 rkooo567 left a comment

Choose a reason for hiding this comment

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

Didn't know they still release new versions... thought it was deprecated.

Btw, how old is current version, and is the new version the latest stable release?

Also, little concerned about that there are lots of changes from the patch file. Is the only relevant changes from the changes from the upstream code?

class PrometheusExporter final : public ::prometheus::Collectable {
public:
- std::vector<prometheus::MetricFamily> Collect() const override;
+ std::vector<prometheus::MetricFamily> Collect() override;
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious, but why is it changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because prometheus-cpp mark it as const in the new version and this one update the code to make it compile. Don't want to upgrade prometheus-cpp since the changes are too big and seems not a blocker for std-20

@fishbone
Copy link
Contributor Author

Also, little concerned about that there are lots of changes from the patch file. Is the only relevant changes from the changes from the upstream code?

It's because code file changes invalidates the patch files. Basically, I just copy paste what's in the patch files and regenerate it.

The old one is 2019 and the new one is 2022. I don't think it's released any more and I think they are living on the master. Not too many commits between these two actually. If the test looks good, the risk should be low.

Copy link
Contributor

@rkooo567 rkooo567 left a comment

Choose a reason for hiding this comment

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

LGTM. Finger crossed this doesn't cause random issues..

@fishbone fishbone merged commit 2e83d1b into ray-project:master Feb 25, 2023
@pcmoritz
Copy link
Contributor

Can you make a PR against OpenCensus suggesting our patches and the reasoning why they can be beneficial to other users as well (if they can be)? This will reduce our maintainance overhead in the future.

edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
This PR updated OpenCensus.

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
peytondmurray pushed a commit to peytondmurray/ray that referenced this pull request Mar 22, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
This PR updated OpenCensus.

Signed-off-by: elliottower <elliot@elliottower.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants