Repository navigation
Conversation
Coverage Report for CI Build 46492358207Warning No base build found for commit Coverage: 91.411%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats
💛 - Coveralls |
Triggers keep first_published_at in step, but anything that skips them can break it: a data-only restore with triggers disabled, session_replication_role = replica, or a hand-written UPDATE. Set too early, the alleles RLS policy (#809) shows everyone an allele only private score sets produced, so the check runs on a schedule rather than when someone remembers to. check_allele_first_published_at runs first_published_at_drift every Sunday, an hour after the view refresh so the two full scans don't overlap. Drift fails the job as a data error, which alerts Slack, and reports at most 20 allele ids so a bad restore can't flood the alert.
bencap
force-pushed
the
feature/bencap/809/first-published-check
branch
from
November 17, 2026 21:20
434e769 to
6656626
Compare
bencap
force-pushed
the
feature/bencap/809/rls-policies
branch
from
November 17, 2026 21:20
a3bfeb8 to
7e474ee
Compare
…9/first-published-check
…9/first-published-check
…9/first-published-check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a weekly worker job that checks
alleles.first_published_atagainst the links it caches, and alerts when they disagree. Stacked on #1004, which adds the column, its triggers andfirst_published_at_drift().The triggers keep the column in step, but anything that skips them can break it: a data-only restore with triggers disabled,
session_replication_role = replica, or a hand-writtenUPDATE. Set too early, theallelesRLS policy shows everyone an allele that only private score sets produced.check_allele_first_published_atrunsfirst_published_at_drift(). Drift fails the job as a data error, which sends the Slack alert. It reports at most 20 allele ids, so a bad restore can't flood the alert.#1003 later folds this into one job that runs every allele-table invariant check (
TODO#1003in the code).Refs #809
Tests
tests/worker/jobs/data_management/test_integrity.py: consistent alleles succeed; a drifted allele fails with a data error and its id; many drifted alleles report a bounded id list; the job runs through ARQ and records acron_jobrun.bin/checkand the data-management worker tests.Checklist
release-<year>.<n>.0branch otherwise; nevermain(stacked on feat(db): add RLS policies for every guarded table #1004)mavedb-uiPR regeneratessrc/schema/openapi.d.ts(no API schema change)