Skip to content

fix(nimbus): always fetch newer results - #16442

Merged
RJAK11 merged 2 commits into
mainfrom
16203
Jul 28, 2026
Merged

fix(nimbus): always fetch newer results#16442
RJAK11 merged 2 commits into
mainfrom
16203

Conversation

@RJAK11

@RJAK11 RJAK11 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Because

This PR

  • relands the feat(nimbus): Always fetch newer results #15871 changes that fetch results when an experiment has newer results
  • catches ValidationError when reading metadata, reports it to Sentry and skips only that experiment so a single experiment with invalid metadata no longer breaks the whole fetch

Fixes #16203

Because

* the fetch task used experiment status and a fixed time window to decide when to fetch results
* #15871 changed this to fetch whenever an experiment has newer results, but was reverted in #16152 after invalid metadata for older experiments crashed the fetch loop

This commit

* reland the reverted #15871 changes that fetch results when an experiment's analysis start time is newer than the stored one

Fixes #15737
Because

* Jetstream writes metadata for some older experiments that is missing fields the current schema requires (e.g. analysis_bases)
* validating that metadata raises a ValidationError that we do not catch
* this crashed the whole fetch loop and is why #15871 was reverted (#16152)

This commit

* report the error to Sentry and skip the experiment instead of raising, in both the main loop (get_latest_analysis_start_time) and the fetch task (fetch_experiment_data), so invalid data is never stored or surfaced and one bad experiment cannot abort the fetch for the others
* add tests that reproduce the schema validation error reported in Sentry

Fixes #16203
@RJAK11
RJAK11 marked this pull request as ready for review July 28, 2026 14:49
@RJAK11 RJAK11 changed the title fix(nimbus): catch metadata schema validation errors fix(nimbus): always fetch newer results Jul 28, 2026
@RJAK11

RJAK11 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

The first commit are the exact changes that were reverted while the second commit includes reporting and skipping experiments with the validation errors

@RJAK11
RJAK11 added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit ee65d31 Jul 28, 2026
30 checks passed
@RJAK11
RJAK11 deleted the 16203 branch July 28, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fetching Jetstream data failed: 12 validation errors for Metadata

2 participants