Skip to content
Merged
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
9 changes: 8 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
.env
.env*
.git
.aws
.agents
.codex
__pycache__
dist
s5cmd
80 changes: 65 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: ci
on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
expected_head:
description: Expected release candidate commit (empty for an ordinary manual run)
default: ''
type: string
producer_run_id:
description: Trusted release workflow run
default: ''
type: string
producer_attempt:
description: Trusted release workflow attempt
default: ''
type: string
pull_request:
branches:
- "coreweave"
Expand All @@ -10,7 +23,26 @@ on:
permissions:
contents: read
jobs:
release-preflight:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
actions: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Verify release candidate
if: github.event_name == 'workflow_dispatch' && inputs.expected_head != ''
run: python3 scripts/release_gate.py ci-preflight
env:
GH_TOKEN: ${{ github.token }}
EXPECTED_HEAD: ${{ inputs.expected_head }}
PRODUCER_RUN_ID: ${{ inputs.producer_run_id }}
PRODUCER_ATTEMPT: ${{ inputs.producer_attempt }}
build:
needs: release-preflight
strategy:
matrix:
go-version:
Expand All @@ -35,6 +67,7 @@ jobs:
- run: make build

test:
needs: release-preflight
strategy:
matrix:
go-version:
Expand All @@ -50,19 +83,6 @@ jobs:
runs-on: ${{ matrix.os }}-latest
env:
GOFLAGS: ${{ matrix.os == 'macos' && '-ldflags=-linkmode=external' || '' }}
services:
minio:
image: ${{ (matrix.os == 'ubuntu') && 'bitnamilegacy/minio:2023.7.18' || ''}}
ports:
- 45677:9000
options: >-
--health-cmd "curl -I http://localhost:9000/minio/health/live -s"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -71,10 +91,34 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- run: make test
- name: Build pinned local test storage
if: matrix.os == 'ubuntu'
run: GOBIN="$RUNNER_TEMP/minio-bin" go install github.com/minio/minio@0120ff93bc4b9cfaf2865e55850e9b20e5ef703d # RELEASE.2023-07-18T17-49-40Z
- name: Run tests
shell: bash
run: |
if [ -n "$S5CMD_TEST_ENDPOINT_URL" ]; then
"$RUNNER_TEMP/minio-bin/minio" server "$RUNNER_TEMP/minio-data" --address 127.0.0.1:45677 >"$RUNNER_TEMP/minio.log" 2>&1 &
minio_pid=$!
trap 'kill "$minio_pid" 2>/dev/null || true; wait "$minio_pid" 2>/dev/null || true' EXIT
for ((attempt=0; attempt<30; attempt++)); do
if curl --fail --silent --max-time 2 "$S5CMD_TEST_ENDPOINT_URL/minio/health/live" >/dev/null; then
break
fi
sleep 1
done
if ! curl --fail --silent --max-time 2 "$S5CMD_TEST_ENDPOINT_URL/minio/health/live" >/dev/null; then
echo 'Local test storage did not become healthy.'
exit 1
fi
fi
make test
env:
S5CMD_TEST_ENDPOINT_URL: ${{ (matrix.os == 'ubuntu') && 'http://localhost:45677' || '' }}
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
qa:
needs: release-preflight
strategy:
matrix:
go-version:
Expand All @@ -93,10 +137,16 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: '3.11'
- name: Install pinned Semgrep without a container pull
run: python -m pip install --disable-pip-version-check semgrep==1.65.0
- run: make bootstrap
- run: make check

credential-helper:
needs: release-preflight
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
51 changes: 0 additions & 51 deletions .github/workflows/docker.yml

This file was deleted.

52 changes: 0 additions & 52 deletions .github/workflows/goreleaser.yml

This file was deleted.

Loading
Loading