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

Igni/actor branch replay #327

Draft
wants to merge 41 commits into
base: relrin/bastion-actor-trait
Choose a base branch
from

Commits on Sep 24, 2020

  1. Igni/affine steal sort (#261)

    Executor rework
    o0Ignition0o committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    aa066f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6234445 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    80c58ff View commit details
    Browse the repository at this point in the history
  4. bump executor dependency

    o0Ignition0o committed Sep 24, 2020
    Configuration menu
    Copy the full SHA
    ff3b755 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dc175cb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6e58b06 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. Fix grammar/typos (#276)

    tuxiqae committed Oct 6, 2020
    Configuration menu
    Copy the full SHA
    a2a5885 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2020

  1. it -> if (#278)

    tuxiqae committed Oct 11, 2020
    Configuration menu
    Copy the full SHA
    1383c19 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2020

  1. chore: update dependencies (#288)

    Fixes #281 #282 #283 #284 #285 #286
    
    Signed-off-by: Marc-Antoine Perennou <[email protected]>
    Keruspe committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    44f433f View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2020

  1. use old state to restart the child (#289)

    Signed-off-by: பாலாஜி <[email protected]>
    poonai committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    a478cc6 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2020

  1. override the redundancy based on the resizer (#292)

    Signed-off-by: பாலாஜி <[email protected]>
    poonai committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    bd6c164 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2021

  1. bump lever and nuclei (#300)

    * bump lever
    
    * bump nuclei
    o0Ignition0o committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    fb38a40 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    599a852 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    25e4ec1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    851207d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5c99157 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8664483 View commit details
    Browse the repository at this point in the history
  7. wip, allow to run tokio based futures in the bastion executor (#299)

    * wip, allow to run tokio based futures in the bastion executor
    
    * use tokio::main!
    
    * runtime handles
    
    * wip, adding tests and making them compatible with runtime-tokio
    
    * ok docs remaining, no clue how to handle it
    
    * wip, doctests
    
    * wip: getting there...
    
    * tests are finally passing!
    
    * runtime-tokio => tokio-runtime
    
    * tokio_test is amazing <3
    
    * woopsie
    
    * prepare for master, so we can beta test the tokio feature
    o0Ignition0o committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    39ff2b8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cbef837 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2021

  1. update rand (#304)

    Fixes #298
    
    Signed-off-by: Marc-Antoine Perennou <[email protected]>
    Keruspe committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    fbcc301 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c7eb00f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    206ee5a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f438ca View commit details
    Browse the repository at this point in the history
  5. Fix an issue which-in the service doesn't die when `../data/distwrite…

    …` doesn't exist. (#279)
    
    Run RustFmt.
    tuxiqae committed Feb 3, 2021
    Configuration menu
    Copy the full SHA
    0693624 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0d159ea View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2021

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

Commits on Mar 2, 2021

  1. Translate doc link to intra-doc-link, fix broken links (#310)

    Transitioning to intra-doc-link will allow us to get better feedback about broken
    links in the future. It also allows us to remove some annotations that are guessed
    by rustdoc.
    
    This commit *should* translate every link to intra-doc-link.
    scrabsha committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    8d6707f View commit details
    Browse the repository at this point in the history
  2. Add MessageHandler (#309)

    * Add initial implementation for MessageHandler
    
    This commit adds very basic implementation of MessageHandler. This structure
    stores a SignedMessage, and calls, depending on which kind of message it is, and
    on its underlying type, either a specified closure, or a fallback one.
    
    The goal is to provide an API that would be nicer to work with than the msg!
    macro.
    
    Current implementation features a state-machine like algorithm and currently
    only handles messages that can responded to (aka "questions").
    
    * Make AnswerSender carry its own signature.
    
    This allows us not to trust caller of AnswerSender::reply to provide a
    correct signature. As such, the corresponding method can be documented.
    
    This is necessary because such method may be called in the closure that
    are passed to MessageHandler::with_question.
    
    Note: this commit renames AnswerSender::send to AnswerSender::respond, and
    removes the signature part. This method is public but not documented. As
    such, this theorically breaking change should not break any code.
    
    * Add on_* functions
    
    This allows us to match on both regular messages (the ones we can't
    respond to) as well as the broadcasts. It follows the same model
    established previously.
    
    * Add documentation for MessageHandler API
    
    * Make sender address available for each on_* function
    
    * Allow MessageHandler to return something
    
    Previous implementation of MessageHandler always returned nothing, as it
    was not considered important. However, returning something is important
    at least in the fibonacci example.
    
    This commit allows the MessageHandler to return some data. It requires
    every matcher to return the same data type. This data is stored in the
    MessageHandler and returned by the on_fallback function.
    
    * Rewrite the fibonacci example with MessageHanlder
    
    * Remove useless clone by destructuring on fallback.
    
    This allows us to remove additional code.
    
    * Add a proof of concept that we can match over different types using the MessageHandler
    
    Co-authored-by: Jeremy Lempereur <[email protected]>
    scrabsha and o0Ignition0o committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    835be05 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2021

  1. Improve readme (#312)

    oScape committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    674deb1 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2021

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

Commits on Mar 21, 2021

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

Commits on Mar 26, 2021

  1. Export MessageHandler to the prelude (#317)

    Previous pull request[1] introduced the MessageHandler datatype, but did
    not export it in the prelude.
    
    Examples have been updated so that they don't import MessageHandler manually.
    
    [1]: #309
    scrabsha committed Mar 26, 2021
    Configuration menu
    Copy the full SHA
    e923d55 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2021

  1. named Distributor (#319)

    * wip
    
    * wip, a lot left!
    
    * a bit of debug statements and more funsies
    
    * tell and tell_everyone are working.
    
    * ok we're almost there, lets see if i can handle a vec<replies> and if i can register ppl to a new Distributor
    
    * yay it works!
    
    * lints
    
    * 19 lints remaining
    
    * 9 warnings to go
    
    * docs + tests
    
    * i think we re good to go
    
    * example fix
    
    * san
    
    * move miri to a .sh file
    
    * bump nightlies and anyhow
    
    * clippy pass + prepare to merge
    o0Ignition0o committed Apr 6, 2021
    Configuration menu
    Copy the full SHA
    c6016a9 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2021

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

Commits on Apr 13, 2021

  1. proposal: distributor request fn (#321)

    * proposal: distributor request fn
    
    * go async by default, add a sync variant backed by mpsc::channel
    
    * let the example runwith or without the tokio-runtime feature
    
    * fix: sometimes the children weren't attached to the dispatcher
    
    * use RwLock for now
    
    * add an after_start callback to know exactly when the children have spawned and the distributor is ready to receive and dispatch messages to everyone
    
    * wip
    
    * merge tests
    
    * split the tokio and the regular test runner so that both pass
    o0Ignition0o committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    90b8a09 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24f5522 View commit details
    Browse the repository at this point in the history
  3. bump dependencies (#324)

    o0Ignition0o committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    f1697b3 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. From ea44f84 Mon Sep 17 00:00:00 2001

    * dispatch to available children only. (#268)
    
    * Fix RestartStrategy::timeout < 1s (#265)
    
    * Renamed ActorStateData struct to Context
    
    * Extended available states for Actor
    
    * Added methods for additional states
    
    * Added removed state
    
    * Added definition module
    
    * Added Definition struct
    
    * Removed unsafe Send and Sync implementation for MailboxTx
    
    * Added docstrings for Mailbox<T>
    
    * Added tests for the Definition struct
    
    * Added presaving messages
    
    * Removed excessive imports
    
    * Added methods for getting latest message
    
    * Removed reference for the returned envelope
    
    * Code review changes
    nicolaiunrein authored and o0Ignition0o committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    abf58c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c55bd6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    51fdce3 View commit details
    Browse the repository at this point in the history
  4. global state tests

    o0Ignition0o committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    1413088 View commit details
    Browse the repository at this point in the history