-
Notifications
You must be signed in to change notification settings - Fork 12
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
Include and test node #53
base: master
Are you sure you want to change the base?
Conversation
This is mainly to see what happens. I'll come back to debug this. |
BOOM! Mad, no further improvements needed. |
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.
ACK 84ac230; successfully ran local tests
Lemme dig into this -- did not expect that local CI run to pass. |
Ah, it looks like you removed |
change does not do what I expected to local CI
Neither did I.
lol, its hard to get good help. |
84ac230
to
81101c7
Compare
FTR what is the point of having both an explicit 'include' and an 'exclude' list - surely one is default since something must be either in the group or out of the group. |
Ah good, my local test command is now failing.
Face palm. |
I think that if you have a crate in neither list, and you try to build that crate directly, it'll complain that it sees a Cargo.toml in a higher directory and isn't sure what to do. I don't know if this is a bug or intended behavior or what. Anyway, looks like we're getting the CI failures that we expect now. |
f2af300
to
313ef9d
Compare
8a0e63d
to
d276794
Compare
d276794
to
68c6087
Compare
I'll come back and debug tomorrow. |
9ead0fa Make anyhow an optional build-dependency (Tobin C. Harding) 4016843 Put dep on single line (Tobin C. Harding) Pull request description: Quick cleanup to the `node` manifest. Done while working on #53 ACKs for top commit: apoelstra: ACK 9ead0fa; successfully ran local tests Tree-SHA512: d5556518779eae439858c656583a426b36d2d96753c21157955564d67482bfd251696498417b8a8e21d95f87e07dd71b9b3770f5dc4fb27679097c57f929c2b1
In preparation for including `node` in the workspace run the formatter on `node`.
rustdoc expects to be on an item. Make the docs on `tmpdir` conform to rustdoc format.
5e69dc4
to
13d2815
Compare
Now includes a custom lint script. And WIN, the script found a bug in the feature gating of |
The `getbalances` RPC method is currently being feature guarded on `not(download)`. I'm not sure why but it seems unnecessary.
bdefcaa
to
17b94df
Compare
I used the changes to |
Cargo-minimal.lock
Outdated
|
||
[[package]] | ||
name = "regex-syntax" | ||
version = "0.8.5" |
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.
In 17b94df:
regex-syntax 0.8.5 does not work with Rust 1.63. (Requires 1.65.)
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.
Damn, MSRV is not being checked currently. Back to the drawing board. Thanks
Currently we have a job for each supported version of Bitcoin Core and in it we run the integration tests. Note also that `node` is currently not a member of the workspace. So it misses out on all the benefits of `run_task` (e.g., linting). However `node` cannot be directly run using `run_task` because of its unusual features - it requires a version feature to build. Add a script to lint and one to run tests then call these from CI. While we are at it update the justfile now that `node` can be linted and formatted as part of workspace commands. Also update the `update-lock-files` script. This PR adds a ton of dependencies to the lock file. Run `cargo` with `-Z minimal-versions` to try and get a minimal lock file that works.
17b94df
to
b657288
Compare
I played with this a bit today but its super boring. I rekon I'll merge #55 tomorrow and then merge this and cut the release. Lets punt this PR to the next release. |
Ok. I will just utACK stuff then. |
After sleeping on this I think it is actually a big deal because we (I) claim that the |
Currently we have a job for each supported version of Bitcoin Core and in it we run the integration tests.
Note also that
node
is currently not a member of the workspace. So it misses out on all the benefits ofrun_task
(e.g., linting).However
node
cannot be directly run usingrun_task
because of its unusual features but since we already have theIntegration
job set up to manage these features we can just run thenode
tests from there also. This has the added advantage that the same downloaded Bitcoin Core binary will be used (I hope).Add a script and call it from the
Integration
job. In the script first run thenode
tests and then run the integration tests.