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

Simulation framework for multi-client server testing #358

Closed
wants to merge 34 commits into from

Commits on Oct 18, 2024

  1. Simulation framework for multi-client server testing

    This PR introduces a simulation framework designed to test the server by simulating multiple clients performing various
    actions over several rounds. The framework reads simulation configurations from YAML files, validates them against a
    predefined schema, and executes the simulation accordingly.
    
    Here's a summary of the key changes made:
    
    1. **New `simulation` Module**:
       - Added a new Go module `simulation` with its own `go.mod` and `go.sum`.
       - Introduced a main application for running simulations based on a YAML configuration.
       - Included functions for setting up clients, performing actions like onboarding, sending transactions, and claiming funds.
       - Added validation of simulation configuration against a schema using `gojsonschema`.
    
    2. **Simulation Configuration**:
       - Added `simulation1.yaml` as an example configuration file for running simulations.
       - Defined a `schema.yaml` for validating simulation configurations.
    
    3. **`.gitignore` Updates**:
       - Added `.idea` to ignore IntelliJ IDEA project files.
    
    4. **`Dockerfile` Update**:
       - Updated the base image version of Golang from `1.23.1` to `1.23.2`.
    
    5. **`go.work` Update**:
       - Updated the Go version from `1.23.1` to `1.23.2`.
       - Added a new directory `./simulation` to the workspace.
    
    6. **`go.work.sum` Update**:
       - Added new dependencies `github.com/coreos/go-systemd` and `github.com/go-task/slim-sprig`.
    
    7. **`e2e_test.go` Modifications**:
       - Removed the `setupAspWallet` function and replaced its usage with `utils.SetupAspWalletCovenantless`.
    
    8. **`test_utils.go` Modifications**:
       - Added a new function `SetupAspWalletCovenantless` to handle wallet setup with optional initial funding.
    sekulicd committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    ca53648 View commit details
    Browse the repository at this point in the history
  2. pr review refactor

    sekulicd committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    132e9ce View commit details
    Browse the repository at this point in the history
  3. go work sync

    sekulicd committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    056b396 View commit details
    Browse the repository at this point in the history
  4. pr review refactor

    sekulicd committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    ee4e34b View commit details
    Browse the repository at this point in the history
  5. fix readme

    sekulicd committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8e9e689 View commit details
    Browse the repository at this point in the history
  6. pr review refactor

    sekulicd committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    770c0e8 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. fixes

    sekulicd committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    716ab7d View commit details
    Browse the repository at this point in the history
  2. fix

    sekulicd committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    e9c943a View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. fix

    sekulicd committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    0150c26 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. fix

    sekulicd committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    5b79000 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. rework nonces encoding (#4)

    * rework nonces encoding
    
    * add a check in Musig2Nonce decode function
    
    * musig2_test: increase number of signers to 20
    
    * musig2.json: add a test case with a 35 leaves tree
    louisinger authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    afb7c73 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Configuration menu
    Copy the full SHA
    aa5867a View commit details
    Browse the repository at this point in the history
  2. merge with master

    sekulicd committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    25f9b11 View commit details
    Browse the repository at this point in the history
  3. fix

    sekulicd committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    f327948 View commit details
    Browse the repository at this point in the history
  4. fix pop func

    sekulicd committed Oct 28, 2024
    Configuration menu
    Copy the full SHA
    53c9064 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. fix test

    sekulicd committed Oct 29, 2024
    Configuration menu
    Copy the full SHA
    9194f35 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. remote simulation

    sekulicd committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    a477571 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2024

  1. fixes

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    8812573 View commit details
    Browse the repository at this point in the history
  2. fix

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    9e1dd4f View commit details
    Browse the repository at this point in the history
  3. fix

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    67111ac View commit details
    Browse the repository at this point in the history
  4. fix

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    b189d64 View commit details
    Browse the repository at this point in the history
  5. fix

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    e9d5804 View commit details
    Browse the repository at this point in the history
  6. fix

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    ae46457 View commit details
    Browse the repository at this point in the history
  7. fix

    sekulicd committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    aaacbfd View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2024

  1. fix

    sekulicd committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    d9c9536 View commit details
    Browse the repository at this point in the history
  2. fix

    sekulicd committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    2987a49 View commit details
    Browse the repository at this point in the history
  3. fix

    sekulicd committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    53d7d19 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0465e91 View commit details
    Browse the repository at this point in the history
  5. fix

    sekulicd committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    1d3fef4 View commit details
    Browse the repository at this point in the history
  6. fix

    sekulicd committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    2de6d3f View commit details
    Browse the repository at this point in the history
  7. fix

    sekulicd committed Nov 5, 2024
    Configuration menu
    Copy the full SHA
    50816c1 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. fix

    sekulicd committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    c6632f3 View commit details
    Browse the repository at this point in the history
  2. fix

    sekulicd committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    9bca611 View commit details
    Browse the repository at this point in the history
  3. remote testing and readme

    sekulicd committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    5eb1b72 View commit details
    Browse the repository at this point in the history