Skip to content

Commit 90c5b1a

Browse files
authored
feat(ingest): write server-log blocks and GPU sample blobs on ingest (#1658)
1 parent 42da605 commit 90c5b1a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.github/workflows/ingest-results.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ jobs:
299299
POWER_PUBLICATION_MANIFEST: ${{ github.workspace }}/power-publication.json
300300
DATABASE_WRITE_RECEIPT: ${{ github.workspace }}/database-writes.json
301301
INGEST_REPORT_OUTPUT: ${{ github.workspace }}/ingest-report.json
302+
SERVER_LOG_BLOCKS: '1'
303+
GPU_SAMPLE_BLOBS: '1'
302304
run: |
303305
: "${INGEST_REPO:?BENCHMARK_REPO repository variable is not set}"
304306
bun run admin:db:ingest:ci

‎docs/data-pipeline.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ becomes `ς` instead of `σ`, and newer engines lower letters PostgreSQL 17 leav
506506
query therefore asks for every code point with the same PostgreSQL lowercase as each term
507507
character. Regenerate the table if the database's PostgreSQL major version or locale changes.
508508

509-
`SERVER_LOG_BLOCKS=1` makes ingest write blocks next to the text columns.
509+
`SERVER_LOG_BLOCKS=1` makes ingest write blocks next to the text columns; `ingest-results.yml` sets it.
510510
`bun run admin:db:compact-server-logs` (`--log-id`, `--limit`, `--dry-run`, `--concurrency`) converts
511511
existing files, reading each file's text in ranges of 64 blocks. `--concurrency N` compacts N files at
512512
once on N connections; each file is its own transaction, so an interrupted run resumes by rerunning.
@@ -895,8 +895,8 @@ and every writer compares the decoded blob with those rows before storing it.
895895
`gpu_metric_samples` stays the source of truth. Edit samples only through ingest,
896896
which restamps `ingested_at`.
897897

898-
Ingest writes the blob in the sample transaction when `GPU_SAMPLE_BLOBS=1`; leave it
899-
unset until migration 022 is applied on the target. Run
898+
Ingest writes the blob in the sample transaction when `GPU_SAMPLE_BLOBS=1`, which
899+
`ingest-results.yml` sets; apply migration 022 on a target before ingesting into it. Run
900900
`bun run admin:db:backfill-gpu-sample-blobs --yes` once after migration 022 and after
901901
bumping `GPU_SAMPLE_BLOB_FORMAT_VERSION` (`--run-id ID`, `--limit N` and `--force`
902902
narrow or redo it). `bun run admin:db:verify-gpu-sample-blobs --limit N` compares

0 commit comments

Comments
 (0)