summaryrefslogtreecommitdiff
path: root/scripts/maint
AgeCommit message (Collapse)Author
2020-07-17Use gitlab-friendly URLs when formatting changelogs as HTMLNick Mathewson
Our old https://bugs.torproject.org/nnnn URLs only work for bugs numbered before 40000. Newer gitlab bugs need to have specific projects mentioned. This patch assumes that bugs are in tpo/core/tor by default, but allows us to refer to several other projects by saying e.g. "chutney#40002" if we want.
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-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-14Fix a python warning in format_changelog.py.Nick Mathewson
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 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-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
2020-02-16Stop assuming that /usr/bin/python existsPanagiotis Vasilopoulos
Fixes 33192
2020-02-14Script to check sorting of manpage entriesTaylor Yu
Add a script to help check the alphabetical ordering of option names in a manpage. Closes ticket 33339.
2020-02-12Add a dire warning about not reformatting the whole codebase yet.Nick Mathewson
2020-02-11Merge branch 'ticket33029_042_01' into ticket33029_043_03David Goulet
Conflicts: doc/tor.1.txt src/app/config/config.c src/app/config/or_options_st.h src/core/mainloop/connection.h Between 042 and 043, the dirauth options were modularized so this merge commit address this by moving the AuthDirRejectUncompressedRequests to the module along with a series of accessors. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-06checkSpace: permit wide lines for LCOV_EXCLNick Mathewson
We're telling clang-format that a line with LCOV_EXCL must not be split -- that's fine, but we shouldn't complain when it indents it.
2020-02-06checkSpace: be more careful about bad function headers.Nick Mathewson
Previously we would forbid macro indentations like this: FOO({ int x; }) But clang-format sometimes generates those.
2020-02-06checkSpace: don't treat an unindented label as starting a function.Nick Mathewson
2020-02-06checkSpace.pl: Allow space between iteration macros and ().Nick Mathewson
Clang-format wants to put these in, and they do make sense for consistency. Also allow more types.
2020-02-06checkSpace.pl: Use a data structure for a list of non-function namesNick Mathewson
2020-02-06checkspace: allow spaces in cpp directives.Nick Mathewson
2020-02-06checkSpace.pl: allow {{, ){, and ({.Nick Mathewson
2020-02-06checkSpace: remove the nosplabel test.Nick Mathewson
2020-02-06Temporary clang-format configuration and script.Nick Mathewson
The format is the same as in my previous efforts here. The script is a little tricky, since it invokes both clang-format and codetool, and it makes sure that files do not have a changed mtime unless there is actually some change in the file.
2020-02-06codetool: post-processor for clang-formatNick Mathewson
This code transformer makes a couple of changes that we want for our source code, and can be expanded to handle more.