Skip to content

Remove engine feature flag#154

Merged
joshuajbouw merged 2 commits intodevelopfrom
remove-engine-feature
Jun 19, 2021
Merged

Remove engine feature flag#154
joshuajbouw merged 2 commits intodevelopfrom
remove-engine-feature

Conversation

@birchmd
Copy link
Copy Markdown
Member

@birchmd birchmd commented Jun 18, 2021

As @mfornet pointed out previously the engine feature flag doe not seem to add any value, and in fact is a determent to testing because it hides so much logic.

This PR simply removes it.

@birchmd birchmd requested a review from artob as a code owner June 18, 2021 15:16
@birchmd birchmd mentioned this pull request Jun 18, 2021
Copy link
Copy Markdown
Contributor

@sept-en sept-en left a comment

Choose a reason for hiding this comment

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

Nice, thanks for doing this!

Copy link
Copy Markdown
Contributor

@joshuajbouw joshuajbouw left a comment

Choose a reason for hiding this comment

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

Straight forward.

@joshuajbouw joshuajbouw merged commit 8786757 into develop Jun 19, 2021
@joshuajbouw joshuajbouw deleted the remove-engine-feature branch June 19, 2021 05:06
joshuajbouw pushed a commit that referenced this pull request Jun 19, 2021
Per [matklad's blog post](https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html), it is better in our situation to have all our tests be part of the same compilation artifact (as opposed to rust's "integration tests" which are all compiled separately).

In this PR we resolve the conflicting versions of wasmtime which was preventing us from having all our tests in one place. It also moves most of the tests from `tests` to `src/tests` as suggested in the blog post. An additional benefit of moving the tests under the main source directory is being able to easily reuse code in tests (for example I could delete the `AuroraConfig` struct from the state migration test because it duplicated some things from `test_utils`).

The only tests that remain in `tests` are the ones for the connector. These in particular have a lot of code duplication from production which will be able to be eliminated once it is brought under `src/tests`. However, we are not doing that in this PR because it needs #154 to be merged first. So it will be done as a follow up PR.

One other thing I noticed is that the new `meta-call` feature meant we were not running the tests for meta parsing any more. This is also corrected in this PR.
artob added a commit that referenced this pull request Jun 23, 2021
* Remove engine feature flag. (#154)
* Move tests to `src/tests`. (#155)
* Improve the `EvmErc20.sol` contract. (#156)
* Properly document endianess. (#157)
* Fix NEP-141 compliance. (#158)

Co-authored-by: Ahmed Ali <ahmed@aurora.dev>
Co-authored-by: Frank Braun <frank@aurora.dev>
Co-authored-by: Kirill <kirill@aurora.dev>
Co-authored-by: Marcelo Fornet <marcelo@aurora.dev>
Co-authored-by: Michael Birch <michael@aurora.dev>
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