Skip to content

fix: fix an issue where the compactor causes previously deleted data to reappear #14310

fix: fix an issue where the compactor causes previously deleted data to reappear

fix: fix an issue where the compactor causes previously deleted data to reappear #14310

name: ci-badger-bank-tests
on:
workflow_dispatch: # allows manual trigger from GitHub
pull_request:
branches:
- main
- release/v*
permissions:
contents: read
jobs:
# Detect whether any non-doc files changed. badger-bank always runs so it
# reports a status on every PR, then short-circuits to success when only docs
# changed. This keeps the bank test gate for code PRs while preventing
# docs-only PRs from deadlocking on a check that paths filtering would skip.
changes:
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
predicate-quantifier: every
filters: |
code:
- '!**/*.md'
- '!docs/**'
- '!images/**'
badger-bank:
needs: changes
runs-on: ubuntu-latest
steps:
- if: needs.changes.outputs.code == 'true'
uses: actions/checkout@v5
- if: needs.changes.outputs.code == 'true'
name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- if: needs.changes.outputs.code == 'true'
name: Install Dependencies
run: make dependency
- if: needs.changes.outputs.code == 'true'
name: Install jemalloc
run: make jemalloc
- if: needs.changes.outputs.code == 'true'
name: Install Badger
run: cd badger && go install --race --tags=jemalloc .
- if: needs.changes.outputs.code == 'true'
name: Run Badger Bank Test
run: |
#!/bin/bash
mkdir bank && cd bank
badger bank test -v --dir=. -d=20m