Opened 5 years ago

Closed 4 years ago

#16950 closed enhancement (fixed)

Add a chutney command that checks if network bootstrap has finished

Reported by: teor Owned by:
Priority: Medium Milestone:
Component: Core Tor/Chutney Version:
Severity: Normal Keywords: testing
Cc: Actual Points: 0.2
Parent ID: #16949 Points: 0.2
Reviewer: Sponsor: SponsorS-can

Description (last modified by teor)

This command ideally needs to check (or wait before returning until) all clients are ready to send to all endpoints:

  • Authorities: consensus is working
  • Other Nodes have a copy of the consensus
  • Hidden Services have uploaded descriptors
  • Anything else?

Child Tickets

Change History (6)

comment:1 Changed 5 years ago by teor

Keywords: testing added
Parent ID: #16949

comment:2 Changed 5 years ago by teor

Description: modified (diff)

Add description

comment:3 Changed 5 years ago by teor

implement that 'chutney has-bootstrapped' test, and then maybe 'chutney wait-n-seconds-or-until-bootstrapped'

comment:4 Changed 4 years ago by nickm

Owner: nickm deleted
Status: newassigned

Remove myself as chutney ticket owner. Default owners are trouble.

comment:5 Changed 4 years ago by nickm

Status: assignednew

comment:6 Changed 4 years ago by teor

Actual Points: 0.2
Points: 0.2
Resolution: fixed
Severity: Normal
Sponsor: SponsorS-can
Status: newclosed

Turns out that this is a really hard thing to do extensibly - when is a client "ready"?
So I did the next best thing:

  • wait for 5 seconds for the first consensus
  • wait for another 10 seconds for the first consensus with relays in it
  • just keep retrying verify until it works, or it's taken longer than a minute

This was my feature16950 branch, it's been merged to master.

Note: See TracTickets for help on using tickets.