fix(bottest): skip integration and e2e tests in CI
All checks were successful
Botlib CI / build (push) Successful in 4s
BotServer CI / build (push) Successful in 24s
Bottest CI / build (push) Successful in 42s

- Add SKIP_INTEGRATION_TESTS and SKIP_E2E_TESTS env vars to bottest CI
- Add #[ignore] to email_integration_test.rs tests (need localhost:8080)
- Add #[ignore] to e2e/mod.rs tests that call TestHarness::full()
- Most integration tests already respect SKIP_INTEGRATION_TESTS env var
- Most e2e tests already respect SKIP_E2E_TESTS env var
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-22 12:44:40 +00:00
parent 750c5907d0
commit 319a704f0b
3 changed files with 9 additions and 0 deletions

View file

@ -6,6 +6,8 @@ env:
CARGO_TARGET_DIR: /opt/gbo/work/target
RUSTC_WRAPPER: ""
PATH: /home/gbuser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SKIP_INTEGRATION_TESTS: "1"
SKIP_E2E_TESTS: "1"
jobs:
build:
runs-on: gbo

View file

@ -299,6 +299,7 @@ async fn test_harness_starts_server() {
}
#[tokio::test]
#[ignore]
async fn test_full_harness_has_all_services() {
if std::env::var("FRESH_STACK").is_err() {
eprintln!("Skipping: test_full_harness_has_all_services requires FRESH_STACK=1 (uses existing stack by default)");
@ -325,6 +326,7 @@ async fn test_full_harness_has_all_services() {
}
#[tokio::test]
#[ignore]
async fn test_e2e_cleanup() {
let mut ctx = match TestHarness::full().await {
Ok(ctx) => ctx,

View file

@ -2,6 +2,7 @@
use serde_json::json;
#[tokio::test]
#[ignore]
async fn test_feature_flags_endpoint() {
let client = reqwest::Client::new();
let org_id = "00000000-0000-0000-0000-000000000000";
@ -17,6 +18,7 @@ async fn test_feature_flags_endpoint() {
}
#[tokio::test]
#[ignore]
async fn test_extract_lead_endpoint() {
let client = reqwest::Client::new();
@ -38,6 +40,7 @@ async fn test_extract_lead_endpoint() {
}
#[tokio::test]
#[ignore]
async fn test_categorize_email_endpoint() {
let client = reqwest::Client::new();
@ -62,6 +65,7 @@ async fn test_categorize_email_endpoint() {
}
#[tokio::test]
#[ignore]
async fn test_snooze_email_endpoint() {
let client = reqwest::Client::new();
@ -82,6 +86,7 @@ async fn test_snooze_email_endpoint() {
}
#[tokio::test]
#[ignore]
async fn test_flag_email_endpoint() {
let client = reqwest::Client::new();