From ad226440fbb0d76bbf1700cc81339c605d9ee3f5 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 8 Mar 2026 10:05:02 -0400 Subject: [PATCH] Fix daytona exec tests to load github app credentials Tests were failing locally because the Daytona sandbox needs GitHub App credentials to clone a private repository, but the exec tests were passing . This updates the tests to load the credentials and supply them during initialization. --- crates/arc-workflows/tests/daytona_integration.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/arc-workflows/tests/daytona_integration.rs b/crates/arc-workflows/tests/daytona_integration.rs index 96a8b6683..92ecc8935 100644 --- a/crates/arc-workflows/tests/daytona_integration.rs +++ b/crates/arc-workflows/tests/daytona_integration.rs @@ -79,7 +79,8 @@ fn load_github_app_credentials() -> arc_workflows::github_app::GitHubAppCredenti #[tokio::test] #[ignore] async fn daytona_exec_command() { - let env = create_env().await; + let creds = load_github_app_credentials(); + let env = create_env_with_github_app(Some(creds)).await; env.initialize().await.unwrap(); let result = env @@ -95,7 +96,8 @@ async fn daytona_exec_command() { #[tokio::test] #[ignore] async fn daytona_exec_command_with_pipe() { - let env = create_env().await; + let creds = load_github_app_credentials(); + let env = create_env_with_github_app(Some(creds)).await; env.initialize().await.unwrap(); let result = env @@ -111,7 +113,8 @@ async fn daytona_exec_command_with_pipe() { #[tokio::test] #[ignore] async fn daytona_exec_command_cancelled() { - let env = create_env().await; + let creds = load_github_app_credentials(); + let env = create_env_with_github_app(Some(creds)).await; env.initialize().await.unwrap(); let token = tokio_util::sync::CancellationToken::new(); @@ -139,7 +142,8 @@ async fn daytona_exec_command_cancelled() { #[tokio::test] #[ignore] async fn daytona_exec_command_local_timeout() { - let env = create_env().await; + let creds = load_github_app_credentials(); + let env = create_env_with_github_app(Some(creds)).await; env.initialize().await.unwrap(); // Use a tiny timeout_ms of 100ms, our local timeout is 100 + 5000 = 5100ms.