mirror of
https://github.com/lukaszraczylo/llm-testbench.git
synced 2026-10-13 00:48:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f8db06d32 | ||
|
|
eabbea5508 |
@@ -15,13 +15,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Calculate semantic version
|
- name: Calculate semantic version
|
||||||
id: semver
|
id: semver
|
||||||
uses: lukaszraczylo/semver-generator@v1
|
uses: lukaszraczylo/semver-generator@v1.17.18
|
||||||
with:
|
with:
|
||||||
config_file: semver.yaml
|
config_file: semver.yaml
|
||||||
repository_local: true
|
repository_local: true
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
if: steps.tag.outputs.new == 'true'
|
if: steps.tag.outputs.new == 'true'
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v7
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
@@ -55,15 +55,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: steps.tag.outputs.new == 'true'
|
if: steps.tag.outputs.new == 'true'
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: steps.tag.outputs.new == 'true'
|
if: steps.tag.outputs.new == 'true'
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
if: steps.tag.outputs.new == 'true'
|
if: steps.tag.outputs.new == 'true'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run goreleaser
|
- name: Run goreleaser
|
||||||
if: steps.tag.outputs.new == 'true'
|
if: steps.tag.outputs.new == 'true'
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: "~> v2"
|
version: "~> v2"
|
||||||
|
|||||||
@@ -387,6 +387,15 @@ func TestDelDockerLayerCountWant_GroundTruth(t *testing.T) {
|
|||||||
t.Fatalf("write app: %v", err)
|
t.Fatalf("write app: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BuildKit keeps base layers in its own cache, so alpine:3.20 is not
|
||||||
|
// guaranteed to be in the local image store even after a successful
|
||||||
|
// build below. Pull it explicitly, and treat a pull failure (offline
|
||||||
|
// host, registry rate limit) as an environment limitation rather than
|
||||||
|
// a ground-truth failure.
|
||||||
|
if out, err := exec.Command("docker", "pull", "alpine:3.20").CombinedOutput(); err != nil {
|
||||||
|
t.Skipf("docker pull alpine:3.20 unavailable: %v\n%s", err, out)
|
||||||
|
}
|
||||||
|
|
||||||
const tag = "llmtestbench-layercount-groundtruth:test"
|
const tag = "llmtestbench-layercount-groundtruth:test"
|
||||||
// #nosec G204 -- tag is a fixed literal and dir is a t.TempDir() path,
|
// #nosec G204 -- tag is a fixed literal and dir is a t.TempDir() path,
|
||||||
// never external/user-controlled input.
|
// never external/user-controlled input.
|
||||||
|
|||||||
Reference in New Issue
Block a user