diff --git a/.github/workflows/bolt_boost_ci.yml b/.github/workflows/bolt_boost_ci.yml index 05b3c7d0e..7cb113c98 100644 --- a/.github/workflows/bolt_boost_ci.yml +++ b/.github/workflows/bolt_boost_ci.yml @@ -39,6 +39,13 @@ jobs: with: crate: cargo-nextest + - name: Install Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + - name: Run bolt-boost tests run: cd bolt-boost && cargo nextest run --workspace --retries 3 env: diff --git a/.github/workflows/bolt_cli_ci.yml b/.github/workflows/bolt_cli_ci.yml index 30e798898..f3a9ffdc5 100644 --- a/.github/workflows/bolt_cli_ci.yml +++ b/.github/workflows/bolt_cli_ci.yml @@ -50,5 +50,12 @@ jobs: with: version: nightly + - name: Install Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + - name: Run bolt-cli tests run: cd bolt-cli && cargo nextest run --workspace --retries 3 diff --git a/.github/workflows/bolt_sidecar_ci.yml b/.github/workflows/bolt_sidecar_ci.yml index 071200f82..e493c8ea9 100644 --- a/.github/workflows/bolt_sidecar_ci.yml +++ b/.github/workflows/bolt_sidecar_ci.yml @@ -45,6 +45,13 @@ jobs: with: crate: cargo-nextest + - name: Install Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + tags: tag:ci + - name: Run bolt-sidecar tests run: cd bolt-sidecar && cargo nextest run --workspace --retries 3 env: diff --git a/bolt-cli/src/commands/delegate.rs b/bolt-cli/src/commands/delegate.rs index 8dbf096c8..796311576 100644 --- a/bolt-cli/src/commands/delegate.rs +++ b/bolt-cli/src/commands/delegate.rs @@ -402,7 +402,7 @@ mod tests { /// --exact --show-output --ignored --nocapture /// ``` #[tokio::test] - #[ignore] + #[ignore = "Requires Dirk to be installed on the system"] async fn test_delegation_dirk() -> eyre::Result<()> { let _ = tracing_subscriber::fmt::try_init(); let (mut dirk, mut dirk_proc) = dirk::test_util::start_dirk_test_server().await?; diff --git a/bolt-cli/src/common/dirk.rs b/bolt-cli/src/common/dirk.rs index 31862d08c..398c18719 100644 --- a/bolt-cli/src/common/dirk.rs +++ b/bolt-cli/src/common/dirk.rs @@ -231,7 +231,7 @@ mod tests { /// --exact --show-output --ignored /// ``` #[tokio::test] - #[ignore] + #[ignore = "Requires Dirk to be installed on the system"] async fn test_dirk_connection_e2e() -> eyre::Result<()> { let (mut dirk, mut dirk_proc) = test_util::start_dirk_test_server().await?; diff --git a/bolt-sidecar/src/chain_io/manager.rs b/bolt-sidecar/src/chain_io/manager.rs index 9d8df6fb8..fc7403792 100644 --- a/bolt-sidecar/src/chain_io/manager.rs +++ b/bolt-sidecar/src/chain_io/manager.rs @@ -193,9 +193,15 @@ mod tests { use super::BoltManager; #[tokio::test] - #[ignore = "requires Chainbound tailnet"] async fn test_verify_validator_pubkeys() { let url = Url::parse("http://remotebeast:48545").expect("valid url"); + + // Skip the test if the tailnet server isn't reachable + if reqwest::get(url.clone()).await.is_err_and(|err| err.is_timeout() || err.is_connect()) { + eprintln!("Skipping test because remotebeast is not reachable"); + return; + } + let manager = BoltManager::from_chain(url, Chain::Holesky).expect("manager deployed on Holesky");