-
Notifications
You must be signed in to change notification settings - Fork 413
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
refactor: switch to new API for recording deps #9552
refactor: switch to new API for recording deps #9552
Conversation
Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: d4bf94f5-7671-4781-ab35-dcbc204bf72b -->
2bf2eba
to
60b2a3c
Compare
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.
Looks good though isn't this all that's left in the original PR? We might as well merge it.
There's one last PR i'm working on which makes |
Cool, almost done :) |
let contents p = | ||
of_thunk | ||
{ f = | ||
(fun _mode -> | ||
let open Memo.O in | ||
let+ x = Build_system.read_file p in | ||
x, Dep.Map.empty) | ||
} | ||
let* () = Dep.file p |> Dep.Set.singleton |> Build_system.record_deps in | ||
of_memo (Build_system.read_file p) |
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.
@rgrinberg This wasn't happening before and Coq rules were relying on it. Removing the recording of the dep fixes #10149.
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.
Huh, indeed! Good catch.
PR ocaml#9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue ocaml#10149 to appear. This PR fixes ocaml#10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com>
PR ocaml#9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue ocaml#10149 to appear. This PR fixes ocaml#10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com>
PR ocaml#9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue ocaml#10149 to appear. This PR fixes ocaml#10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com>
PR ocaml#9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue ocaml#10149 to appear. This PR fixes ocaml#10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com>
PR ocaml#9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue ocaml#10149 to appear. This PR fixes ocaml#10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com>
PR ocaml#9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue ocaml#10149 to appear. This PR fixes ocaml#10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com>
* Add reproduction test case for #10149. Signed-off-by: Rodolphe Lepigre <rodolphe@bedrocksystems.com> Signed-off-by: Ali Caglayan <alizter@gmail.com> * stop recording deps in Action_builder.contents PR #9552 changed the semantics of Action_builder.contents so that it records a dependency. The Coq rules were relying on the previous behaviour of not recording a dependency in order to generate a build plan. This caused issue #10149 to appear. This PR fixes #10149 by removing the dependency being recorded in Action_builder.contents matching the previous semantics. Signed-off-by: Ali Caglayan <alizter@gmail.com> --------- Signed-off-by: Rodolphe Lepigre <rodolphe@bedrocksystems.com> Signed-off-by: Ali Caglayan <alizter@gmail.com> Co-authored-by: Rodolphe Lepigre <rodolphe@bedrocksystems.com> Co-authored-by: Ali Caglayan <alizter@gmail.com>
Continuation of the splitting of #9132