Skip to content
Snippets Groups Projects

tor-circmgr: If necessary, extend the circuit to become STUB+.

Merged gabi-250 requested to merge gabi-250/arti:vanguards-extend-stub into main
3 unresolved threads

This addresses a TODO from hspool: if the pool returns a STUB circuit but we actually need a STUB+ one, we extend the circuit we were given by 1 hop

Closes #1400 (closed) and #1409 (closed)

Edited by gabi-250

Merge request reports

Pipeline #168643 passed

Pipeline passed for 58183ed1 on gabi-250:vanguards-extend-stub

Approved by

Merged by gabi-250gabi-250 9 months ago (May 14, 2024 7:30pm UTC)

Merge details

Pipeline #168822 failed

Pipeline failed for da95138c on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • This looks reasonable, but I think we should investigate the shadow-integration failure before merging.

    • Author Maintainer

      Ah, the debug_assert_eq!(circ_path.hops().len(), 3) assertion is failing (2 != 3).

      The shadow tests use lite vanguards, and for lite vanguards, the length of the stub circuit is always 2 because of a bug in VanguardHsPathBuilder::pick_path. I'll fix it in this branch...

    • Author Maintainer

      In 69a5bc71 I added some extra assertions to catch this bug sooner (right after the path is created). 0d8efbd8 contains the actual fix (there are 2 other commits between them with some small intermediate refactorings)

    • Author Maintainer

      I'll open a ticket for adding shadow tests for full vanguards (we currently only test with lite vanguards)

    • Please register or sign in to reply
  • gabi-250 added 4 commits

    added 4 commits

    • 69a5bc71 - tor-circmgr: After building the HS path, assert the length is correct.
    • dcf20954 - tor-circmgr: Rename neighbor_exclusion variables for clarity.
    • 72198255 - tor-circmgr: Assign error-handling closure to variable.
    • 0d8efbd8 - tor-circmgr: Fix path not being extended if lite vanguards are enabled.

    Compare with previous version

  • gabi-250 added 1 commit

    added 1 commit

    • 58183ed1 - tor-circmgr: Reword a somewhat inaccurate comment about vanguards.

    Compare with previous version

  • gabi-250 requested review from @nickm

    requested review from @nickm

  • mentioned in issue #1409 (closed)

  • gabi-250 changed the description

    changed the description

  • Nick Mathewson approved this merge request

    approved this merge request

  • merged

  • gabi-250 mentioned in commit da95138c

    mentioned in commit da95138c

  • Please register or sign in to reply
    Loading