-
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
Fix the fuzz bug #11
Fix the fuzz bug #11
Conversation
We need to be careful before merging this one. Its a good chance to check all our repos that use this tool to see that they either:
|
If anything is not using a specific commit hash then we need to change them to do so. We can't paralyze this repo by having its |
In 3c31ce7: This fix is fine though I think we should just stop treating the name CI here is failing. I think we should fix it. |
You were reviewing while I was hacking :) |
Agreed, I'll check the users to make sure this is the case. |
I'm going to come back to this, its more important to check all the users. (And I'm confused why |
Only |
I had a go doing this but if we treat it like other crates it requires a |
5f10977
to
3de0ded
Compare
I'm not sure what is going on with the CI job, |
Doing this would correctly capture the fact that some of our fuzz harnesses still have But in any case, it seems less clunky to me to have a |
@tcharding when I run shellcheck locally the error appears. It is complaining that the We probably want to globally whitelist "unused code" type warnings on this repo. |
3de0ded
to
f56e456
Compare
Cheers, I found a place that we were using |
Not done but I'll keep it in mind. |
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 f56e456 though I still think we should stop special-casing
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 f56e456 though I still think we should stop special-casing fuzz
f56e456
to
3c31ce7
Compare
We source a bunch of dynamic paths, `shellcheck` cannot handle dynamic paths - configure `shellcheck` to ignore the warnings.
77ceb66
to
b249949
Compare
We have an error function, use it. This clears a shellcheck warning (unseen locally by myself) and puts the error message below the ouput from `cargo tree` which is probably better if its long.
We would like to run the build and tests for all crates in the workspace. In order to do so clear the env vars from the last loop (setting to the empty string) and check against the empty string when running specific `cargo` incantations.
0dbcc8b
to
9609670
Compare
Use shell to set the `CRATES` env var used by `run_task.sh`. This patch needs a PR to merge into maintainer tools before it can be used, we then need to set the commit hash in `.github/workflows/rust.yml`. rust-bitcoin/rust-bitcoin-maintainer-tools#11
9609670
to
6646692
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.
ACK 6646692
@@ -146,7 +143,7 @@ do_test() { | |||
$cargo build | |||
$cargo test | |||
|
|||
if [ -n "${EXAMPLES+x}" ]; then | |||
if [ -n "${EXAMPLES}" ]; then |
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 6646692:
What were these +x
s supposed to mean? AFAIK they just ensure that the -n
check will always pass and the -z
checks never will.
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.
Correct, and also I was annoyed at myself for writing syntax that I had to look up when I tried to read it. Hence I added the more brain-dead set the vars to ""
in the loop.
Use shell to set the `CRATES` env var used by `run_task.sh`. This patch needs a PR to merge into maintainer tools before it can be used, we then need to set the commit hash in `.github/workflows/rust.yml`. rust-bitcoin/rust-bitcoin-maintainer-tools#11
This PR dose a few things:
say_err
to clear anothershellcheck
warning (that I was unable to repro locally)cargo build
andcargo test
for all crates instead of treatingfuzz
as a special caseResolve: #10