Skip to content

Commit

Permalink
diagnose issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKutch committed Oct 13, 2023
1 parent fa6b96f commit 550afc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
# TODO there is some unused stuff we need to fix or remove
# make all-in-docker
run: |
go test ./...
cargo r --bin onomyd_only
go test ./...
cargo r --bin ics_cdd
cargo r --bin chain_upgrade
cargo r --bin clean
Expand Down
13 changes: 11 additions & 2 deletions tests/src/bin/chain_upgrade.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use std::time::Duration;

use log::{info, warn};
use onomy_test_lib::{
cosmovisor::{
Expand All @@ -10,7 +12,7 @@ use onomy_test_lib::{
docker::{Container, ContainerNetwork, Dockerfile},
sh,
stacked_errors::{Error, Result, StackableErr},
STD_DELAY, STD_TRIES,
STD_DELAY, STD_TRIES, FileOptions,
},
Args, TIMEOUT,
};
Expand Down Expand Up @@ -135,6 +137,13 @@ async fn onomyd_runner(args: &Args) -> Result<()> {
info!("{}", get_treasury().await.stack()?);
info!("{}", get_treasury_inflation_annual().await.stack()?);

cosmovisor_runner.terminate(TIMEOUT).await.stack()?;
let res = cosmovisor_runner.terminate(Duration::from_secs(10)).await;

//if res.is_err() {
info!("{}", &FileOptions::read_to_string("/logs/onomyd_runner.log").await.stack()?);
//}
res.stack()?;

//cosmovisor_runner.terminate(TIMEOUT).await.stack()?;
Ok(())
}

0 comments on commit 550afc7

Please sign in to comment.