Skip to content

Commit

Permalink
Merge pull request #417 from chainbound/ci/tailscale
Browse files Browse the repository at this point in the history
feat: added tailscale action to all CI workflows
  • Loading branch information
merklefruit authored Nov 22, 2024
2 parents 57e9e52 + f81d95e commit 158479f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/bolt_boost_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/bolt_cli_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions .github/workflows/bolt_sidecar_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion bolt-cli/src/commands/delegate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down
2 changes: 1 addition & 1 deletion bolt-cli/src/common/dirk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;

Expand Down
8 changes: 7 additions & 1 deletion bolt-sidecar/src/chain_io/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 158479f

Please sign in to comment.