From 1fabd04df53eaf0c90b3c1f6b3586c4549b3f5f6 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Thu, 12 Nov 2026 18:59:20 +0900 Subject: [PATCH] =?UTF-8?q?ci(main):=20HTTP=20transport=20=EB=91=90=20?= =?UTF-8?q?=ED=96=89=EC=9D=84=20job=20=ED=95=98=EB=82=98=EC=9D=98=20step?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=8F=88=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: nightly의 httpclient-transport는 transport마다 job 하나였다. 행마다 1분이 안 되고, 그 대부분이 job 시작이다(run 100: apache 0.8분, jdk 0.9분). 고른 방법: job 하나에 transport마다 step 하나를 둔다. 줄은 지금과 같다 (`-Phttpclient.contract.transports=`). `if: always()`라서 앞 transport가 실패해도 뒤가 돌고, 실패한 step 이름이 transport를 말한다. 속성 값이 다르므로 두 번째 실행도 lane을 다시 돈다. 버린 대안: 그대로 두기. 매일 job 시작 한 번을 더 치른다. 검증: YAML을 읽어 step 넷(checkout, setup, apache, jdk)을 확인했다. --- .gitea/workflows/main.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 1b1926f9..1ead4b1e 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -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