Repository navigation
check:portal compares only the same release of a study - #503
Merged
Merged
Conversation
A study whose import date on cbioportal.org differs from the warehouse's is stale: cBioPortal re-imported it after our copy was loaded. Its disagreements are listed as STALE, apart from the comparisons, and don't fail the run; its agreements still count. Every other study is still compared exactly. cbioportal.org re-imported msk_impact_2017 on 2026-11-24; the warehouse's copy is from 2026-07-28, so gate-warehouse failed on master and on every pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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
scripts/check-portal-parity.ts(the gate's "counts against cBioPortal") now compares only the same release of each study.Why. cbioportal.org re-imported msk_impact_2017 on 2026-11-24 07:17. The warehouse's copy is from 2026-07-28. Since then, gate-warehouse fails on master and on every pull request with 13 mutation-count mismatches (KRAS 1661 vs 1654, NF1 629 vs 628, …). Our numbers haven't changed; master's Nov 23 report has cBioPortal at 1661 too. A re-run of master's gate-warehouse (run 45228248171, 328f8b1) failed with the same 13.
What changes
/api/studies) and from the warehouse (cancer_study.import_date). A study whose dates differ, to the second, is stale. Today only msk_impact_2017 is stale; the other 19 studies the check uses match exactly.STALEinstead ofFAIL. It is kept out ofchecksand doesn't fail the run. Agreements on a stale study still count.RECORD=1, the report addsstale(study, both dates, disagreements) andstaleChecks(the set-aside rows)./verificationdoesn't show them yet.Every study whose two copies match is still compared exactly, with no tolerance.
Caveat. While msk_impact_2017 is stale, a planted bug that only the msk_impact_2017 comparisons catch would survive the planted-bugs check. The real fix is still refreshing the warehouse's msk_impact_2017. This keeps the gate usable until then and says plainly what's stale.
Verification
tsc --noEmitand eslint are clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q3ezTaCo6wHFVsML6Qd4ht
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.