-
Notifications
You must be signed in to change notification settings - Fork 8
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
handle multi-step states #156
Conversation
@@ -33,7 +33,7 @@ jobs: | |||
# apt update is implicit | |||
# pinning package implicit | |||
# depext install implicit | |||
- run: opam install . ocamlformat.0.20.1 | |||
- run: opam install . ocamlformat.0.26.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this kind of change should go to master directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test but I think that it looks fine. Thanks
lib/state.ml
Outdated
(* when new jobs are pending, we keep the existing state *) | ||
| Pending -> current_build_status.original_failed_commit, current_build_status.current_failed_commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(* when new jobs are pending, we keep the existing state *) | |
| Pending -> current_build_status.original_failed_commit, current_build_status.current_failed_commit | |
| (* when new jobs are pending, we keep the existing state *) Pending -> | |
current_build_status.original_failed_commit, current_build_status.current_failed_commit |
(* when new jobs are pending, we keep the existing state *) | |
| Pending -> current_build_status.original_failed_commit, current_build_status.current_failed_commit | |
| Pending (* when new jobs are pending, we keep the existing state *) -> | |
current_build_status.original_failed_commit, current_build_status.current_failed_commit |
(* when new jobs are pending, we keep the existing state *) | |
| Pending -> current_build_status.original_failed_commit, current_build_status.current_failed_commit | |
| Pending -> | |
(* when new jobs are pending, we keep the existing state *) | |
current_build_status.original_failed_commit, current_build_status.current_failed_commit |
nitpick, but I find it easier to read the comments when they are inside the branch they are about
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense. Moved the comment inside, as per the last of your suggestions
Description of the task
This PR sets the base layer to handle multi-step states. From here we can keep track of builds that keep failing over time and who created the original failing commit and the latest commit to add on top of that failure.