-
Notifications
You must be signed in to change notification settings - Fork 5
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
108 enhancement/add ci and do housekeeping #154
108 enhancement/add ci and do housekeeping #154
Conversation
Also, should we add linting rules for the |
528356d
to
773427b
Compare
Yes, I think that is a good idea. Will add that once the current suite of tests pass. |
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
d88abd9
to
8805722
Compare
86d31b8
to
93e1ae2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great. Main comments are related to Clippy and personal subjective things.
2b68dfb
to
4978fcf
Compare
@delbonis I am trying to integrate the functional tests in the CI (and in this PR). Since the |
@delbonis after a brief debugging session with @voidash and @sapinb, we discovered that all the tests depend on the same bitcoin |
@Rajil1213 Perhaps I should have documented this more thoroughly. A design goal of Flexitest is that the test environments are able to be reused across tests to reduce startup times and permit them to run in a more realistic environment. If the tests are stepping on each other then they should be adjusted to either (1) not do that or (2) run with a dedicated env by passing an Wrapping the whole setup in a loop kinda defeats the whole purpose of having a pass to consolidate tests that use the same env into the same test run that the test runtime does. There is the bug that if two envs running at the same time may have conflicting service datadir names, which should be fixed, but in the meantime can be sidestepped by having the services have different names. As for the returning failing exit code, the code that constructs the result records are constructed is here. The |
@delbonis as per your suggestion, I have refactored the tests a bit to use a different config for the one test that messes up the bitcoin blockchain i.e., the reorg test. I've also changed the |
Flexitest has been updated to have the functionality needed for this, probably have to refresh the |
1f7782b
to
9a5600e
Compare
I've refreshed the lockfile and updated the tests. Things seem to be working fine now. 😄 |
Also can we squash these commits? This is kinda a lot. |
Yes, I think that should be fine as long as the |
This is to check whether errors are propagated properly to CI.
This reverts commit ca8d0ac.
782efa7
to
f985f08
Compare
This is to accomodate rust integration tests in the future which will be named `tests` which can be confusing to have alongside a `test` directory.
@delbonis as part of this PR, I've also renamed the |
9ff6d2d
to
85fd9dd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just that one question.
Description
This PR adds a
github-actions
CI pipeline with the following workflows:github-actions
alpen-vertex-sequencer
) and all crates, as well as TOML filescargo check
viacargo-hack
(similar toreth
)cargo fmt
based onrustfmt.toml
codespell
based on.codespellrc
cargo audit
to check for security vulnerabilities in dependenciescargo nextest
along with coverage report viacodecov
; no coverage threshold has been set except that no PR should decrease the overall coveragecargo mutants
that modifies the codebase and re-runs the tests to check if these mutations are caught by the tests; this returns a lot of errors so this has been allowed to fail but future reviews should consider this outputdoctests
(although there are no doctests in the repo)dependabot
for updates togithub-actions
and python packages for functional testsA PR template has also been added to standardize PR descriptions, and an editor configuration for vscode (and others) has been added so as to avoid having to review superfluous changes brought about by different editor configs.
Checklist
Type of Change
Related Issues
Closes #108
Closes #80
Additional Context
This PR introduces a lot of changes in the source code to get the lint checks and tests to pass which can potentially complicate merging of any existing PRs.