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

walk the build graph in parallel #82

Merged
merged 52 commits into from
Nov 3, 2022
Merged

walk the build graph in parallel #82

merged 52 commits into from
Nov 3, 2022

Conversation

BrianHicks
Copy link
Member

This makes Coordinator walk the build graph in parallel.

After some discussion on Zulip, I did this with async Rust instead of spawning threads directly. I think this could still use some improvement, but it works well for now. We can tune it with tokio-console or something soon!

@bhansconnect
Copy link
Collaborator

bhansconnect commented Oct 27, 2022

You should be able to use roc gen-stub-lib some-example-app.roc on nightly now to work around the build issues here.

Just run it before cargo test

@BrianHicks
Copy link
Member Author

amazing, thank you!

@BrianHicks
Copy link
Member Author

@bhansconnect any idea what could be going on here? Looks like we're generating libapp.so correctly, but then cargo test complains it can't be found. Is it looking somewhere other than in the current directory, do you think? https://github.com/roc-lang/rbt/actions/runs/3374554604/jobs/5600303279

@BrianHicks
Copy link
Member Author

ok, monkeyed around with LD_LIBRARY_PATH. Now it's saying this:

/home/runner/work/rbt/rbt/target/release/deps/host-e02e8b3c7e864cef: error while loading shared libraries: ./libapp.so: ELF file's phentsize not the expected size

src/coordinator.rs Outdated Show resolved Hide resolved
Copy link
Sponsor Contributor

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

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

Looks lovely! 🎉

BrianHicks and others added 3 commits November 3, 2022 09:39
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
@BrianHicks BrianHicks merged commit f6efcad into main Nov 3, 2022
@BrianHicks BrianHicks deleted the i73-parallel branch November 3, 2022 18:04
@BrianHicks BrianHicks linked an issue Nov 16, 2022 that may be closed by this pull request
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.

walk the build graph in parallel
3 participants