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

Add API so stores can get Arc<Store> or &Store #679

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

allada
Copy link
Member

@allada allada commented Feb 23, 2024

A little bit of cleanup to remove the need have an Arc when a user wants to up/down-cast to another store. Users can now do this by reference if they don't have an Arc.


This change is Reviewable

Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nativelink-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 23, 2024 4:56pm

Copy link
Member Author

@allada allada left a comment

Choose a reason for hiding this comment

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

+@chrisstaite-menlo

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Analyze (javascript-typescript), Analyze (python), Bazel Dev / ubuntu-22.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Local / ubuntu-22.04, Remote / large-ubuntu-22.04, Vercel, asan / ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), integration-tests (20.04), integration-tests (22.04), macos-13, pre-commit-checks, publish-image, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, vale, windows-2022 / stable, zig-cc ubuntu-20.04, zig-cc ubuntu-22.04 (waiting on @chrisstaite-menlo)

A little bit of cleanup to remove the need have an Arc<Store> when
a user wants to up/down-cast to another store. Users can now do this
by reference if they don't have an Arc<Store>.
Copy link
Member

@adam-singer adam-singer left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 22 of 24 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: 0 of 1 LGTMs obtained (waiting on @chrisstaite-menlo)

Copy link
Member Author

@allada allada left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 LGTMs obtained (waiting on @chrisstaite-menlo)


nativelink-store/src/completeness_checking_store.rs line 361 at r1 (raw file):

    }

    fn as_any(self: Arc<Self>) -> Box<dyn std::any::Any + Send> {

yay! finally got rid of this insanely dumb heap allocation.

Copy link
Member Author

@allada allada left a comment

Choose a reason for hiding this comment

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

-@chrisstaite-menlo

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@allada allada merged commit 5df8a78 into TraceMachina:main Feb 28, 2024
26 checks passed
aaronmondal added a commit to aaronmondal/nativelink that referenced this pull request Mar 2, 2024
)"

This reverts commit 5df8a78.

This appears to increase build size unnaturally.
aaronmondal added a commit to aaronmondal/nativelink that referenced this pull request Mar 2, 2024
)"

This reverts commit 5df8a78.

This appears to increase build size unnaturally, crashing CI.
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.

None yet

3 participants