[tor-bugs] #30899 [Core Tor/sbws]: Include the commit hash in the sbws version

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Jun 17 04:07:06 UTC 2019


#30899: Include the commit hash in the sbws version
---------------------------+-----------------------------------
 Reporter:  teor           |          Owner:  (none)
     Type:  enhancement    |         Status:  new
 Priority:  Medium         |      Milestone:  sbws: 1.2.x-final
Component:  Core Tor/sbws  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:  1
 Reviewer:                 |        Sponsor:
---------------------------+-----------------------------------

Comment (by teor):

 Here's one way we could do this feature:

 Add a software_commit key to the bandwidth file header.
 If git is installed at runtime (or install time), make the header value
 "git-(commit hash)".
 Here's how PrivCout does it in python:
 https://github.com/privcount/privcount/blob/master/privcount/protocol.py#L33

 We should also show the git commit hash when we print the sbws version in
 the log.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30899#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list