Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: 3PH #533

Draft
wants to merge 53 commits into
base: main
Choose a base branch
from
Draft

WIP: 3PH #533

wants to merge 53 commits into from

Commits on Jun 23, 2023

  1. Configuration menu
    Copy the full SHA
    c7568bb View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. WIP: emit a senderPromise for third party caps

    ...and some logic to start the handoff process. Not done yet, but only
    affects codepaths where the network is non-nil.
    zenhack committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    a18cfe6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    00016f7 View commit details
    Browse the repository at this point in the history
  3. Drop unnecessary cast.

    zenhack committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    487a0bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9b95244 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9d21dc8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e5273b1 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2023

  1. Allocate provide ids from srcConn

    i.e. the connection we're sending to.
    zenhack committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    bcffd64 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e8c3ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0687477 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f55caaf View commit details
    Browse the repository at this point in the history
  5. package testnetwork: export concrete type

    I want to add a few testing-specific methods.
    zenhack committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    1b5266a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b5411a9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    06654da View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    46cba7c View commit details
    Browse the repository at this point in the history
  9. Rework some bits of the Network interface.

    In particular:
    
    - The way we were supplying rpc.Options was clumsy. For now we have a
      network-specific way of doing this, but it could easily generalize.
    - The Accept method wasn't really what we wanted either; has been
      replaced by Serve().
    zenhack committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    63b6cf5 View commit details
    Browse the repository at this point in the history
  10. Add basic test for testnetwork.

    Also, supply a large buffer for connections.
    zenhack committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    1fba9f0 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Test network: make implementation a pointer.

    These need to be comparable.
    zenhack committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    a1349f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ddf4c10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eef25d0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a2b2b8 View commit details
    Browse the repository at this point in the history
  5. Remove a TODO

    I don't think there's more to do in this section.
    zenhack committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    9461c10 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4264f84 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    67b1a62 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    38c547c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    502cce5 View commit details
    Browse the repository at this point in the history
  3. Add a couple more 3PH checks

    ...and note some other things to test.
    zenhack committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    b3e9fcb View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Finish out TestSendProvide

    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    8e8efcc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0651043 View commit details
    Browse the repository at this point in the history
  3. Implement TestVineUseCancelsHandoff

    Fails currently; the exception returned is 'failed' rather than
    'unimplemented', which suggests that it may not be being forwarded
    correctly. Need to investigate further.
    
    This also factors out a bunch of common logic into a helper function.
    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    68465af View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8a1e2f1 View commit details
    Browse the repository at this point in the history
  5. Finish vine implementation.

    This gets rid of a panic("TODO: ...").
    
    The test still fails, but I know why.
    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    601d9b9 View commit details
    Browse the repository at this point in the history
  6. Get vine test working.

    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    fbbf0f4 View commit details
    Browse the repository at this point in the history
  7. Add some comments to tests

    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    f524899 View commit details
    Browse the repository at this point in the history
  8. Implement other vine test.

    Passes!
    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    a71bc43 View commit details
    Browse the repository at this point in the history
  9. 3PH: correctly handle sending resolves for dropped promises.

    That is, don't, and clean up.
    
    For good measure, move the snapshot.Release() out of the critical
    section, as I'm not sure this is valid.
    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    837cb16 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    dbe07b0 View commit details
    Browse the repository at this point in the history
  11. Fix build errors

    ...did I really not run the tests after this?
    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    6816d38 View commit details
    Browse the repository at this point in the history
  12. Add a test for 3ph disembargos, and fix some issues.

    Still fails because of the obvious panic("TODO..."), but caught a couple
    unrelated bugs.
    zenhack committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    24b569a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eeed744 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    b8654f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81901e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e18f75c View commit details
    Browse the repository at this point in the history
  4. Fix 3ph disembargo test

    zenhack committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    43c0722 View commit details
    Browse the repository at this point in the history
  5. Replace ErrorReporter with a structured logging interface.

    The new interface:
    
    - Has levels (debug, info, warn, error)
    - Accepts arguments for structured logging
    
    Per the comments, the interface is designed to be used with
    *slog.Logger, though other implementations are possible (and we already
    use one in test).
    zenhack committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    1067d0e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9e8acf5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3adf1db View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6cf0e01 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b2c7b80 View commit details
    Browse the repository at this point in the history
  10. Futureproof comment.

    I'm going to punt this off until after the basic 3PH, so let's make sure
    this is correct after that.
    zenhack committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    d934815 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    24e8008 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    abc5258 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3d9ba97 View commit details
    Browse the repository at this point in the history