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 TrustEVM Contract Tests in CI #312

Merged
merged 5 commits into from
Feb 15, 2023
Merged

Run TrustEVM Contract Tests in CI #312

merged 5 commits into from
Feb 15, 2023

Conversation

kj4ezj
Copy link
Contributor

@kj4ezj kj4ezj commented Feb 8, 2023

From TrustEVM issue 242, this pull request builds on pull request 293 to add steps to the TrustEVM contract CI pipeline to run the contract tests and export xUnit test metrics.

The tests do not pass for me and I was informed on 2023-01-12 they are not expected to pass.

Zach
This feels like a dumb question but....are the contract unit tests expected to pass on the HEAD of main (8561800)?

Matias
The short answer is "no". There is only one cpp test case that will fail if any of the eth consensus test fails and not all of them are passing at this point

This pull requests runs them, but does not fail the build if the tests fail. I do not like this pattern, but this was requested by the team to track progress towards getting all tests passing.

See Also

@kj4ezj kj4ezj marked this pull request as ready for review February 13, 2023 22:04
run: .github/workflows/test-contract.sh

- name: Upload Test Metrics
if: matrix.DWITH_TEST_ACTIONS == 'on' || matrix.DWITH_TEST_ACTIONS == 'true'
Copy link
Member

Choose a reason for hiding this comment

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

what's the need to check for on or true here? It seems like it could never be a value not defined in the matrix (on or off)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess I don't understand the question.

Copy link
Member

Choose a reason for hiding this comment

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

Why can't this line (and all the other similar ifs) just be if: matrix.DWITH_TEST_ACTIONS == 'on'?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! I understand, now. The purpose of the or statement is in case someone uses true and false instead of on or off, which are also valid inputs to boolean cmake flags.

Copy link
Member

Choose a reason for hiding this comment

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

So is yes and 1 though, but you're testing against the matrix value which can only be

    strategy:
      matrix:
        DWITH_TEST_ACTIONS: ['on', 'off']

@kj4ezj kj4ezj merged commit f55e7ef into main Feb 15, 2023
@kj4ezj kj4ezj deleted the zach-contract-tests branch February 15, 2023 02:08
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