Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

EPERM: Operation not permitted error #24

Open
demisx opened this issue Mar 1, 2023 · 1 comment
Open

EPERM: Operation not permitted error #24

demisx opened this issue Mar 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@demisx
Copy link

demisx commented Mar 1, 2023

Description

Running this action in GitHub Action container fails with this error towards the end:

Failed to run tests: ASLR disable failed: EPERM: Operation not permitted
Error: "Failed to run tests: ASLR disable failed: EPERM: Operation not permitted"
Mar 01 03:48:08.084 ERROR cargo_tarpaulin: Failed to run tests: Unexpected signal when starting test
Error: "Failed to run tests: Unexpected signal when starting test"

Workflow code

  calc-code-coverage:
    needs: changes
    if: needs.changes.outputs.rust == 'true'
    name: Calculate Code Coverage
    runs-on: ubuntu-20.04
    container:
      image: ubuntu:20.04
    steps:
      - name: Check Out Repo
        uses: actions/checkout@v3
      - name: Install Required Packages
        run: |
          apt-get update && apt-get -y upgrade
          apt-get install -y curl protobuf-compiler build-essential
      - name: Install Rust Toolchain
        uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
        with:
          targets: wasm32-unknown-unknown
          toolchain: stable
      - name: Run cargo-tarpaulin
        uses: actions-rs/tarpaulin@044a1e5bdace8dd2f727b1af63c1d9a1d3572068
        with:
          version: "0.22.0"
          # Tarpaulin Docs https://github.com/xd009642/tarpaulin
          # -e for exclude
          args: |
            -v --no-fail-fast --workspace
            -e frequency frequency-cli frequency-runtime frequency-service
            --exclude-files **/mock.rs **/weights.rs **/weights/* **/benchmarking.rs
      - name: Upload to codecov.io
        uses: codecov/codecov-action@v3
        with:
          fail_ci_if_error: false # optional (default = false)
          verbose: true # optional (default = false)

Action output

.... (shortened for brevity)
Finished test [unoptimized + debuginfo] target(s) in 24m 37s
Mar 01 03:47:54.309 DEBUG cargo_tarpaulin::cargo: Linker paths: ["/__w/frequency/frequency/target/debug/build/wasmtime-runtime-55b7b1db3b6a409e/out", "/__w/frequency/frequency/target/debug/build/ring-6dacdc17e6fc3edf/out", "/__w/frequency/frequency/target/debug/build/psm-c28a2ce00cbea793/out", "/__w/frequency/frequency/target/debug/build/link-cplusplus-2c07b3b195465692/out", "/__w/frequency/frequency/target/debug/build/secp256k1-sys-de25b5a28d7107af/out", "/__w/frequency/frequency/target/debug/build/cxx-64ee3b1fc6d5959a/out", "/__w/frequency/frequency/target/debug/build/blake3-00a9cf11dbe34076/out", "/__w/frequency/frequency/target/debug/build/lz4-sys-f0aa8ab41f70747c/out", "/__w/frequency/frequency/target/debug/build/zstd-sys-69525c7f724d331f/out", "/__w/frequency/frequency/target/debug/build/wasm-opt-sys-85cdc53c8c164469/out", "/__w/frequency/frequency/target/debug/build/wasm-opt-cxx-sys-25d7dbceff5cfb3d/out"]
Mar 01 03:47:54.803  INFO cargo_tarpaulin::process_handling::linux: Launching test
Mar 01 03:47:54.804  INFO cargo_tarpaulin::process_handling: running /__w/frequency/frequency/target/debug/deps/pallet_schemas-931e67a2c43ede99
Mar 01 03:47:54.804 DEBUG cargo_tarpaulin::process_handling: Current working dir: Ok("/__w/frequency/frequency/pallets/schemas")
Mar 01 03:47:54.806 DEBUG cargo_tarpaulin::process_handling: Env vars: [("ACTIONS_CACHE_URL", "https://artifactcache.actions.githubusercontent.com/EExYXBBc6m5Bq8yGIVRXseq6VjH6cxj2wVsxknLMTZhewTaQsy/"), ("ACTIONS_RUNTIME_TOKEN", ***), ("ACTIONS_RUNTIME_URL", "https://pipelines.actions.githubusercontent.com/EExYXBBc6m5Bq8yGIVRXseq6VjH6cxj2wVsxknLMTZhewTaQsy/"), ("BIN_DIR", "target/release"), ("CARGO", "/github/home/.rustup/toolchains/nightly-2022-10-09-x86_64-unknown-linux-gnu/bin/cargo"), ("CARGO_HOME", "/github/home/.cargo"), ("CARGO_INCREMENTAL", "0"), ("CARGO_REGISTRIES_CRATES_IO_PROTOCOL", "git"), ("CARGO_TERM_COLOR", "always"), ("CI", "true"), ("GITHUB_ACTION", "__actions-rs_tarpaulin"), ("GITHUB_ACTIONS", "true"), ("GITHUB_ACTION_REF", "044a1e5bdace8dd2f727b1af63c1d9a1d3572068"), ("GITHUB_ACTION_REPOSITORY", "actions-rs/tarpaulin"), ("GITHUB_ACTOR", "demisx"), ("GITHUB_ACTOR_ID", "4452412"), ("GITHUB_API_URL", "https://api.github.com/"), ("GITHUB_BASE_REF", "main"), ("GITHUB_ENV", "/__w/_temp/_runner_file_commands/set_env_cbdb68d7-a3e6-41c2-8b92-dcff82d5ab5b"), ("GITHUB_EVENT_NAME", "pull_request"), ("GITHUB_EVENT_PATH", "/github/workflow/event.json"), ("GITHUB_GRAPHQL_URL", "https://api.github.com/graphql"), ("GITHUB_HEAD_REF", "1136-run-ci-jobs-in-container"), ("GITHUB_JOB", "calc-code-coverage"), ("GITHUB_OUTPUT", "/__w/_temp/_runner_file_commands/set_output_cbdb68d7-a3e6-41c2-8b92-dcff82d5ab5b"), ("GITHUB_PATH", "/__w/_temp/_runner_file_commands/add_path_cbdb68d7-a3e6-41c2-8b92-dcff82d5ab5b"), ("GITHUB_REF", "refs/pull/1154/merge"), ("GITHUB_REF_NAME", "1154/merge"), ("GITHUB_REF_PROTECTED", "false"), ("GITHUB_REF_TYPE", "branch"), ("GITHUB_REPOSITORY", "LibertyDSNP/frequency"), ("GITHUB_REPOSITORY_ID", "475035363"), ("GITHUB_REPOSITORY_OWNER", "LibertyDSNP"), ("GITHUB_REPOSITORY_OWNER_ID", "78103996"), ("GITHUB_RETENTION_DAYS", "90"), ("GITHUB_RUN_ATTEMPT", "1"), ("GITHUB_RUN_ID", "4299702209"), ("GITHUB_RUN_NUMBER", "2476"), ("GITHUB_SERVER_URL", "https://github.com/"), ("GITHUB_SHA", "24c0292e321feafdb24ca6c8d0ce389a1dce40bd"), ("GITHUB_STATE", "/__w/_temp/_runner_file_commands/save_state_cbdb68d7-a3e6-41c2-8b92-dcff82d5ab5b"), ("GITHUB_STEP_SUMMARY", "/__w/_temp/_runner_file_commands/step_summary_cbdb68d7-a3e6-41c2-8b92-dcff82d5ab5b"), ("GITHUB_TRIGGERING_ACTOR", "demisx"), ("GITHUB_WORKFLOW", "Verify PR Commit"), ("GITHUB_WORKFLOW_REF", "LibertyDSNP/frequency/.github/workflows/verify-pr-commit.yml@refs/pull/1154/merge"), ("GITHUB_WORKFLOW_SHA", "24c0292e321feafdb24ca6c8d0ce389a1dce40bd"), ("GITHUB_WORKSPACE", "/__w/frequency/frequency"), ("HOME", "/github/home"), ("HOSTNAME", "d4e1f76c96c4"), ("INPUT_ARGS", "-v --no-fail-fast --workspace\n-e frequency frequency-cli frequency-runtime frequency-service\n--exclude-files **/mock.rs **/weights.rs **/weights/* **/benchmarking.rs\n"), ("INPUT_OUT-TYPE", "Xml"), ("INPUT_RUN-TYPES", ""), ("INPUT_TIMEOUT", ""), ("INPUT_VERSION", "0.22.0"), ("PATH", "/__w/_temp/16aa77b6-99f8-4dec-ad19-ffdb4dec0d64:/github/home/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"), ("RUNNER_ARCH", "X64"), ("RUNNER_NAME", "Hosted Agent"), ("RUNNER_OS", "Linux"), ("RUNNER_TEMP", "/__w/_temp"), ("RUNNER_TOOL_CACHE", "/__t"), ("RUNNER_WORKSPACE", "/__w/frequency"), ("RUSTUP_HOME", "/github/home/.rustup"), ("RUSTUP_TOOLCHAIN", "nightly-2022-10-09-x86_64-unknown-linux-gnu"), ("RUST_RECURSION_COUNT", "1"), ("SSL_CERT_DIR", "/usr/lib/ssl/certs"), ("SSL_CERT_FILE", "/usr/lib/ssl/certs/ca-certificates.crt"), ("RUST_BACKTRACE", "1"), ("CARGO_PKG_NAME", "pallet-schemas"), ("CARGO_PKG_VERSION", "0.0.0"), ("CARGO_PKG_AUTHORS", "Frequency"), ("CARGO_MANIFEST_DIR", "/__w/frequency/frequency/pallets/schemas"), ("LD_LIBRARY_PATH", "/__w/frequency/frequency/target/debug/build/wasmtime-runtime-55b7b1db3b6a409e/out:/__w/frequency/frequency/target/debug/build/ring-6dacdc17e6fc3edf/out:/__w/frequency/frequency/target/debug/build/psm-c28a2ce00cbea793/out:/__w/frequency/frequency/target/debug/build/link-cplusplus-2c07b3b195465692/out:/__w/frequency/frequency/target/debug/build/secp256k1-sys-de25b5a28d7107af/out:/__w/frequency/frequency/target/debug/build/cxx-64ee3b1fc6d5959a/out:/__w/frequency/frequency/target/debug/build/blake3-00a9cf11dbe34076/out:/__w/frequency/frequency/target/debug/build/lz4-sys-f0aa8ab41f70747c/out:/__w/frequency/frequency/target/debug/build/zstd-sys-69525c7f724d331f/out:/__w/frequency/frequency/target/debug/build/wasm-opt-sys-85cdc53c8c164469/out:/__w/frequency/frequency/target/debug/build/wasm-opt-cxx-sys-25d7dbceff5cfb3d/out:/github/home/.rustup/toolchains/nightly-2022-10-09-x86_64-unknown-linux-gnu/lib")]
Mar 01 03:47:54.807 DEBUG cargo_tarpaulin::process_handling: Args: ["/__w/frequency/frequency/target/debug/deps/pallet_schemas-931e67a2c43ede99", "--test-threads", "2"]
Mar 01 03:47:54.808 ERROR cargo_tarpaulin: Failed to run tests: ASLR disable failed: EPERM: Operation not permitted
Error: "Failed to run tests: ASLR disable failed: EPERM: Operation not permitted"
Mar 01 03:48:08.084 ERROR cargo_tarpaulin: Failed to run tests: Unexpected signal when starting test
Error: "Failed to run tests: Unexpected signal when starting test"
Error: The process '/github/home/.cargo/bin/cargo' failed with exit code 1

Expected behavior

No errors running in docker container just as there are no errors running without a container.

Additional context

Add any other context about the problem here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants