Skip to content

Configurable http client timeouts for alioss/gcs/s3 #403

Configurable http client timeouts for alioss/gcs/s3

Configurable http client timeouts for alioss/gcs/s3 #403

name: Alioss Integration Tests
on:
workflow_dispatch:
workflow_call:
pull_request_target:
push:
branches:
- main
concurrency:
group: alioss-integration-${{ github.event.pull_request.head.ref || github.ref }}
cancel-in-progress: true
jobs:
gate:
name: Approval gate (fork PRs only)
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
environment: fork-pr-integration-test
steps:
- run: echo "Fork PR approved, proceeding with integration tests"
alioss-general-integration-tests:
name: Alioss General Integration Tests
runs-on: ubuntu-latest
needs: [gate]
concurrency:
group: alioss-integration
cancel-in-progress: false
queue: max
if: always() && (needs.gate.result == 'success' || needs.gate.result == 'skipped')
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Set up Aliyun CLI
uses: aliyun/setup-aliyun-cli-action@v1
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Setup Alioss Test Environment
run: |
export access_key_id="${{ secrets.ALI_ACCESS_KEY_ID }}"
export access_key_secret="${{ secrets.ALI_ACCESS_KEY_SECRET }}"
./.github/scripts/alioss/setup.sh
- name: Run Tests
run: |
export access_key_id="${{ secrets.ALI_ACCESS_KEY_ID }}"
export access_key_secret="${{ secrets.ALI_ACCESS_KEY_SECRET }}"
./.github/scripts/alioss/run-int.sh
- name: Teardown Alioss Test Environment
if: always()
run: |
export access_key_id="${{ secrets.ALI_ACCESS_KEY_ID }}"
export access_key_secret="${{ secrets.ALI_ACCESS_KEY_SECRET }}"
./.github/scripts/alioss/teardown.sh