Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Sandboxed Fallback #1215

Open
wants to merge 15 commits into
base: sandboxed_native
Choose a base branch
from
Open

Commits on Jan 29, 2024

  1. match test

    fborello-lambda committed Jan 29, 2024
    Configuration menu
    Copy the full SHA
    19b7323 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b62af5d View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

  1. Implement fallback

    fborello-lambda committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    ad260af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76a0a08 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    0fa98eb View commit details
    Browse the repository at this point in the history
  2. Fix sandbox test

    Gaston authored and Gaston committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    bb2bb28 View commit details
    Browse the repository at this point in the history
  3. Add sandbox to sandbox test

    Gaston authored and Gaston committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    45045b5 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. Configuration menu
    Copy the full SHA
    120ea44 View commit details
    Browse the repository at this point in the history
  2. Test fallback procedure killing sandbox

    Gaston committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    be7da9f View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Add test for Fallback Mechanism

    The test proposed kills `sandbox.proc` == `std::process:Child`.
    This kill makes the `sandbox` instance unusable. The current testbench checks with `lsof` command, using the `sandbox.proc`'s pid, comparing the outputs, before `sandbox.kill()` and after.
    
    A better way to test may be adding an extra field to the `ExecutionResult` struct:
    
    ```rust
    pub struct ExecutionResult {
        pub call_info: Option<CallInfo>,
        pub revert_error: Option<String>,
    		pub native_or_casm: Option<String>, // <- For example
        pub n_reverted_steps: usize,
    }
    ```
    
    in order to return some info related to the environment used to run the contract whenever `execution_entry_point.rs::execute()` is used.
    fborello-lambda committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    0a48f30 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2024

  1. Configuration menu
    Copy the full SHA
    f87da38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07dd6cc View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Configuration menu
    Copy the full SHA
    4f4eda4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c300e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    416f8b6 View commit details
    Browse the repository at this point in the history