Skip to content

Commit

Permalink
debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Dec 10, 2024
1 parent 9759d43 commit d200300
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
12 changes: 6 additions & 6 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ description = "Runs integration tests only"
dependencies = ["build-bins"]
env = { "RUST_LOG" = "info", "RUST_BACKTRACE" = "1" }
script = '''
cargo test --package integration-tests --test integration -- --nocapture --report-time $JUNIT_OPTS
cargo test --package golem-component-service-base --test tests -- --nocapture --report-time $JUNIT_OPTS
cargo test --package golem-worker-service-base --test services_tests -- --nocapture --report-time $JUNIT_OPTS
cargo test --package golem-worker-service-base --test api_gateway_end_to_end_tests -- --nocapture --report-time $JUNIT_OPTS
cargo test --package golem-service-base --test integration -- --nocapture --report-time $JUNIT_OPTS
cargo test --package wasm-rpc-stubgen-tests-integration --tests -- --test-threads=1 --report-time
#cargo test --package integration-tests --test integration -- --nocapture --report-time $JUNIT_OPTS
#cargo test --package golem-component-service-base --test tests -- --nocapture --report-time $JUNIT_OPTS
#cargo test --package golem-worker-service-base --test services_tests -- --nocapture --report-time $JUNIT_OPTS
#cargo test --package golem-worker-service-base --test api_gateway_end_to_end_tests -- --nocapture --report-time $JUNIT_OPTS
#cargo test --package golem-service-base --test integration -- --nocapture --report-time $JUNIT_OPTS
cargo test --package wasm-rpc-stubgen-tests-integration --tests -- --nocapture --test-threads=1 --report-time
'''
# $JUNIT_OPTS temporarily removed from wasm-rpc-stubgen-tests-integration to help debugging on CI

Expand Down
26 changes: 12 additions & 14 deletions wasm-rpc-stubgen/tests-integration/tests/compose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ test_r::enable!();

#[test]
async fn compose_with_single_stub() {
// TODO: just for CI debug
std::process::Command::new("sh")
.arg("-c")
.arg("which cargo-component")
.status()
.unwrap();
std::process::Command::new("sh")
.arg("-c")
.arg("which cargo")
.status()
.unwrap();

let (_source_dir, stub_dir, stub_wasm) = init_stub("all-wit-types").await;
let caller_dir = init_caller("caller-no-dep-importstub");

Expand Down Expand Up @@ -104,20 +116,6 @@ fn init_caller(name: &str) -> TempDir {
}

fn compile_rust(path: &Path) {
// TODO: just for CI debug
std::process::Command::new("sh")
.arg("-c")
.arg("which cargo-component")
.current_dir(path)
.status()
.unwrap();
std::process::Command::new("sh")
.arg("-c")
.arg("which cargo")
.current_dir(path)
.status()
.unwrap();

let status = std::process::Command::new("cargo")
.arg("component")
.arg("build")
Expand Down

0 comments on commit d200300

Please sign in to comment.