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

refactor(scheduler): remove duplicate types #6785

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

rgrinberg
Copy link
Member

[Shutdown.Reason.t] and [Shutdown_reason.t] are the same modulo
constructor names.

Signed-off-by: Rudi Grinberg me@rgrinberg.com

ps-id: d75c7609-cd02-4fe2-9c30-d08cd71ea60f

Copy link
Collaborator

@snowleopard snowleopard left a comment

Choose a reason for hiding this comment

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

Nice! I was once pretty confused by this duplication.

Can we take this PR a bit further and clean up some naming where we say "signal" but the actual type is a 'Reason.t`? I left a few suggestions (but they are probably not exhaustive).

@rgrinberg rgrinberg force-pushed the ps/rr/refactor_scheduler___remove_duplicate_types branch 2 times, most recently from 81ff906 to b5a7a1e Compare December 28, 2022 17:59
@rgrinberg
Copy link
Member Author

Can we take this PR a bit further and clean up some naming where we say "signal" but the actual type is a 'Reason.t`? I left a few suggestions (but they are probably not exhaustive).

I think I fixed all the naming issues now.

[Shutdown.Reason.t] and [Shutdown_reason.t] are the same modulo
constructor names.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: d75c7609-cd02-4fe2-9c30-d08cd71ea60f
@rgrinberg rgrinberg force-pushed the ps/rr/refactor_scheduler___remove_duplicate_types branch from b5a7a1e to a12b97c Compare December 28, 2022 20:24
@rgrinberg rgrinberg merged commit 1b0fd61 into main Dec 28, 2022
@rgrinberg rgrinberg deleted the ps/rr/refactor_scheduler___remove_duplicate_types branch December 28, 2022 23:14
jchavarri added a commit to jchavarri/dune that referenced this pull request Dec 29, 2022
* main: (148 commits)
  refactor(rpc): remove mutable callback (ocaml#6786)
  refactor(stdune): make [Id.t] immediate (ocaml#6795)
  refactor(melange): share mode handling (ocaml#6799)
  refactor(scheduler): remove duplicate types (ocaml#6785)
  refactor: move cram stanza definition (ocaml#6800)
  fix: correctly validate argument to top-module (ocaml#6796)
  refactor: move generate_sites_module to own module (ocaml#6798)
  fix(melange): check rules (ocaml#6789)
  refactor(rpc): make [Call.to_dyn] public (ocaml#6797)
  refactor(rpc): invalid session errors (ocaml#6787)
  refactor(melange): remove js globs (ocaml#6782)
  doc: fix version indication for "dune ocaml top-module" (ocaml#6792)
  refactor: print shutdown exception (ocaml#6784)
  refactor(rpc): add [Call.to_dyn] (ocaml#6790)
  fix: do not impose no_sandboxing on ocamldep (ocaml#6749)
  refactor(melange): move stanza definition (ocaml#6775)
  fix: handle missing CLICOLOR_FORCE correctly (ocaml#6781)
  Revert --display tui (ocaml#6780)
  fix: render pending messages
  refactor(coq): inline coqc_rule
  ...
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.

None yet

2 participants