summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2019-08-07Merge remote-tracking branch 'tor-github/pr/1208'Nick Mathewson
2019-08-06practracker: Make it happy after rebaseDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-06hs-v3: Add consensus parameters for DoS defensesDavid Goulet
Part of #15516 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-06Merge branch 'tor-github/pr/1195'George Kadianakis
2019-08-05Ignore regular cells in padding circuits.George Kadianakis
Padding circuits were regular cells that got closed before their padding machine could finish. This means that they can still receive regular cells from their past life, but they have no way or reason to answer them anymore. Hence let's ignore them before they even get to the proper subsystems.
2019-08-01Adjust test_practracker.sh to work on windowsNick Mathewson
The required change is to ignore trailing CRs when diffing files.
2019-08-01practracker: Add unit tests to test script, and test script to makefileNick Mathewson
This makes all of the practracker tests get run by make check, and hence by our CI. Closes ticket 31304.
2019-08-01Port practracker unit tests to python 3Nick Mathewson
2019-08-01Regenerate the practracker exceptions.txt fileNick Mathewson
2019-08-01practracker: restore exceptions.txt header when running --regenNick Mathewson
2019-08-01Merge branch 'tor-github/pr/1177'David Goulet
2019-08-01practracker: replaces "overstrict" with "overbroad"Nick Mathewson
I had the logic reversed here.
2019-08-01Lower check of TOR_DISABLE_PRACTRACKERNick Mathewson
Since we sometimes call practracker directly, that's where we should check the TOR_DISABLE_PRACTRACKER envvar.
2019-07-30Practracker: add an integration test.Nick Mathewson
This test runs practracker with a set of 0 thresholds, to make sure that it enumerates all its values right. It tries running with an empty exceptions file, and with an exceptions file that covers _some_ of the data, and it makes sure that the outputs are as expected.
2019-07-30practracker: better warning/regen handlingNick Mathewson
Now that there is only one toplevel place where we print problems, we can redirect just that one print to a file when we are regenerating the exceptions.txt file. Previously we redirected sys.stdout, which is naughty, and forced us to send warnings (and warnings alone) to stderr.
2019-07-30Practracker: new flags to control output.Nick Mathewson
These flags let you suppress the message about the number of problems and warnings, and let you control the thresholds above which something counts as a problem. I need this for testing.
2019-07-30practracker: Remove problemvault global.Nick Mathewson
2019-07-30practracker: Move the warning/error distinction to a higher level.Nick Mathewson
Previously warnings were generated by magic inside ProblemVault; now they're printed on demand.
2019-07-30practracker: Refactor flow to use generatorsNick Mathewson
Instead of having "consider" functions that have to call a global ProblemVault, we can now generate all the metrics for the code separately from the decision about what to do for them.
2019-07-30practracker: Rename "Problem" to "Item".Nick Mathewson
I'm about to refactor the code into a set of iterators that yield *all* the metrics for the code, and then add a filter on top of that to return the problems.
2019-07-25practracker: Make it happing for circuitpadding.cDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-07-24Merge branch 'tor-github/pr/1165'George Kadianakis
2019-07-23Merge remote-tracking branch 'tor-github/pr/1186'Nick Mathewson
2019-07-23Merge branch 'tor-github/pr/1116'David Goulet
2019-07-23Changes file for #31113.George Kadianakis
2019-07-18Add a TOR_DISABLE_PRACTRACKER envvar for use by folks who don't careNick Mathewson
Fixes part of bug 30752
2019-07-18Practracker: add tolerances for exceptionsNick Mathewson
When an exception is present, we can now violate the limit by a little bit and only produce a warning. The strict flag overrides this behavior. I've given file sizes a 2% tolerances and function sizes/include counts a 10% tolerance. Part of 30752
2019-07-18Practracker: add a --list-overstrict optionNick Mathewson
This option lists every exception that is stricter than it needs to be. Part of 30752
2019-07-17Practracker: improve exclude-directory logicNick Mathewson
Instead of excluding directories at the last minute if they happen to appear in our filenames, we exclude them early, before recursing into all their subdirectories. Part of 29746.
2019-07-17Pracktracker: give the number of new errors found.Nick Mathewson
Part of 29746.
2019-07-17Practracker: allow tabs in include linesNick Mathewson
This isn't actually something that Tor does, but it's cleaner to do it this way. Part of 29746.
2019-07-17Fix practracker_tests.py and practracker line counting.Nick Mathewson
The practracker_tests.py unit test file called a function by its old name. Also, practracker counted functions as starting one line after the function name, and ending with the closing brace. Now they start with the open brace and end with the closing brace.
2019-07-04Merge branch 'tor-github/pr/1152'George Kadianakis
2019-07-02Merge remote-tracking branch 'tor-github/pr/1136'Nick Mathewson
2019-07-02Early exit from post-merge git hook script when not merging to masterrl1987
2019-06-28begin_cell_parse(): Add an assertion to please coverity.Nick Mathewson
Coverity doesn't understand that if begin_cell_parse() returns 0 and sets is_begindir to 0, its address field will always be set. Fixes bug 30126; bugfix on 0.2.4.7-alpha; Fixes CID 1447296.
2019-06-26Merge branch 'bug30721_squashed'Nick Mathewson
2019-06-26resolve: split sub-functions out of tor_addr_lookup()teor
And remove the practracker exception for tor_addr_lookup(). Cleanup after 30721.
2019-06-26Merge remote-tracking branch 'tor-github/pr/1119'Nick Mathewson
2019-06-25stats: add comments about the required chunk structure in extra info filesteor
These comments should prevent future instances of 30958. And allow a larger file in practracker. Follow up after 30958.
2019-06-24Add a "typed_var" abstraction to implement lvalue access in C.Nick Mathewson
Right now, this has been done at a high level by confparse.c, but it makes more sense to lower it. This API is radically un-typesafe as it stands; we'll be wrapping it in a safer API as we do #30914 and lower the struct manipulation code as well. Closes ticket 30864.
2019-06-24checkSpace.pl: Allow 'bool' before a space and an open-parenNick Mathewson
We need this so we can declare function pointers returning bool without upsetting our style checker. :/
2019-06-24stats: Split extrainfo_dump_to_string() into smaller functions.teor
Closes ticket 30956.
2019-06-19Make the great grand practracker happy...David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-06-17Merge branch 'ticket29533_squashed'Nick Mathewson
2019-06-17Fix SC2034 in pre-push.git-hookrl1987
2019-06-17Merge remote-tracking branch 'tor-github/pr/1100'Nick Mathewson
2019-06-13practracker: accept an extra line in nt_service_install()teor
Part of 30799.
2019-06-12Merge branch 'tor-github/pr/1099'George Kadianakis
2019-06-11Merge branch 'tor-github/pr/1083'David Goulet