torproject / tor Public
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
Ticket33451 #1764
Ticket33451 #1764
Conversation
Closes ticket 32720.
Don't dump totals with anonymous purposes. Additionally, don't dump headers that have nothing underneath them.
To run this, say something like TOR_DEVTOOL_DIR=~/bin scripts/git/git-install-tools.sh all To see what it would do, give it the -n flag. To get help, give it the -h flag.
Pull Request Test Coverage Report for Build 8278
|
| @@ -0,0 +1,189 @@ | |||
| #!/usr/bin/env bash | |||
|
|
|||
Consider using "strict mode": http://redsymbol.net/articles/unofficial-bash-strict-mode/. I see you use -e below, but consider also -u, -o, and pipefail. (I don't see any actual pipe usage here, but doesn't hurt to add it now for when it sneaks in later)
If we're going to make this change, let's do it for all the git scripts, in a separate PR?
I opened https://trac.torproject.org/projects/tor/ticket/33603 for this change in tor, I'll also open tickets for other projects.
| * (For example, the number of bytes downloaded of purpose p while | ||
| * not fully bootstrapped is total_dl[p][false].) | ||
| **/ | ||
| static uint64_t total_dl[DIR_PURPOSE_MAX_][2]; |
Consider using signed integers since these are intended as integers and not e.g. bit fields.
From https://google.github.io/styleguide/cppguide.html#Integer_Types:
Unsigned integers are good for representing bitfields and modular arithmetic. Because of historical accident, the C++ standard also uses unsigned integers to represent the size of containers - many members of the standards body believe this to be a mistake, but it is effectively impossible to fix at this point. The fact that unsigned arithmetic doesn't model the behavior of a simple integer, but is instead defined by the standard to model modular arithmetic (wrapping around on overflow/underflow), means that a significant class of bugs cannot be diagnosed by the compiler. In other cases, the defined behavior impedes optimization.
This commit isn't actually part of this PR; the thing that updates github from Tor's git repository seems to be stalled.
Make the alias invocation correct.
Add "list-tor-branches" to the list of tools, now that #32121 is merged into master.
|
Squashed and merged to master. |
No description provided.
The text was updated successfully, but these errors were encountered: