Skip to content
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

Merged
merged 3 commits into from
Aug 22, 2024
Merged

handle multi-step states #156

merged 3 commits into from
Aug 22, 2024

Conversation

thatportugueseguy
Copy link
Collaborator

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.

@@ -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
Copy link
Contributor

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

Copy link
Contributor

@Khady Khady left a 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
Comment on lines 57 to 58
(* when new jobs are pending, we keep the existing state *)
| Pending -> current_build_status.original_failed_commit, current_build_status.current_failed_commit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(* 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
Suggested change
(* 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
Suggested change
(* 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

Copy link
Collaborator Author

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

@thatportugueseguy thatportugueseguy merged commit 3d97884 into master Aug 22, 2024
0 of 3 checks passed
@thatportugueseguy thatportugueseguy deleted the add-per-step-state branch August 22, 2024 16:01
Khady added a commit that referenced this pull request Aug 28, 2024
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.

2 participants