From 9559be02bc0e2923a6f67b407d93fad3b33059fc Mon Sep 17 00:00:00 2001 From: overtrue Date: Sun, 23 Aug 2026 01:38:00 +0800 Subject: [PATCH] test(e2e): enforce awscurl smoke prerequisite --- .github/workflows/ci.yml | 13 +++++++++++++ crates/e2e_test/src/bucket_policy_check_test.rs | 3 +-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e18f8132..8a7acf04f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -678,6 +678,19 @@ jobs: cache-save-if: 'false' install-build-packaging-tools: 'false' + - name: Set up Python + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + with: + python-version: "3.12" + + - name: Install awscurl + run: | + python3 -m pip install --user --upgrade pip "awscurl==0.44" + echo "AWSCURL_PATH=$HOME/.local/bin/awscurl" >> "$GITHUB_ENV" + + - name: Verify awscurl + run: test -x "$AWSCURL_PATH" + # Download after the cache restore so the freshly built binary from the # build job always wins over anything restored into target/debug. - name: Download debug binary diff --git a/crates/e2e_test/src/bucket_policy_check_test.rs b/crates/e2e_test/src/bucket_policy_check_test.rs index e71e5fe97..3060954d6 100644 --- a/crates/e2e_test/src/bucket_policy_check_test.rs +++ b/crates/e2e_test/src/bucket_policy_check_test.rs @@ -53,8 +53,7 @@ fn create_user_client(env: &RustFSTestEnvironment, access_key: &str, secret_key: async fn test_bucket_policy_authenticated_user() -> Result<(), Box> { init_logging(); if !crate::common::awscurl_available() { - info!("Skipping test_bucket_policy_authenticated_user because awscurl is not available"); - return Ok(()); + return Err("awscurl is required for test_bucket_policy_authenticated_user".into()); } info!("Starting test_bucket_policy_authenticated_user...");