-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: jobs temporary disappeared while recalculating (analysis) #202
Comments
@art-w so far, to me it seems that the pattern is:
i can see some of these PRs change to a github status with a red cross instead of "in progress" |
Yes you are absolutely right! When a PR gets merged, I think we could cheat a bit here by gating master such that the latest let analysis = Analyse.examine ~master src in (* same as before *)
let master_analysis =
Current.cutoff
(* keep the previous master if the analysis hasn't changed *)
~eq:(fun (_old_master, old_analysis) (_new_master, new_analysis) ->
Analyse.Analysis.equal old_analysis new_analysis)
@@ Current.pair master analysis
in
(* see below: protect from analysis failures here with [latch]? *)
let master = Current.map fst master_analysis in
let analysis = Current.map snd master_analysis in Now the situation is even worse when the analysis fails, because then the whole PR subgraph gets invalidated.. When the next update to let master_analysis = latch ~label:"analysis" master_analysis in But this would hide the "second re-run" analysis failures from the github status, so perhaps it needs to be sent separately like you did for the lint pass? :) |
Bingo! I managed to catch one of the failures in
|
Nice! |
Happened in ocaml/opam-repository#23047 (comment) (noticed live)
(analysis)
is thus recalculated(analysis)
job to finish and all the previous jobs came back directly without any rebuild4)
should not happen as this job is latchedThe text was updated successfully, but these errors were encountered: