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

run the Rust tests before running the Go tests #112

Merged
merged 9 commits into from
Jun 25, 2020

Conversation

laser
Copy link
Contributor

@laser laser commented Jun 24, 2020

Note that this PR needs to be merged and available through rust-filecoin-proofs-api before this PR can be merged. done

Why does this PR exist?

CircleCI should run the Rust tests in addition to the Go tests.

What's in this PR?

This PR modifies the CircleCI config to run the Rust tests. It also fixes a bug in the Rust tests which caused a double free-failure.

@laser laser force-pushed the bugs/run-rust-tests-circleci branch from 33c2419 to 2a77dc5 Compare June 24, 2020 20:14
@laser laser changed the title [WIP] run the Rust tests before running the Go tests run the Rust tests before running the Go tests Jun 24, 2020
cryptonemo added a commit that referenced this pull request Jun 24, 2020
fix: borrow some fixes from PR #112
@laser laser force-pushed the bugs/run-rust-tests-circleci branch from 8610739 to cb78519 Compare June 24, 2020 21:59
@laser laser force-pushed the bugs/run-rust-tests-circleci branch from 3bd4979 to ca74dc1 Compare June 25, 2020 17:38
@laser laser marked this pull request as ready for review June 25, 2020 17:59
@laser laser requested a review from cryptonemo June 25, 2020 18:04
@laser laser merged commit 735a55d into master Jun 25, 2020
@laser laser deleted the bugs/run-rust-tests-circleci branch June 25, 2020 19:38
gracenoah pushed a commit to gracenoah/filecoin-ffi that referenced this pull request Dec 20, 2020
fix: borrow some fixes from PR filecoin-project#112
gracenoah pushed a commit to gracenoah/filecoin-ffi that referenced this pull request Dec 20, 2020
* run the Rust tests before running the Go tests

* remove problematic unused (and broken) cid accessors

* use CStr instead of CString to prevent double-free in test

Transferring ownership to Rust (test) meant that string-memory was freed twice: once when the Rust string goes out of scope, and once when fil_destroy_string_response is called. That was bad.

* restore temporarily disabled test functions

* remove errand debug

* don't need to ignore log test

* set parameter cache explicitly

* bump cache key

* ignore leaky log-to-fd test
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