You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We have no good way of bisecting hydra anymore since the grahamc service died a year ago. But we have the data, it is just locked behind the hydra API being busted, and can relatively easily simply be obtained from the database. Although there is definitely merit in doing the https://pad.lassul.us/opendata-projects and making an open hydra read replica, this requires effort.
I have written a tool https://github.com/lf-/necktangler, and a ~5s sql query to run against hydra, where the result could simply be put in a s3 bucket on a nightly cron job and we could call it a day.
Describe the solution you'd like
Put this query in a cron job somewhere with hydra DB access, and run it with:
selectjsei.revisionas sha, b.timestampas advance_ts, concat(j.project, ':', j.name, ':', b.job) as hydra_job, b.idas hydra_build_id
from jobsets j
inner join builds b onj.id=b.jobset_idinner join jobsetevalmembers jsem onjsem.build=b.idinner join jobsetevals jse onjsem.eval=jse.idinner join jobsetevalinputs jsei onjsei.eval=jse.idwhereb.job= :'job'andj.project= :'project'andj.name= :'jobset'andjsei.name='nixpkgs'andb.finished=1and-- arbitraily chosen start in time; there are some bogus commit IDs from-- 2014 or so, which we would rather not deal withb.timestamp> extract(epoch from'2018-01-01T00:00:00Z'::timestamptz)
order byb.timestampasc
(nixpkgs-unstable is 8571 rows, nixos-unstable is 3000 rows, from several years. imo we have no reason to shard this any time soon)
Describe alternatives you've considered
Going and building a public read replica of hydra (sounds like effort).
Being unable to bisect hydra.
Additional context
The text was updated successfully, but these errors were encountered:
lf-
changed the title
Put hydra advances query result in a public s3 bucket somewhere
Put hydra advances query result in a public s3 bucket somewhere on a cron job
Mar 23, 2024
@mweinelt :)
Is your feature request related to a problem? Please describe.
We have no good way of bisecting hydra anymore since the grahamc service died a year ago. But we have the data, it is just locked behind the hydra API being busted, and can relatively easily simply be obtained from the database. Although there is definitely merit in doing the https://pad.lassul.us/opendata-projects and making an open hydra read replica, this requires effort.
I have written a tool https://github.com/lf-/necktangler, and a ~5s sql query to run against hydra, where the result could simply be put in a s3 bucket on a nightly cron job and we could call it a day.
Describe the solution you'd like
Put this query in a cron job somewhere with hydra DB access, and run it with:
(nixpkgs-unstable is 8571 rows, nixos-unstable is 3000 rows, from several years. imo we have no reason to shard this any time soon)
Describe alternatives you've considered
Going and building a public read replica of hydra (sounds like effort).
Being unable to bisect hydra.
Additional context
The text was updated successfully, but these errors were encountered: