mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-18 14:10:54 +08:00
ci: run the suite on the latest Go release as an advisory job
The go job tests only the toolchain go.mod pins, so a newer Go can break the suite without a repository change: Go 1.27's compress/flate started emitting a stored block for a 60-byte input, and TestDecodeEvidenceBodyGzipQuoteFound failed on its own "fixture is not compressed" guard (#276). go-stable runs the same build, vet and -p 1 test commands against whatever release is current, with the same postgres service. It is continue-on-error because a toolchain release is not a change to this repository and should not block an unrelated merge on the day it lands; the log still carries the failure, and dropping that line makes it a required check once the pinned floor moves.
This commit is contained in:
@@ -75,6 +75,49 @@ jobs:
|
||||
./intercept ./llmpool ./llmrec ./mcphttp ./notify ./server ./sidequestion
|
||||
./traffic ./traffic/rewrite
|
||||
|
||||
# The go job above tests the version go.mod pins. A newer Go can break the
|
||||
# suite without any change to this repository: Go 1.27's compress/flate
|
||||
# started emitting a stored block for a 60-byte input, which made
|
||||
# TestDecodeEvidenceBodyGzipQuoteFound fail on its own "fixture is not
|
||||
# compressed" guard (#276). This job runs the same commands on the latest
|
||||
# release so that drift shows up here rather than in a contributor's lap.
|
||||
#
|
||||
# Advisory on purpose (continue-on-error): a new toolchain release is not a
|
||||
# change to this repository, and it must not block an unrelated merge the
|
||||
# day it lands. Once the pinned floor is raised, drop continue-on-error and
|
||||
# this becomes a required check.
|
||||
go-stable:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
env:
|
||||
POSTGRES_USER: artex
|
||||
POSTGRES_PASSWORD: testpass
|
||||
POSTGRES_DB: artextest
|
||||
ports:
|
||||
- 5432:5432
|
||||
options: >-
|
||||
--health-cmd "pg_isready -U artex"
|
||||
--health-interval 5s
|
||||
--health-timeout 5s
|
||||
--health-retries 10
|
||||
env:
|
||||
ARTEX_PG_DSN: postgres://artex:testpass@localhost:5432/artextest?sslmode=disable
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
- name: toolchain in use
|
||||
run: go version
|
||||
- run: go build ./...
|
||||
- run: go vet ./...
|
||||
# Same -p 1 reason as the pinned job: packages share the one postgres
|
||||
# service, so parallel package runs delete each other's rows.
|
||||
- run: go test -p 1 ./...
|
||||
|
||||
shell:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user