[metrics-bugs] #25782 [Metrics/Consensus Health]: Bump stem for depictor

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Apr 11 16:19:41 UTC 2018


#25782: Bump stem for depictor
------------------------------------------+-----------------
     Reporter:  tom                       |      Owner:  tom
         Type:  defect                    |     Status:  new
     Priority:  Medium                    |  Milestone:
    Component:  Metrics/Consensus Health  |    Version:
     Severity:  Normal                    |   Keywords:
Actual Points:                            |  Parent ID:
       Points:                            |   Reviewer:
      Sponsor:                            |
------------------------------------------+-----------------
 {{{
 11:10:15 A<+atagar> tjr: You'll find that depictor will have timeouts too
 when you update Stem. Stem now drops the '.z' suffix and replaces it with
 an Accept-Encoding header...
 11:10:18 A<+atagar>
 https://gitweb.torproject.org/stem.git/commit/?id=079b481
 11:10:38 A<+atagar> To cut down on noise DocTor no longer downloads from
 tor26.
 11:11:00 T<+tjr> Hm... I don't think that's going to be an option for
 me...
 11:11:26 A<+atagar> Why?
 11:11:56 A<+atagar> I did a similar thing for turtles back in the day.
 Certainly understandable though if it's a no-go. :)
 11:12:04 A<+atagar> I suppose we might be able to hack around it.
 11:12:36 T<+tjr> Well, I suppose I could get the vote from another
 DirAuth.  But not downloading would mean they would fall off (or have bad
 data) for the download times table
 11:12:46 T<+tjr> Not that that table is terribly accurate today but....
 11:13:18 A<+atagar> Gotcha. For DocTor the hack I did was to simply stop
 treating tor26 as a dirauth.
 11:13:44 A<+atagar> Ah, I've got an idea.
 11:14:17 A<+atagar> The DescriptorDownloader should return you a query
 object. You can overwrite the resource attribute to add back the '.z'
 before making the request.
 11:14:45 A<+atagar> Since the stripping happens in the constructor...
 11:14:46 A<+atagar>
 https://gitweb.torproject.org/stem.git/tree/stem/descriptor/remote.py#n370
 11:16:01 A<+atagar> Note that you'll want to include 'start = False' in
 your call so the request isn't made until you change the resource.
 }}}

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


More information about the metrics-bugs mailing list