This is an automated email from the ASF dual-hosted git repository. Xuanwo pushed a commit to branch ci/r2-probe-8013 in repository https://gitbox.apache.org/repos/asf/opendal.git
commit 1736cb85501fa5d64850a326f392609539c57fa2 Author: Xuanwo <[email protected]> AuthorDate: Wed Nov 25 09:14:50 2026 +0000 ci: one-shot R2 writer and version probe for #8013 (temporary branch) --- .github/workflows/nightly_tier_b.yml | 128 ++++++++++++++++------------------- 1 file changed, 60 insertions(+), 68 deletions(-) diff --git a/.github/workflows/nightly_tier_b.yml b/.github/workflows/nightly_tier_b.yml index 15cae567e9..086bd20f68 100644 --- a/.github/workflows/nightly_tier_b.yml +++ b/.github/workflows/nightly_tier_b.yml @@ -15,86 +15,78 @@ # specific language governing permissions and limitations # under the License. +# Temporary one-shot diagnostic for apache/opendal#8013 on branch +# ci/r2-probe-8013. Runs the reviewed R2 writer/version probe against the +# sponsored R2 fixture, then inventories and cleans the probe prefix. +# This file never lands on main; the branch is deleted after one run. + name: Nightly Tier B on: - schedule: - # Daily 02:15 Asia/Shanghai (18:15 UTC). - - cron: '15 18 * * *' workflow_dispatch: - inputs: - dry_run: - description: "Run reporter without creating, updating, or closing issues" - required: false - default: false - type: boolean permissions: contents: read -concurrency: - group: nightly-tier-b-${{ github.ref }} - cancel-in-progress: false - jobs: - behavior_live: - if: github.repository == 'apache/opendal' - uses: ./.github/workflows/test_behavior.yml - with: - mode: nightly-live - retry_attempts: 2 - secrets: - OP_CONNECT_HOST: ${{ secrets.OP_CONNECT_HOST }} - OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }} - - ghac: - if: github.repository == 'apache/opendal' - permissions: - contents: read - actions: write - uses: ./.github/workflows/service_test_ghac.yml - with: - retry_attempts: 2 - - edge_aws_oidc: - if: github.repository == 'apache/opendal' - permissions: - contents: read - id-token: write - uses: ./.github/workflows/test_edge_aws_oidc.yml - with: - retry_attempts: 2 - - report: - name: Report Nightly Status - if: always() && github.repository == 'apache/opendal' - needs: - - behavior_live - - ghac - - edge_aws_oidc - runs-on: ubuntu-slim - timeout-minutes: 10 - permissions: - contents: read - actions: read - issues: write + r2_probe: + if: github.repository == 'apache/opendal' && github.ref == 'refs/heads/ci/r2-probe-8013' + runs-on: ubuntu-24.04 + timeout-minutes: 45 steps: - uses: actions/checkout@v7 with: persist-credentials: false - - name: Reconcile nightly live-service issues + + - name: Setup Rust builder + uses: ./.github/actions/setup + with: + need-protoc: true + + - name: Install boto3 + shell: bash + run: | + python3 -m venv "$RUNNER_TEMP/probe-venv" + "$RUNNER_TEMP/probe-venv/bin/pip" install --quiet 'boto3==1.40.72' + echo "$RUNNER_TEMP/probe-venv/bin" >> "$GITHUB_PATH" + + # Connect credentials exist only in this step's environment. The pinned + # 1Password action resolves the four op://services/r2/* fields and exports + # only those resolved values for later steps. + - name: Resolve R2 fixture + uses: ./.github/services/r2/r2 env: - GH_TOKEN: ${{ github.token }} - DRY_RUN: ${{ inputs.dry_run }} + OP_CONNECT_HOST: ${{ secrets.OP_CONNECT_HOST }} + OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }} + + - name: Check that Connect credentials did not leak + shell: bash + run: | + test -z "${OP_CONNECT_TOKEN:-}" + test -z "${OP_CONNECT_HOST:-}" + test -n "${OPENDAL_R2_BUCKET:-}" + + - name: Create probe prefix + shell: bash + run: | + set +x + prefix=$(python3 core/examples/inventory.py new-prefix) + echo "OPENDAL_R2_ROOT=$prefix" >> "$GITHUB_ENV" + + - name: Run probe + shell: bash + working-directory: core + env: + OPENDAL_TEST: r2 + OPENDAL_DISABLE_RANDOM_ROOT: "true" + RUST_LOG: "off" + run: | + set +x + cargo run --quiet --locked --features tests,services-r2 --example r2_nightly_probe -- all + + - name: Inventory and clean probe prefix + if: always() + shell: bash run: | - args=( - --tier tier-b - --workflow-file nightly_tier_b.yml - --run-id "${{ github.run_id }}" - --head-sha "${{ github.sha }}" - --self-job-name "Report Nightly Status" - ) - if [ "$GITHUB_REPOSITORY" = "apache/opendal" ] && [ "$GITHUB_REF" = "refs/heads/main" ] && [ "$DRY_RUN" != "true" ]; then - args+=(--apply) - fi - python3 .github/scripts/nightly/report.py "${args[@]}" + set +x + python3 core/examples/inventory.py inventory core/examples/probe-objects.txt
