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

fix: remove the --react-to-insignificant-changes option #10083

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 0 additions & 12 deletions bin/common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ module Builder = struct
; separate_error_messages : bool
; stop_on_first_error : bool
; require_dune_project_file : bool
; insignificant_changes : [ `React | `Ignore ]
; watch_exclusions : string list
; build_dir : string
; store_digest_preimage : bool
Expand Down Expand Up @@ -963,15 +962,6 @@ module Builder = struct
of the build in a deterministic order. $(b,twice) reports each error \
twice: once as soon as the error is discovered and then again at the end \
of the build, in a deterministic order.")
and+ react_to_insignificant_changes =
Arg.(
value
& flag
& info
[ "react-to-insignificant-changes" ]
~doc:
"React to insignificant file system changes; this is only useful for \
benchmarking dune.")
and+ separate_error_messages =
Arg.(
value
Expand Down Expand Up @@ -1033,7 +1023,6 @@ module Builder = struct
; separate_error_messages
; stop_on_first_error
; require_dune_project_file
; insignificant_changes = (if react_to_insignificant_changes then `React else `Ignore)
; watch_exclusions
; build_dir = Option.value ~default:default_build_dir build_dir
; store_digest_preimage
Expand Down Expand Up @@ -1083,7 +1072,6 @@ let signal_watcher t =

let watch_exclusions t = t.builder.watch_exclusions
let stats t = t.stats
let insignificant_changes t = t.builder.insignificant_changes

(* To avoid needless recompilations under Windows, where the case of
[Sys.getcwd] can vary between different invocations of [dune], normalize to
Expand Down
1 change: 0 additions & 1 deletion bin/common.mli
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ val dump_memo_graph_with_timing : t -> bool
val watch : t -> Dune_rpc_impl.Watch_mode_config.t
val file_watcher : t -> Dune_engine.Scheduler.Run.file_watcher
val prefix_target : t -> string -> string
val insignificant_changes : t -> [ `React | `Ignore ]

module Action_runner : sig
type t =
Expand Down
6 changes: 2 additions & 4 deletions bin/import.ml
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,12 @@ module Scheduler = struct
let go ~(common : Common.t) ~config:dune_config f =
let stats = Common.stats common in
let config =
let insignificant_changes = Common.insignificant_changes common in
let signal_watcher = Common.signal_watcher common in
let watch_exclusions = Common.watch_exclusions common in
Dune_config.for_scheduler
dune_config
stats
~insignificant_changes
~insignificant_changes:`Ignore
~signal_watcher
~watch_exclusions
in
Expand All @@ -217,12 +216,11 @@ module Scheduler = struct
let stats = Common.stats common in
let config =
let signal_watcher = Common.signal_watcher common in
let insignificant_changes = Common.insignificant_changes common in
let watch_exclusions = Common.watch_exclusions common in
Dune_config.for_scheduler
dune_config
stats
~insignificant_changes
~insignificant_changes:`Ignore
~signal_watcher
~watch_exclusions
in
Expand Down
1 change: 1 addition & 0 deletions doc/changes/10083.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove the `--react-to-insignifcant-changes` option. (#10083, @rgrinberg)