summaryrefslogtreecommitdiff
path: root/scripts/maint
AgeCommit message (Collapse)Author
2019-10-11maint-0.4.2: remove ".enable_practracker_in_hooks".Nick Mathewson
2019-10-03Merge remote-tracking branch 'tor-github/pr/1358'Nick Mathewson
2019-10-03control/control: Refactor some error handling codeteor
Split some protocol error handling out of connection_control_process_inbuf(). This refactor reduces the size of a practracker exception. Closes 31840.
2019-09-30Merge branch 'tor-github/pr/1339'George Kadianakis
2019-09-27annotate_ifdef_directives: test edge-case of 80-char lineNick Mathewson
An 80-character line (79 characters if you don't count the newline) should not be truncated, and should not have a "..." insterted.
2019-09-27Annotate_ifdef_directives: doctest for 80-column lines.Nick Mathewson
2019-09-27Rename annotate_ifdef_directives to end with .py.Nick Mathewson
This allows the python doctest module to process it correctly when invoked as: python -m doctest -v annotate_ifdef_directives.py
2019-09-27annotate_ifdef_directives: Allow it to be imported as a module.Nick Mathewson
2019-09-27Use Doctests to test the behavior of annotate_ifdef_directives.Nick Mathewson
2019-09-27annotate_ifdef_directives: generate paren-balanced expressionsNick Mathewson
This algorithm is not fully general, but it strikes a balance between efficiency, simplicity, and correctness.
2019-09-26annotate_ifdef_directives: clarify situation with newlinesNick Mathewson
Our line limit is 80 characters, assuming that there is a single terminating newline character that counts towards the limit. On Windows, this might go as high as 81 characters, if we count CRLF as two characters.
2019-09-26annotate_ifdef_directives: remove some cases of double negationNick Mathewson
This change should reduce the number of cases where we say "/* !(!defined(foo)) */" . This only does cases where we can use a regex to make sure that the simplification is guaranteed to be correct. Full boolean simplification would require this script to parse C, and nobody wants that.
2019-09-26Merge remote-tracking branch 'tor-github/pr/1308'Nick Mathewson
2019-09-25Merge branch 'tor-github/pr/1337'George Kadianakis
2019-09-25Merge branch 'tor-github/pr/1355'George Kadianakis
2019-09-25Merge branch 'tor-github/pr/1309'George Kadianakis
2019-09-24practracker: Fix a typo in the usage messageteor
Fixes bug 31828; bugfix on 0.4.2.1-alpha.
2019-09-23fix: Ticket #31589AmreshVenugopal
- The function `decrypt_desc_layer` has a cleaner interface. - `is_superencrypted_layer` changed from `int` -> `bool` [ticket details](https://trac.torproject.org/projects/tor/ticket/31589) add(changes/*): changes file fix(src/features/hs): is_superencrypted changed from `int` -> `bool` fix(changes/ticket31589): header add(changes/ticket31589): subsystem(onion services) to change
2019-09-23annotate_ifdef_directives: obey an 80-column line-limitNick Mathewson
If we would add a comment making a line longer than 80 columns, instead truncate the variable portion of the comment until it just fits into 80 columns, with an ellipsis.
2019-09-23annotate_ifdef_directives: introduce a function to make commented linesNick Mathewson
No functional change in this commit.
2019-09-23Add comments to annotate_ifdef_directivesNick Mathewson
2019-09-19Remove practracker exception for microdesc parsing functionNick Mathewson
2019-09-18practracker: Integration test for --list-overbroadNick Mathewson
Make sure that we list overbroad exceptions, and nothing else
2019-09-18practracker: An exception is "used" even when it is violated.Nick Mathewson
The purpose of tracking whether an exception is used is so that we can tell whether it is overbroad. This means that an _underbroad_ exception is still a used one. Fixes bug 31338.
2019-09-18Practracker: do not list problems when told to --list-overbroad.Nick Mathewson
2019-09-16Merge branch 'tor-github/pr/1313'George Kadianakis
2019-09-11Merge branch 'ticket31578' into ticket31578_mergedNick Mathewson
2019-09-10scripts: Make checkShellScripts.sh error exit if it can't find srcteor
Closes 31679.
2019-09-10scripts: Allow checkShellScripts.sh to be run from its parent directoryteor
... on systems that don't have realpath. Part of 31679.
2019-09-09Merge branch 'tor-github/pr/1264'David Goulet
2019-09-09Merge branch 'ticket30924_042_04_squashed' into ↵Nick Mathewson
ticket30924_042_04_squashed_merged
2019-09-09practracker: Make you happy funny scriptDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-09-05New practracker exceptions for dependency violations in headersNick Mathewson
I've done this manually, since I don't want to override the existing exceptions in this branch.
2019-09-05Fix a bug in practracker's handling of .may_include in headersNick Mathewson
I was expecting our filter code to work in a way it didn't. I thought that saying that DependencyViolation applied to "*" would hit all of the files -- but actually, "*" wasn't implemented. I had to say "*.c" and "*.h"
2019-09-05shellcheck: Add shellcheck to the pre-commit hookteor
* Move the shellcheck script from the Makefile to its own script file * Reformat the shellcheck script so it's easier to read and modify * Call the shellcheck script from the pre-commit hook Fixes bug 30967; not in any released version of Tor.
2019-09-04Merge branch 'tor-github/pr/1246'David Goulet
2019-09-02practracker: handle empty files.Nick Mathewson
Previously practracker would fail on a file with no lines.
2019-09-02practracker: Fix indentation in util.pyNick Mathewson
This commit only changes whitespace and removes a temporary comment.
2019-09-02Practracker: only consider files under "src/"Nick Mathewson
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-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-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-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