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

Update Trieste and fix API breakage #161

Closed
wants to merge 4 commits into from

Conversation

fhackett
Copy link

@fhackett fhackett commented Aug 5, 2024

After Trieste's recent intrusive refcount change, uses of ->shared_from_this() broke.

This PR shows the changes needed for fix that.

For broader discussion (don't merge yet!):

  • seems my change to Trieste added tests in a way that breaks in dependencies. Oops, will fix.
  • As part of intrusive_ptr discussion, there were thoughts of making ->parent() return a Node instead of a NodeDef*

All high-level issues resolved. The rest is a matter of discussing the adaptations I made to ->parent(), which mostly involve shortening ->parent()->shared_from_this(), though it is not done entirely robotically and there might be a style judgement call here or there.

@fhackett fhackett marked this pull request as draft August 5, 2024 16:24
@fhackett
Copy link
Author

fhackett commented Aug 5, 2024

Note: this branch's build will probably break because of an issue in Trieste's new tests that only shows up in dependencies.

@fhackett
Copy link
Author

fhackett commented Aug 6, 2024

Note: microsoft/Trieste#129 tracks the upstream considerations we should resolve or defer before considering this.

@fhackett
Copy link
Author

Build breakages aside, the actual code changes are ready for review.

@fhackett fhackett marked this pull request as ready for review August 21, 2024 12:21
@matajoh matajoh closed this Sep 10, 2024
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.

2 participants