Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ env:
GITHUB_REGISTRY: ghcr.io
API_DOCKER_IMAGE: bencher-api
CONSOLE_DOCKER_IMAGE: bencher-console
CACHE_NAME: ${{ github.ref_name }}
# Use head_ref for PRs (avoids `/merge` suffix), otherwise use ref_name
CACHE_NAME: ${{ github.head_ref || github.ref_name }}
WASM_BENCHER_VALID: bencher-valid-pkg
LITESTREAM_ARCH: amd64

Expand Down Expand Up @@ -150,6 +151,9 @@ jobs:
registry: ${{ env.GITHUB_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set cache name
id: cache-name
run: echo "value=${GITHUB_REF_NAME//\//-}" >> $GITHUB_OUTPUT
- name: Build API Docker Image
uses: docker/build-push-action@v6
with:
Expand All @@ -160,8 +164,8 @@ jobs:
MOLD_VERSION=${{ inputs.mold-version }}
LITESTREAM_VERSION=${{ inputs.litestream-version }}
LITESTREAM_ARCH=${{ env.LITESTREAM_ARCH }}
cache-from: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.API_DOCKER_IMAGE }}:cache-${{ env.CACHE_NAME }}
cache-to: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.API_DOCKER_IMAGE }}:cache-${{ env.CACHE_NAME }},mode=max
cache-from: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.API_DOCKER_IMAGE }}:cache-${{ steps.cache-name.outputs.value }}
cache-to: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.API_DOCKER_IMAGE }}:cache-${{ steps.cache-name.outputs.value }},mode=max
load: true
push: false
- name: Save API Docker Image
Expand Down Expand Up @@ -191,14 +195,17 @@ jobs:
registry: ${{ env.GITHUB_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set cache name
id: cache-name
run: echo "value=${GITHUB_REF_NAME//\//-}" >> $GITHUB_OUTPUT
- name: Build Console Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: ./services/console/Dockerfile
tags: ${{ env.CONSOLE_DOCKER_IMAGE }}
cache-from: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.CONSOLE_DOCKER_IMAGE }}:cache-${{ env.CACHE_NAME }}
cache-to: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.CONSOLE_DOCKER_IMAGE }}:cache-${{ env.CACHE_NAME }},mode=max
cache-from: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.CONSOLE_DOCKER_IMAGE }}:cache-${{ steps.cache-name.outputs.value }}
cache-to: type=registry,ref=${{ env.GITHUB_REGISTRY }}/${{ github.repository_owner }}/${{ env.CONSOLE_DOCKER_IMAGE }}:cache-${{ steps.cache-name.outputs.value }},mode=max
load: true
push: false
- name: Save Console Docker Image
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
cli:
- 'services/cli/**'
- 'lib/**'
- 'services/api/openapi.json'
docker:
- 'services/api/Dockerfile'
- 'services/console/Dockerfile'
Expand Down Expand Up @@ -93,6 +94,7 @@ jobs:
uses: ./.github/workflows/test.yml
with:
mold-version: "2.34.1"
go-version: "1.21"
is-fork: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
secrets:
TEST_BILLING_KEY: ${{ secrets.TEST_BILLING_KEY }}
Expand All @@ -107,7 +109,7 @@ jobs:
wasm-pack-version: "0.12.1"
litestream-version: "0.3.13"
build-action: ${{ needs.changes.outputs.action == 'true' || github.ref == 'refs/heads/devel' || github.ref == 'refs/heads/cloud' || startsWith(github.ref, 'refs/tags/') }}
build-docker: ${{ needs.changes.outputs.docker == 'true' || github.ref == 'refs/heads/devel' || github.ref == 'refs/heads/cloud' || startsWith(github.ref, 'refs/tags/') }}
build-docker: ${{ needs.changes.outputs.docker == 'true' || github.ref == 'refs/heads/devel' || github.ref == 'refs/heads/cloud' || startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy')) }}
secrets:
LYCHEE_USER_AGENT: ${{ secrets.LYCHEE_USER_AGENT }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/claude-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:

env:
CLAUDE_MODEL: claude-opus-4-5-20251101
CLAUDE_MAX_TURNS: 10
CLAUDE_MAX_TURNS: 16

jobs:
claude-review:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ env:
CLI_BIN_NAME: bencher

jobs:
pr_noop:
name: CLI PR No-op
if: ${{ github.event_name == 'pull_request' && !inputs.check-cli && !inputs.build-cli }}
runs-on: ubuntu-22.04
steps:
- name: No-op
run: "true"

action_main:
name: Action `main`
if: github.ref == 'refs/heads/devel' || github.ref == 'refs/heads/cloud'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
env:
RUST_BACKTRACE: full
run: cargo test-api smoke dev
- name: Run OCI Conformance Test
continue-on-error: true
run: cargo test-api oci --admin

deploy_console_netlify_dev:
name: Deploy Console UI to Netlify Dev
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
if: matrix.os == 'ubuntu-22.04'
with:
mold-version: ${{ inputs.mold-version }}
- name: Setup Go (for OCI conformance tests)
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Run Smoke Test
env:
RUST_BACKTRACE: full
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
mold-version:
type: string
required: true
go-version:
type: string
required: true
is-fork:
type: boolean
required: true
Expand Down Expand Up @@ -75,6 +78,10 @@ jobs:
if: ${{ inputs.is-fork }}
with:
mold-version: ${{ inputs.mold-version }}
- name: Setup Go (for OCI conformance tests)
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}
- name: Run Smoke Test
env:
RUST_BACKTRACE: full
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/track_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
--project bencher \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch ${{ github.ref_name }} \
--hash '${{ github.sha }}' \
--testbed ubuntu-22.04 \
--threshold-measure latency \
--threshold-test t_test \
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ tags
# Persistent undo
[._]*.un~

# OCI Distribution Spec files
distribution-spec/
oci-conformance-results/
Loading
Loading