aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2019-08-29scripts/git: Allow git-merge-forward.sh to re-use existing test branchesteor
Add a -u argument to git-merge-forward.sh, so that the script can re-use existing test branches after a merge failure and fix. Part of 31314.
2019-08-29scripts/git: Add test branch support to the git scriptsteor
Add a -t <test-branch-prefix> argument to git-merge-forward.sh and git-push-all.sh, which makes these scripts create, merge forward, and push test branches. Add a -r <remote-name> argument to git-push-all.sh, so the script can push test branches to a personal remote. Closes ticket 31314.
2019-08-29scripts/git: Cleanup and fix minor git scripts issuesteor
Fix typos, clean up formatting, rewrite some comments, add headings. Preparation for 31314.
2019-08-26Add integration tests for new practracker featuresNick Mathewson
These tests check our .may_include checking, and our header file checking. They do not pass yet: we have a bug in our filtering code.
2019-08-26Merge branch 'tor-github/pr/1263'George Kadianakis
2019-08-26Merge remote-tracking branch 'tor-github/pr/1241'Nick Mathewson
2019-08-26Fix/suppress shellcheck warnings in git-push-all.shNick Mathewson
(I've chosen to suppress some instances rather than 'fix' them, since the fix would require arrays or major refactoring.) Fixes bug 31519; bug not in any released Tor.
2019-08-26Merge branch 'tor-github/pr/1254'David Goulet
2019-08-24Merge remote-tracking branch 'tor-github/pr/1215'Nick Mathewson
2019-08-22Merge branch 'ticket30935' into ticket30935_mergedNick Mathewson
2019-08-22Merge branch 'tor-github/pr/1244'David Goulet
2019-08-21Document new practracker violation types, and add a practracker readmeNick Mathewson
Closes ticket 31476.
2019-08-21Merge branch 'ticket31176' into ticket31176_mergedNick Mathewson
2019-08-20Merge branch 'ticket30914' into ticket30914_mergedNick Mathewson
2019-08-20scripts/git: Remove a duplicate practracker call from the pre-push hookteor
The pre-push hook already calls the pre-commit hook, which calls practracker. Also update the script comments to avoid similar issues in future. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
2019-08-19Merge remote-tracking branch 'tor-github/pr/1224'Nick Mathewson
2019-08-19Merge remote-tracking branch 'tor-github/pr/1235'Nick Mathewson
2019-08-19Merge branch 'tor-github/pr/1220'George Kadianakis
2019-08-19Merge remote-tracking branch 'mike/bug31356+logs-rebased2' into bug31356_finalGeorge Kadianakis
2019-08-19practracker: Make exceptions.txt happyDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-08-12PractrackerMike Perry
2019-08-08Move the connection_edge_process_relay_cell() assignments out of if ↵Neel
statements in circuit_receive_relay_cell()
2019-08-08pre-push hook: Only run practracker when a special file is presentNick Mathewson
Closes ticket 30979.
2019-08-08scripts/git: add TOR_PUSH_DELAY to git-push-all.shteor
Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the script push master and maint branches with a delay between each branch. These delays trigger the CI jobs in a set order, which should show the most likely failures first. Also: * make pushes atomic by default, and * make the script pass any command-line arguments to git push. Closes ticket 29879.
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-05update exceptions file for depencency violationsNick Mathewson
2019-08-05Move include-violation checking into its own function.Nick Mathewson
2019-08-05Make includes interface more like the rest of practrackerNick Mathewson
Everything else assumes that somebody else will open the file for it.
2019-08-05practracker: a violation of a .may_include rule is now a problem.Nick Mathewson
We treat "0" as the expected number, and warn about everything else. The problem type is "dependency-violation".
2019-08-05Teach include-checker about advisory rulesNick Mathewson
A .may_includes file can be "advisory", which means that some violations of the rules are expected. We will track these violations with practracker, not as automatic errors.
2019-08-05Update pre-commit hook to find checkIncludes in its new locationNick Mathewson
Also add a temporary script to redirect the hook, if people don't upgrade for a bit.
2019-08-05Move checkIncludes inside practrackerNick Mathewson
Update the makefile accordingly.
2019-08-05checkIncludes: add a real main function and CLINick Mathewson
2019-08-05checkIncludes: refactor to use error-iteration styleNick Mathewson
This makes checkIncludes match practracker more closely, and lets us eliminate a global.
2019-08-05checkIncludes: Separate file-handling from rule-handlingNick Mathewson
This is our shift from directory-at-a-time processing to file-at-a-time processing.
2019-08-05checkIncludes.py: extract topological sort codeNick Mathewson
Our topological sort code really deserves a function of its own. Additionally, don't print from inside the topological sort code: instead, return a result, and let the caller print it.
2019-08-05checkIncludes: introduce rules-file caching.Nick Mathewson
We'll want this so that we can have each file evaluated independently, rather than a directory at a time.
2019-08-05Move the executable part of checkIncludes.py inside an if block.Nick Mathewson
I'll want to make this block into a series of functions in a subsequent commit, but I'm doing this separately to get the indentation change out of the way. This branch will end up with making checkIncludes.py an integrated part of practracker, for ticket 31176.
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-05Add exceptions for current .h practracker problems.Nick Mathewson
2019-08-05Teach practracker about .h filesNick Mathewson
I'm using 500 as a file size limit, and 15 as an include limit. This affects comparatively few files, but I think they are the worst ones. Closes ticket 31175.
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