ci(main): HTTP transport 두 행을 job 하나의 step으로 돈다
문제: nightly의 httpclient-transport는 transport마다 job 하나였다. 행마다 1분이 안 되고, 그 대부분이 job 시작이다(run 100: apache 0.8분, jdk 0.9분). 고른 방법: job 하나에 transport마다 step 하나를 둔다. 줄은 지금과 같다 (`-Phttpclient.contract.transports=<transport>`). `if: always()`라서 앞 transport가 실패해도 뒤가 돌고, 실패한 step 이름이 transport를 말한다. 속성 값이 다르므로 두 번째 실행도 lane을 다시 돈다. 버린 대안: 그대로 두기. 매일 job 시작 한 번을 더 치른다. 검증: YAML을 읽어 step 넷(checkout, setup, apache, jdk)을 확인했다.
This commit is contained in:
@@ -141,20 +141,22 @@ jobs:
|
||||
- uses: ./.gitea/actions/setup-java-gradle
|
||||
- run: ./gradlew :adapter:outbound:persistence-jpa:jpaPlatformContractTest -Pjpa.matrix.versions=${{ matrix.postgresql }}
|
||||
|
||||
# One HTTP transport per job, so a transport that stops satisfying the shared contract fails on its
|
||||
# own row. `ci` runs the lane once over both.
|
||||
# One HTTP transport per step, so a transport that stops satisfying the shared contract fails on its
|
||||
# own step; `always()` runs the second after the first fails. One job rather than a matrix: each
|
||||
# row is under a minute, most of it job start. `ci` runs the lane once over both.
|
||||
httpclient-transport:
|
||||
if: ${{ github.event_name != 'push' }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
transport: [apache, jdk]
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # actions/checkout@v4.2.2
|
||||
- uses: ./.gitea/actions/setup-java-gradle
|
||||
- run: ./gradlew :adapter:outbound:httpclient:httpClientStableContractTest -Phttpclient.contract.transports=${{ matrix.transport }}
|
||||
- name: apache
|
||||
if: ${{ always() }}
|
||||
run: ./gradlew :adapter:outbound:httpclient:httpClientStableContractTest -Phttpclient.contract.transports=apache
|
||||
- name: jdk
|
||||
if: ${{ always() }}
|
||||
run: ./gradlew :adapter:outbound:httpclient:httpClientStableContractTest -Phttpclient.contract.transports=jdk
|
||||
|
||||
# Sentinel promotion, Cluster redirects and TLS against real servers, every supported version.
|
||||
# docs/redis/support-matrix.md says which lane produced which evidence; each step's log carries the
|
||||
|
||||
Reference in New Issue
Block a user