From 193799dfb06842c0f77c6108a2c797172c56f429 Mon Sep 17 00:00:00 2001 From: RedPanda Date: Mon, 19 Jan 2026 17:53:19 +0530 Subject: [PATCH 1/3] add: FOC_DEVNET_BASEDIR override, integration test CI machine --- .github/workflows/ci.yml | 2 +- src/paths.rs | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3496da..3db7346 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: run: cargo clippy --all-targets --all-features -- -D warnings integration-test: - runs-on: ["self-hosted", "linux", "x64", "16xlarge+gpu"] + runs-on: ["self-hosted", "linux", "x64", "4xlarge+amd"] timeout-minutes: 60 steps: diff --git a/src/paths.rs b/src/paths.rs index 46f6a54..541d1d3 100644 --- a/src/paths.rs +++ b/src/paths.rs @@ -1,10 +1,19 @@ use std::path::PathBuf; -/// Returns the path to the foc-devnet home directory, e.g., ~/.foc-devnet +use tracing::info; + +/// Returns the path to the foc-devnet home directory. +/// First checks for $FOC_DEVNET_BASEDIR environment variable. +/// If not set, defaults to ~/.foc-devnet pub fn foc_devnet_home() -> PathBuf { - dirs::home_dir() - .unwrap_or_else(|| PathBuf::from("/tmp")) - .join(".foc-devnet") + if let Ok(base_dir) = std::env::var("FOC_DEVNET_BASEDIR") { + info!("Using FOC_DEVNET_BASEDIR from environment: {}", base_dir); + PathBuf::from(base_dir) + } else { + dirs::home_dir() + .unwrap_or_else(|| PathBuf::from("/tmp")) + .join(".foc-devnet") + } } /// Returns the path to the foc-devnet logs directory, e.g., ~/.foc-devnet/logs From 5f974989247bb4f4d3aa6f309c2d32914a4c3e31 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Wed, 28 Jan 2026 09:30:43 +0100 Subject: [PATCH 2/3] Update CI runner to 8xlarge instance type --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3db7346..ea8f33b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: run: cargo clippy --all-targets --all-features -- -D warnings integration-test: - runs-on: ["self-hosted", "linux", "x64", "4xlarge+amd"] + runs-on: ["self-hosted", "linux", "x64", "8xlarge+amd"] timeout-minutes: 60 steps: From 6ba3e745df42119a36069e99a9f70f5277a1ddd7 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Wed, 28 Jan 2026 21:33:40 +0100 Subject: [PATCH 3/3] Update CI runner instance type to 12xlarge --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea8f33b..44002da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: run: cargo clippy --all-targets --all-features -- -D warnings integration-test: - runs-on: ["self-hosted", "linux", "x64", "8xlarge+amd"] + runs-on: ["self-hosted", "linux", "x64", "12xlarge+amd"] timeout-minutes: 60 steps: