-
Notifications
You must be signed in to change notification settings - Fork 102
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
feat(script): Add binary for finding references to closed issues #6347
Conversation
1b79bdb
to
1d551b3
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6347 +/- ##
==========================================
- Coverage 77.78% 77.74% -0.04%
==========================================
Files 304 304
Lines 39528 39585 +57
==========================================
+ Hits 30745 30775 +30
- Misses 8783 8810 +27 |
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.
This is awesome.
I noticed a potential bug in the regex and left some comments.
0012243
to
30c5d87
Compare
@upbqdn are you able to review this one? Otherwise @oxarbitrage can you please take over this review? |
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.
This looks really good, i made a few optional comments.
There are a few things that i think we have to consider:
- We now need to use it to fix some/all of the findings (there are currently 184). Should we open a ticket ?
- I am a bit concerned that we do more rust utilities in general, which will mean more dependencies, more CI, etc. We hide them behind rust features but i think that is still attached to the main project. Should we consider making utilities outside of the zebra repo or encourage to do what we did here in the future? Any opinions?
Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
There's a tracking issue #6281 to deal with/list these already |
Yes! (script lightly modified for permalinks and markdown output): ➜ GITHUB_TOKEN=XXX cargo run --package zebra-utils --bin search-issue-refs --all-features --features search-issue-refs
Searching files in this repo with a ".rs", ".yml", ".yaml", or ".toml" file extension for issue references..
Found 209 possible references to 104 issues, checking statuses on Github..
{results - see below}
Confirmed 179 references to 91 closed issues. References to Closed Issues
zebra/zebra-consensus/src/error.rs Line 156 in 5db2243
see more:zebra/zebra-network/src/peer_set/set.rs Line 423 in 5db2243
zebra/zebra-network/src/config.rs Line 328 in 5db2243
zebra/zebra-network/src/policies.rs Line 39 in 5db2243
zebra/zebrad/src/components/sync.rs Line 1156 in 5db2243
Line 32 in 5db2243
zebra/zebrad/src/components/inbound.rs Line 301 in 5db2243
zebra/zebra-chain/src/block/header.rs Line 89 in 5db2243
zebra/zebra-chain/src/block/header.rs Line 104 in 5db2243
zebra/zebra-network/src/config.rs Line 46 in 5db2243
zebra/zebra-chain/src/block/serialize.rs Line 134 in 5db2243
Line 91 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1936 in 5db2243
zebra/zebrad/src/components/sync.rs Line 644 in 5db2243
zebra/zebrad/src/components/sync.rs Line 777 in 5db2243
zebra/zebra-network/src/constants.rs Line 189 in 5db2243
zebra/zebra-consensus/src/transaction.rs Line 716 in 5db2243
zebra/zebra-state/src/service.rs Line 171 in 5db2243
zebra/zebra-network/src/config.rs Line 47 in 5db2243
zebra/zebra-network/src/peer/handshake.rs Line 636 in 5db2243
zebra/zebra-network/src/peer_set/limit.rs Line 124 in 5db2243
zebra/zebra-chain/src/orchard/sinsemilla.rs Line 163 in 5db2243
zebra/zebra-state/src/service/arbitrary.rs Line 129 in 5db2243
zebra/zebra-chain/src/block/arbitrary.rs Line 292 in 5db2243
zebra/zebra-network/src/peer_set/set.rs Line 508 in 5db2243
zebra/zebra-network/src/peer/handshake.rs Line 1108 in 5db2243
zebra/zebra-network/src/peer_set/set.rs Line 737 in 5db2243
zebra/zebra-state/src/service.rs Line 1028 in 5db2243
zebra/zebra-network/src/peer/connection.rs Line 1206 in 5db2243
zebra/zebra-network/src/peer/client/tests.rs Line 379 in 5db2243
zebra/zebra-state/src/service/check/utxo.rs Line 238 in 5db2243
zebra/zebra-chain/src/sprout/keys.rs Line 3 in 5db2243
zebra/zebra-chain/src/orchard/keys.rs Line 3 in 5db2243
zebra/zebra-chain/src/sapling/keys.rs Line 3 in 5db2243
zebra/zebra-test/src/command.rs Line 222 in 5db2243
zebra/zebra-test/src/command.rs Line 809 in 5db2243
zebra/zebra-test/tests/command.rs Line 74 in 5db2243
zebra/zebra-test/tests/command.rs Line 101 in 5db2243
zebra/zebra-test/tests/command.rs Line 130 in 5db2243
zebra/zebra-test/tests/command.rs Line 157 in 5db2243
zebra/zebra-test/tests/command.rs Line 445 in 5db2243
zebra/zebra-network/src/constants.rs Line 191 in 5db2243
zebra/zebra-consensus/src/transaction.rs Line 717 in 5db2243
zebra/zebrad/src/components/sync/progress.rs Line 173 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 377 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 480 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 508 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 564 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 754 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 766 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 841 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 923 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 1041 in 5db2243
zebra/zebra-rpc/src/methods.rs Line 1106 in 5db2243
zebra/zebra-network/src/isolated.rs Line 36 in 5db2243
zebra/zebra-network/src/peer/handshake.rs Line 1108 in 5db2243
zebra/zebra-network/src/meta_addr.rs Line 141 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1009 in 5db2243
zebra/zebra-chain/src/sprout/joinsplit.rs Line 174 in 5db2243
zebra/zebra-chain/src/sapling/output.rs Line 175 in 5db2243
zebra/zebra-chain/src/sapling/spend.rs Line 224 in 5db2243
zebra/zebrad/src/components/sync/downloads.rs Line 240 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 2004 in 5db2243
zebra/zebra-test/src/command.rs Line 483 in 5db2243
zebra/zebra-test/src/command.rs Line 917 in 5db2243
zebra/zebra-chain/src/work/difficulty.rs Line 295 in 5db2243
zebra/zebra-chain/src/work/difficulty.rs Line 400 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1010 in 5db2243
zebra/zebra-network/src/peer_set/limit.rs Line 124 in 5db2243
zebra/zebra-state/src/config.rs Line 32 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1804 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1832 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1861 in 5db2243
zebra/zebrad/tests/acceptance.rs Line 1926 in 5db2243
zebra/zebra-network/src/peer_set/set.rs Line 737 in 5db2243
zebra/zebrad/src/components/sync.rs Line 72 in 5db2243
zebra/zebra-state/src/service/tests.rs Line 164 in 5db2243
zebra/zebra-state/src/service/chain_tip.rs Line 612 in 5db2243
zebra/zebra-state/src/tests/setup.rs Line 41 in 5db2243
zebra/zebra-state/src/tests/setup.rs Line 55 in 5db2243
zebra/zebrad/src/components/inbound.rs Line 305 in 5db2243
zebra/zebra-consensus/src/checkpoint.rs Line 990 in 5db2243
zebra/zebra-network/src/meta_addr.rs Line 160 in 5db2243
zebra/zebra-network/src/meta_addr.rs Line 617 in 5db2243
zebra/zebra-network/src/meta_addr.rs Line 681 in 5db2243
zebra/zebra-network/src/meta_addr.rs Line 684 in 5db2243
zebra/zebra-network/src/meta_addr.rs Line 933 in 5db2243
zebra/zebra-network/src/peer_set/limit.rs Line 124 in 5db2243
zebra/zebra-state/src/service/check/utxo.rs Line 238 in 5db2243
|
Note that some of these tasks have been closed as "wontfix", which is different from actually being fixed. We might want to keep references to "wontfix" tasks in the code for context, but maybe we could change "TODO" to "WONTFIX". |
Motivation
We want a full list of comments in the repo referencing issues that are closed.
Closes #6278.
Solution
search-issue-refs
binary tozebra-utils
Review
Anyone can review.
Reviewer Checklist