Skip to content

Test what happens when cargo test blows up with OOM on github actions

License

Notifications You must be signed in to change notification settings

alamb/oom_canary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oom_canary

Test what happens when cargo test blows up with OOM on github actions

Question: What is the symptom when cargo test exceeds its memory limits on github runner?

cargo +nightly-2021-07-04 test -p oom --

Answer:

   Compiling oom v0.1.0 (/home/runner/work/oom_canary/oom_canary/oom)
    Finished test [unoptimized + debuginfo] target(s) in 1.10s

running 1 test
     Running unittests (target/debug/deps/oom-dfbfb9f22ecf3c8b)
error: test failed, to rerun pass '--bin oom'

Caused by:
  process didn't exit successfully: `/home/runner/work/oom_canary/oom_canary/target/debug/deps/oom-dfbfb9f22ecf3c8b` (signal: 9, SIGKILL: kill)

Question: What is the symptom when cargo miri exceeds its memory limits on github runner?

cargo +nightly-2021-07-04 test -p oom --

Answer:

A libstd for Miri is now available in `/home/runner/.cache/miri/HOST`.
   Compiling oom v0.1.0 (/home/runner/work/oom_canary/oom_canary/oom)
    Finished test [unoptimized + debuginfo] target(s) in 0.38s
     Running unittests (target/x86_64-unknown-linux-gnu/debug/deps/oom-eaaafdd2ac3e4a27)

running 1 test
error: test failed, to rerun pass '--bin oom'

Caused by:
  process didn't exit successfully: `/usr/share/rust/.rustup/toolchains/nightly-2021-07-04-x86_64-unknown-linux-gnu/bin/cargo-miri /home/runner/work/oom_canary/oom_canary/target/x86_64-unknown-linux-gnu/debug/deps/oom-eaaafdd2ac3e4a27` (exit status: 255)
test tests::oom ...
Error: Process completed with exit code 255.

About

Test what happens when cargo test blows up with OOM on github actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages