Skip to content
Merged
Changes from 4 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
31 changes: 27 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
env:
NODE_OPTIONS: "--max-old-space-size=4096"
run: |
make gen
make validate-clients-untracked-files
make gen validate-clients-untracked-files
# - name: Ensure Go workspace is synced
# run: |
# go work sync
Expand All @@ -42,6 +41,8 @@ jobs:
test-go:
name: Run Go tests
runs-on: ubuntu-22.04
env:
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
steps:
- name: Check-out code
uses: actions/checkout@v4
Expand All @@ -52,5 +53,27 @@ jobs:
- name: Run Go tests
run: |
mkdir ./webui/dist
touch ./webui/dist/index.html
make test-go
touch ./webui/dist/index.html
time_out=$(mktemp)
bench_report=$(mktemp)
/usr/bin/time -p -o "$time_out" make test-go
jq -n -R < "$time_out" 'reduce (inputs | split(" ")) as $kv ({}; .[$kv[0]] = {value: ($kv[1] | tonumber)}) | {"test-go-runtime": .}' > "$bench_report"
echo bench_report=$(echo "$bench_report") >> $GITHUB_ENV
- name: Install Bencher
uses: bencherdev/bencher@61e6a2c2e0b4c8f61c87bef598ba9dbafa51c689 # Stable digest for v0.5.8
continue-on-error: true
- name: Report times to Bencher
# OK to fail here, it's just a bencher report
continue-on-error: true
run: |
ref=${{github.ref_name}}
release_slug=$(uname -s -m | tr '[:upper:]' '[:lower:]' | sed 's/[ _]/-/g')
bencher run --adapter json \
--file="${bench_report}" \
--project lakefs \
--branch "$ref" \
--testbed "github-${release_slug}"
- name: What we reported
continue-on-error: true
run: |
cat "${bench_report}"
Loading