test: set RUST_LOG=off in CI and gate mcp_tools test behind mcp feature

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-02-08 21:06:51 +00:00
parent 757401c9bb
commit 14cd7fc7d3
6 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ jobs:
SQLX_OFFLINE: true
DATABASE_URL: postgres://postgres:changeme@localhost:5432/windmill
DISABLE_EMBEDDING: true
RUST_LOG: info
RUST_LOG: "off"
RUST_LOG_STYLE: never
CARGO_NET_GIT_FETCH_WITH_CLI: true
WMDEBUG_FORCE_V0_WORKSPACE_DEPENDENCIES: 1
+1
View File
@@ -42,6 +42,7 @@ fn new_app(path: &str, summary: &str) -> serde_json::Value {
#[sqlx::test(fixtures("base"))]
async fn test_app_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();
let base = format!("http://localhost:{port}/api/w/test-workspace/apps");
+1
View File
@@ -42,6 +42,7 @@ fn new_flow(path: &str, summary: &str) -> serde_json::Value {
#[sqlx::test(fixtures("base"))]
async fn test_flow_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();
let base = format!("http://localhost:{port}/api/w/test-workspace/flows");
+3
View File
@@ -25,6 +25,7 @@ async fn authed_get(port: u16, endpoint: &str, path: &str) -> reqwest::Response
#[sqlx::test(fixtures("base", "resources_test"))]
async fn test_resource_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();
let base = format!("http://localhost:{port}/api/w/test-workspace/resources");
@@ -380,8 +381,10 @@ async fn test_resource_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
Ok(())
}
#[cfg(feature = "mcp")]
#[sqlx::test(fixtures("base", "resources_test"))]
async fn test_mcp_tools(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();
+1
View File
@@ -41,6 +41,7 @@ fn new_script(path: &str, summary: &str, content: &str) -> serde_json::Value {
#[sqlx::test(fixtures("base"))]
async fn test_script_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();
let base = format!("http://localhost:{port}/api/w/test-workspace/scripts");
+1
View File
@@ -25,6 +25,7 @@ async fn authed_get(port: u16, endpoint: &str, path: &str) -> reqwest::Response
#[sqlx::test(fixtures("base", "variables_test"))]
async fn test_variable_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
initialize_tracing().await;
let server = ApiServer::start(db.clone()).await?;
let port = server.addr.port();
let base = format!("http://localhost:{port}/api/w/test-workspace/variables");