<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-circmgr/src/build.rs, branch arti-v0.0.1</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2021-10-28T15:44:09Z</updated>
<entry>
<title>Fix clippy warnings in tests.</title>
<updated>2021-10-28T15:44:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-28T15:44:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a730478fd0aee63245891b3bb98181ed9928572a'/>
<id>urn:sha1:a730478fd0aee63245891b3bb98181ed9928572a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor_circmgr: Refactor and re-enable build_timeout() test</title>
<updated>2021-10-27T20:31:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-27T13:57:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b7c7c8ba13eb15fa351c47e928e240701da19fe6'/>
<id>urn:sha1:b7c7c8ba13eb15fa351c47e928e240701da19fe6</id>
<content type='text'>
The previous version of this test used the old, racy version of
wait_for (see #149).  The new version is refactored so that
simulated time is only allowed to advance after each step is done,
so that we can actually be sure that each step in the process will
happen as it should.

In order to get the time-advances to proceed properly, and avoid
polluting state between tests, I've had to introduce some machinery
to encode the proper amount for time to advance.  It isn't something
I'd want to use for a whole bunch of tests, but for just one set,
it's fine.

These tests now pass reliably for me.

I wonder if a discrete-event-simulation approach (hello, Shadow)
would let us write tests like these to our hearts' content?
</content>
</entry>
<entry>
<title>Fix some clippy-nightly warnings.</title>
<updated>2021-10-26T17:13:46Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-26T17:12:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e64177d97e3623474f042df45efefa46d17a45a0'/>
<id>urn:sha1:e64177d97e3623474f042df45efefa46d17a45a0</id>
<content type='text'>
These are my fault; I merged the wrong version of !102. :p
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/mr/102'</title>
<updated>2021-10-26T17:01:01Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-26T17:01:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b0fd7cff8e429e95534e0056a5800627a265ddbc'/>
<id>urn:sha1:b0fd7cff8e429e95534e0056a5800627a265ddbc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Overhaul the way WaitFor and the MockSleepProvider work</title>
<updated>2021-10-26T15:33:23Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-10-25T13:19:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e8419abd2579960d59cfe418adc15cdccd20b154'/>
<id>urn:sha1:e8419abd2579960d59cfe418adc15cdccd20b154</id>
<content type='text'>
Instead of racily advancing time forward, this commit attempts to rework
how WaitFor works, such that it makes advances when all sleeper futures
that have been created have been polled (by handing the MockSleepRuntime
a Waker with which to wake up the WaitFor).

The above described mechanics work well enough for the double timeout
test, but fail in the presence of code that spawns asynchronous /
background tasks that must make progress before time is advanced for the
test to work properly. In order to deal with these cases, a set of APIs
are introduced in order to block time from being advanced until some
code has run, and a carveout added in order to permit small advances in
time where required.

(In some cases, code needed to be hacked up a bit in order to be made
properly testable using these APIs; the `MockablePlan` trait included in
here is somewhat unfortunate.)

This should fix arti#149.
</content>
</entry>
<entry>
<title>Finish the timeout-inference side of shared state.</title>
<updated>2021-10-20T17:13:15Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-20T17:13:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c8cfbda3394b6541deb09e9116cb495587f1318f'/>
<id>urn:sha1:c8cfbda3394b6541deb09e9116cb495587f1318f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow type of timeout estimator to change at runtime.</title>
<updated>2021-10-20T16:06:58Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-20T16:06:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=16ec1d21f2388afe91a66b8b2415c036c3af529e'/>
<id>urn:sha1:16ec1d21f2388afe91a66b8b2415c036c3af529e</id>
<content type='text'>
This is a big change, but it does simplify the type of Builder a
little, and isolates locking across different (potential) timeout
estimator types.
</content>
</entry>
<entry>
<title>Initial work on periodically reloading state.</title>
<updated>2021-10-19T15:26:22Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-19T15:26:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=89d1fb1767579b2a7cb8b2e15036847c8de5d4f4'/>
<id>urn:sha1:89d1fb1767579b2a7cb8b2e15036847c8de5d4f4</id>
<content type='text'>
We can use this in the case where we don't get the lock on the
state file, because another process is running.
</content>
</entry>
<entry>
<title>Use better reporting for guard status.</title>
<updated>2021-10-13T15:24:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-13T15:24:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f15cde80de0b5f6f81a7426addba35c3c7506112'/>
<id>urn:sha1:f15cde80de0b5f6f81a7426addba35c3c7506112</id>
<content type='text'>
The previous code would report all failures to build a circuit as
failures of the guard.  But of course that's not right:  If we
fail to extend to the second or third hop, that might or might not
be the guard's fault.

Now we use the "pending status" feature of the GuardMonitor type so
that an early failure is attributed to the guard, but a later
failure is attributed as "Indeterminate".  Only a complete circuit
is called a success.  We use a new "GuardStatusHandle" type here so
that we can report the status early if there is a timeout.
</content>
</entry>
<entry>
<title>Notify guard manager on network change and state flush.</title>
<updated>2021-10-10T16:38:50Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-10T16:38:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=33ba697b5d238e0422f0a8c98ac1f16b4c29bf85'/>
<id>urn:sha1:33ba697b5d238e0422f0a8c98ac1f16b4c29bf85</id>
<content type='text'>
</content>
</entry>
</feed>
