spellshift / realm

Realm is a cross platform Red Team engagement platform with a focus on automation and reliability.
https://docs.realm.pub/
GNU General Public License v3.0
415 stars 31 forks source link

[bug] Fix Implant Tests #279

Closed KCarretto closed 1 year ago

KCarretto commented 1 year ago

Describe the bug Tests are failing! See Github Action

Run cd ./implants/ && cargo llvm-cov nextest --lcov --output-path lcov.info
info: running `rustup component add llvm-tools-preview --toolchain nightly-2022-11-03-x[8](https://github.com/KCarretto/realm/actions/runs/6033029553/job/16369114659#step:8:9)6_64-unknown-linux-gnu` to install the `llvm-tools-preview` component for the selected toolchain
info: downloading component 'llvm-tools-preview'
info: installing component 'llvm-tools-preview'
error: package `anstream v0.5.0` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.67.0-nightly
Either upgrade to rustc 1.70.0 or newer, or use
cargo update -p anstream@0.5.0 --precise ver
where `ver` is the latest version of `anstream` supporting rustc 1.67.0-nightly
error: command `/home/runner/.rustup/toolchains/nightly-2022-11-03-x86_64-unknown-linux-gnu/bin/cargo test --no-run --message-format json-render-diagnostics --target-dir /home/runner/work/realm/realm/implants/target/llvm-cov-target` exited with code [10](https://github.com/KCarretto/realm/actions/runs/6033029553/job/16369114659#step:8:11)1
error: process didn't exit successfully: `/home/runner/.rustup/toolchains/nightly-2022-[11](https://github.com/KCarretto/realm/actions/runs/6033029553/job/16369114659#step:8:12)-03-x86_64-unknown-linux-gnu/bin/cargo nextest run --manifest-path /home/runner/work/realm/realm/implants/Cargo.toml --target-dir /home/runner/work/realm/realm/implants/target/llvm-cov-target` (exit status: 101)
Error: Process completed with exit code 1.
hulto commented 1 year ago

Yep, looks like nightly-2022-11-03 is officially too old. Time to update the tool chain 🤞

hulto commented 1 year ago

Also looks like we weren't version pinning our test suite in github actions. Added a pin now with the updated rust version.