aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2019-09-04Merge branch 'tor-github/pr/1246'David Goulet
2019-08-29practracker: make filename terminology uniformNick Mathewson
Previously we often referred to "C files" and "H files", which is more ambiguous than ".c files" and ".h files".
2019-08-29scripts/git: fix shellcheck issues in git-push-all.shteor
Part of 31314.
2019-08-29scripts/git: fix an env var typo in git-merge-forward.shteor
Part of 31314.
2019-08-29scripts/git: Quote shell arguments where possibleteor
Most shell arguments should be quoted to avoid mistakes. But since all branch names are hard-coded, or supplied by the script user, we don't need to be too concerned about command injection. Quoting all shell arguments would take a major refactor. (Probably using arrays.) Part of 31314.
2019-08-29scripts/git: Improve usage documentation for merge-forward and push-allteor
Part of 31314.
2019-08-29scripts/git: Let git-push-all.sh skip unchanged test branchesteor
Skip test branches that are the same as remote maint/release/master branches. Add a TOR_PUSH_SAME and -s argument to git-push-all.sh to change this default. Part of 31314.
2019-08-29scripts/git: Make the git push command and args configurableteor
TOR_GIT_PUSH provides the git push command and default arguments. Also fix handling of git-push-all.sh script arguments and arguments that are passed through to $TOR_GIT_PUSH, using a "--" argument as a separator. Fix on 29879.
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-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