aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint
AgeCommit message (Collapse)Author
2020-07-02Extract extend_info manipulation functions into a new file.Nick Mathewson
2020-06-30scripts: Fix rename_c_identifier.py uncommitted warningDavid Goulet
Only warn when we actually want a commit _and_ there are uncommitted changes found. Else, it is fine to rename if the script is not creating a commit. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-24Merge branch 'tor-github/pr/1945'David Goulet
2020-06-24Merge branch 'tor-github/pr/1929'George Kadianakis
2020-06-23addr: Rename resolve_my_address to be v4 specificDavid Goulet
Part of #33233 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-16practracker FTL!Mike Perry
Faster Than Light!
2020-06-11Merge branch 'maint-0.4.4'George Kadianakis
2020-06-11Improve our clang-format.sh scriptNick Mathewson
Previously, this script ran over every C file in our source code, which took up to a minute on my desktop. Instead, the script now has several modes that it can run in, to minimize the time spent and improve useful output. It should now be suitable for everyday use and git hooks. I hope. I've also renamed this script, so that we can keep using it in the future if we were to move to some tool other than clang-format.
2020-06-11Fold in a changes file and update exceptions.txt.George Kadianakis
Co-authored-by: Florentin Rochet <florentin.rochet@uclouvain.be>
2020-06-09Remove "enable_practracker_in_hooks" for 0.4.4.Nick Mathewson
2020-06-09Merge remote-tracking branch 'tor-github/pr/1888/head'Nick Mathewson
2020-06-08scripts/maint: Remove obsolete generated tor.shc
Per <https://trac.torproject.org/projects/tor/ticket/34381>, these contrib scripts were generated by older versions of Tor and shellcheck will throw warnings if they still exist.
2020-05-18practracker: Accept extra file lines, enforce a smaller functionteor
Accept extra lines in nodelist and routerlist due to extra features, and due to refactors that simplify some functions. Most of the refactor eliminated duplicate code in smaller functions, so there's only one large function that got smaller. Part of 34200.
2020-05-14Fix a python warning in format_changelog.py.Nick Mathewson
2020-05-13practracker: Allow a few extra lines in circuituseteor
Part of 33222.
2020-05-11practracker: Accept extra or.h linesteor
2020-05-07Appease practracker: wrapping costs linesteor
2020-05-05config: New file resolve_addr.{c|h}David Goulet
Move a series of function from config.c into that new file which is related to address resolving. Part of #33789 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-04-30practracker: Accept some wrapped long linesteor
Part of 33222.
2020-04-30practracker: Accept the connection buf refactorteor
Accept a few extra lines from the connection_buf_read_from_socket() refactor. Cleanup after 33131.
2020-04-30practracker: Allow an extra line in tor_addr_parse_mask_ports()teor
We added a cast, and wrapped a line.
2020-04-14Run practracker regenteor
Lock-in improvements. Accept some small function size increases. Allow a small amount of extra file size increase.
2020-04-09Merge remote-tracking branch 'tor-github/pr/1801/head'Nick Mathewson
2020-04-09relay: Run practracker --regenteor
Lock in some file and function size improvements. Accept some small file size and dependency increases. Part of 33633.
2020-04-07Merge branch 'pr1838_squashed'teor
2020-04-07Try rewriting normalize_srcdir to normalize harder.Nick Mathewson
2020-04-07Make check_subsystem_order work in distcheck builds.Nick Mathewson
2020-04-07Make check_subsystem_order work in out-of-tree builds.Nick Mathewson
2020-04-07Add a test script to check subsystem order as part of make check.Nick Mathewson
2020-04-03scripts: Ignore editor temporary filesteor
Ignore editor temporary files when autostyling in: * rectify_include_paths.py * rename_c_identifier.py Obviously correct changes to already-reviewed code.
2020-03-26Teach --check-subsystem-order to take input from stdinNick Mathewson
2020-03-26Extend includes.py to compare topology with subsystem init order.Nick Mathewson
2020-03-21practracker: Accept changesteor
Accept a smaller file and function. Let router.c grow slightly without warning. Accept an extra comment line. Cleanup after 32588.
2020-03-21practracker: Accept larger dirvote fileteor
Due to improved function comments.
2020-03-20practracker: Disable practracker in git hooksteor
Disable our coding standards best practices tracker in our git hooks. 0.4.3 branches only. Closes ticket 33678.
2020-03-19practracker: Regenerate exceptions fileteor
Accept the current state of the tor codebase, including all the files and functions that have increased technical debt over the last few months. Accepts all the current practracker warnings, so that reviewers can focus on new warnings. Closes ticket 33635.
2020-03-17Run "practracker.py --regen-overbroad"teor
We've successfully resolved a bunch of technical debt over the last few months. Let's remove the allowances for that debt from the practracker exceptions.
2020-03-11hs-v3: Log reasons why service can't upload descriptorDavid Goulet
When a service can not upload its descriptor(s), we have no logs on why. This adds logging for each possible reason for each descriptors. That logging is emitted every second so it is rate limited for each reason and per descriptor. Closes #33400 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-03-05Merge branch 'clang_format_prep_3'Nick Mathewson
2020-02-24Merge remote-tracking branch 'tor-github/pr/1685/head'Nick Mathewson
2020-02-20Merge branch 'maint-0.4.3'Nick Mathewson
2020-02-20Merge remote-tracking branch 'tor-github/pr/1757/head' into maint-0.4.3Nick Mathewson
2020-02-20Merge branch 'extract_routerkeys_squashed'Nick Mathewson
2020-02-20Move relay_handshake.[ch] into src/feature/relay, and make it optionalNick Mathewson
2020-02-20Merge branch 'maint-0.4.3'Nick Mathewson
2020-02-19Extract relay-only handshake code into its own file.Nick Mathewson
This is not the only relay-only handshake code, but it is most of such code that is in connection_or.c.
2020-02-19practracker: Read unicode files when using Python 2teor
Allow the "practracker" coding best practices checking script to read unicode files, when using Python 2. We made the script use unicode literals in 0.4.3.1-alpha, but didn't change the codec for opening files. Fixes bug 33374; bugfix on 0.4.3.1-alpha.
2020-02-19Run "practracker --regen-overbroad"teor
Closes ticket 33373.
2020-02-18Merge branch 'tor-github/pr/1743'David Goulet
2020-02-18lintChanges: Tolerate variants that sortChanges knows how to clean up.Nick Mathewson