fix: recover non-inline entry values at runtime #173
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Container E2E | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| container-e2e-full: | |
| name: Container E2E Full (${{ matrix.name }}) | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 90 | |
| env: | |
| LLVM_SYS_181_PREFIX: /usr/lib/llvm-18 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: host-to-private | |
| ghostscope_sandbox: host | |
| target_sandbox: docker-private | |
| target_mode: same | |
| - name: private-same-sandbox | |
| ghostscope_sandbox: docker-private | |
| target_sandbox: docker-private | |
| target_mode: same | |
| - name: private-to-child-container | |
| ghostscope_sandbox: docker-private | |
| target_sandbox: docker-private | |
| target_mode: child-container | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install LLVM 18 and Polly | |
| run: | | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 18 | |
| sudo apt-get install -y llvm-18-dev libpolly-18-dev | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@1.88.0 | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-index- | |
| - name: Cache cargo build | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-${{ github.job }}-${{ matrix.name }}-target-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ github.job }}-${{ matrix.name }}-target- | |
| - name: Build GhostScope CLI and dwarf-tool | |
| run: cargo build -p ghostscope -p dwarf-tool --all-features | |
| - name: Run container topology full e2e | |
| env: | |
| E2E_CONTAINER_IMAGE: ghcr.io/swananan/ghostscope-e2e-runtime@sha256:d5df1b977c38f7a51bbf28b878f2246705a05b83ac6df7cb6be8f8a4de4105f4 | |
| E2E_CHILD_CONTAINER_IMAGE: ghcr.io/swananan/ghostscope-e2e-runtime@sha256:d5df1b977c38f7a51bbf28b878f2246705a05b83ac6df7cb6be8f8a4de4105f4 | |
| E2E_SANDBOX_SESSION: container-e2e-${{ github.run_id }}-${{ github.job }}-${{ matrix.name }} | |
| E2E_GHOSTSCOPE_SANDBOX: ${{ matrix.ghostscope_sandbox }} | |
| E2E_TARGET_SANDBOX: ${{ matrix.target_sandbox }} | |
| E2E_TARGET_MODE: ${{ matrix.target_mode }} | |
| run: | | |
| sudo -E env \ | |
| E2E_CONTAINER_IMAGE="$E2E_CONTAINER_IMAGE" \ | |
| E2E_CHILD_CONTAINER_IMAGE="$E2E_CHILD_CONTAINER_IMAGE" \ | |
| E2E_SANDBOX_SESSION="$E2E_SANDBOX_SESSION" \ | |
| E2E_GHOSTSCOPE_SANDBOX="$E2E_GHOSTSCOPE_SANDBOX" \ | |
| E2E_TARGET_SANDBOX="$E2E_TARGET_SANDBOX" \ | |
| E2E_TARGET_MODE="$E2E_TARGET_MODE" \ | |
| "$(which cargo)" test -p ghostscope-e2e-tests --tests --all-features -- --nocapture | |
| - name: Cleanup session sandboxes | |
| if: always() | |
| env: | |
| E2E_SANDBOX_SESSION: container-e2e-${{ github.run_id }}-${{ github.job }}-${{ matrix.name }} | |
| run: | | |
| ids=$(docker ps -aq --filter "label=ghostscope.session=$E2E_SANDBOX_SESSION") | |
| if [ -n "$ids" ]; then | |
| docker rm -f $ids | |
| fi | |
| container-e2e-smoke: | |
| name: Container E2E Smoke (${{ matrix.name }}) | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 90 | |
| env: | |
| LLVM_SYS_181_PREFIX: /usr/lib/llvm-18 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: host-pid-same-sandbox | |
| ghostscope_sandbox: docker-host | |
| target_sandbox: docker-host | |
| target_mode: same | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install LLVM 18 and Polly | |
| run: | | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 18 | |
| sudo apt-get install -y llvm-18-dev libpolly-18-dev | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@1.88.0 | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-index- | |
| - name: Cache cargo build | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-${{ github.job }}-${{ matrix.name }}-target-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ github.job }}-${{ matrix.name }}-target- | |
| - name: Build GhostScope CLI and dwarf-tool | |
| run: cargo build -p ghostscope -p dwarf-tool --all-features | |
| - name: Run host-PID same-sandbox smoke | |
| env: | |
| E2E_CONTAINER_IMAGE: ghcr.io/swananan/ghostscope-e2e-runtime@sha256:d5df1b977c38f7a51bbf28b878f2246705a05b83ac6df7cb6be8f8a4de4105f4 | |
| E2E_CHILD_CONTAINER_IMAGE: ghcr.io/swananan/ghostscope-e2e-runtime@sha256:d5df1b977c38f7a51bbf28b878f2246705a05b83ac6df7cb6be8f8a4de4105f4 | |
| E2E_SANDBOX_SESSION: container-e2e-${{ github.run_id }}-${{ github.job }}-${{ matrix.name }} | |
| E2E_GHOSTSCOPE_SANDBOX: ${{ matrix.ghostscope_sandbox }} | |
| E2E_TARGET_SANDBOX: ${{ matrix.target_sandbox }} | |
| E2E_TARGET_MODE: ${{ matrix.target_mode }} | |
| run: | | |
| for test_case in \ | |
| test_invalid_pid_handling \ | |
| test_correct_pid_filtering \ | |
| test_pid_specificity_with_multiple_processes | |
| do | |
| sudo -E env \ | |
| E2E_CONTAINER_IMAGE="$E2E_CONTAINER_IMAGE" \ | |
| E2E_CHILD_CONTAINER_IMAGE="$E2E_CHILD_CONTAINER_IMAGE" \ | |
| E2E_SANDBOX_SESSION="$E2E_SANDBOX_SESSION" \ | |
| E2E_GHOSTSCOPE_SANDBOX="$E2E_GHOSTSCOPE_SANDBOX" \ | |
| E2E_TARGET_SANDBOX="$E2E_TARGET_SANDBOX" \ | |
| E2E_TARGET_MODE="$E2E_TARGET_MODE" \ | |
| "$(which cargo)" test -p ghostscope-e2e-tests --all-features --test script_execution "$test_case" -- --nocapture | |
| done | |
| - name: Cleanup session sandboxes | |
| if: always() | |
| env: | |
| E2E_SANDBOX_SESSION: container-e2e-${{ github.run_id }}-${{ github.job }}-${{ matrix.name }} | |
| run: | | |
| ids=$(docker ps -aq --filter "label=ghostscope.session=$E2E_SANDBOX_SESSION") | |
| if [ -n "$ids" ]; then | |
| docker rm -f $ids | |
| fi |