-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Clean Up Todos and Add in Issue Checker #640
Changes from all commits
a5945b9
e1198a3
286df8d
e09ad44
ae11371
b00c389
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,18 @@ then | |
echo "Invalid TODOs found. Failing." >&2; | ||
echo "$OUTPUT" >&2; | ||
exit 1; | ||
fi | ||
|
||
|
||
while read -r line ; do | ||
linenum=`expr $line : '^\([0-9]*:\)'` | ||
issueNum=${line//$linenum} | ||
issueState=$(curl https://api.github.com/repos/prysmaticlabs/prysm/issues/$issueNum | grep -o '"state":"closed"'); | ||
|
||
if [ "$issueState" != "" ]; | ||
then | ||
echo "Issue referenced has already been closed" >&2; | ||
echo "Issue Number: $issueNum" >&2; | ||
exit 1; | ||
fi | ||
done < <(grep -PrinH -o -h '(?<!context\.)todo\(#{0,1}\K(\d+)' --include \*.go *) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the purpose of this line? Wouldn't the script have exited on line 9 if there was any output of this command? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The do-while loop, reads any line printed out by grep, which parses the issue numbers from the files. Without that line the loop would not do anything as there is nothing printed out There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! Thanks! |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,8 +168,7 @@ func (p *Proposer) run(done <-chan struct{}, client pb.ProposerServiceClient) { | |
p.lock.Lock() | ||
|
||
bitmask := p.GenerateBitmask(p.pendingAttestation) | ||
|
||
// TODO(#552): Implement real proposals with randao reveals and attestation fields. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is still a todo here, it's issue #619 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The script basically just checks using the github api if the issue is closed. If it is closed it throws an error. I am just removing todos that are referencing issues that are closed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Np. I can add a TODO there later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added it back with #619. |
||
// TODO(#619): Implement real proposals with randao reveals and attestation fields. | ||
req := &pb.ProposeRequest{ | ||
ParentHash: latestBlockHash[:], | ||
// TODO(#511): Fix to be the actual, timebased slot number instead. | ||
|
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.
Are we sure we don't need to do this anymore? @rauljordan can you confirm?
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.
I don't believe we need this as we already do everything using persistent storage. This seems outdated.