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

Remove ocamldoc's literate and todo generators #12615

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

shindere
Copy link
Contributor

(This is submitted in preparation for the merge of ocamldoc/Makefile into
the root Makefile, of which a provisional implementation can be
found
here.)

It is @Octachron's belief that the targets and recipes this PR proposes to
remove have not been used for the last decade or so. If they are
however considered useful, onemay want to work on integrating them
to the testsuite somehow, but since this will represent some work let's
first decide whether they are actually useful or not.

Also, if we follow the removal road, then the question of how far we should
go arises. Indeed, given that ocamldoc's generators are not installed, one
may wonder whether it's useful to build them and then, if not, whether they
shouldn't simply be deleted, too.

(For the moment I'll use a no-changes-entry-needed label but I can
definitely add a proper Changes entry if the PR is ocnsidered useful)

This commit removes the following no longer used targets and their
associated recipes from ocamldoc/Makefile: dot, test, test_stdlib,
test_stdlib_code, test_latex, test_latex_simple, test_man, test_texi
and autotest_stdlib.
Copy link
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

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

This looks fine to me. There is a special pleasure for PRs that only remove lines of code.

@gasche
Copy link
Member

gasche commented Sep 29, 2023

given that ocamldoc's generators are not installed, one
may wonder whether it's useful to build them and then, if not, whether they
shouldn't simply be deleted, too

I was not sure what you mean by "generators" (surely the ocamldoc backends are necessary to keep around). I looked. You mean the modules in generators/ in the source tree, which apparently are two alternative backends/plugins to generate a TODO list, around 500 lines of code in total. If they are not installed nor used in the manual build process (I don't think they are), then yes it would be fine to remove them.

@shindere
Copy link
Contributor Author

shindere commented Sep 29, 2023 via email

@shindere
Copy link
Contributor Author

shindere commented Sep 29, 2023 via email

@shindere
Copy link
Contributor Author

Just pushed one more commit removing the generators completely.

If that's fine with people I'll edit the PR's title and add a Changes entry.

@Octachron
Copy link
Member

The todo generator in ocamldoc/generators has some value as an example of ocamldoc generators, but it should be fine to remove it (with an infinite amount of time at hand, we could resurrect it as a part of the ocamldoc documentation).

@gasche
Copy link
Member

gasche commented Sep 29, 2023

The CI fails due to a known-flaky test, finaliser_handover.ml -- the well-numbered issue #12345.

If that's fine with people I'll edit the PR's title and add a Changes entry.

Yes, please.

@shindere shindere changed the title ocamldoc/Makefile: remove a few no lnger used targets and recipes Remove ocamldoc's literate and todo generators Sep 29, 2023
@shindere
Copy link
Contributor Author

PR title updated and Changes entry added

@shindere shindere merged commit f83fd4b into ocaml:trunk Sep 29, 2023
10 checks passed
@shindere shindere deleted the ocamldoc-cleanup branch September 29, 2023 12:46
shindere added a commit to shindere/ocaml that referenced this pull request Sep 29, 2023
This variable was used in ocamldoc/Makefile, by the test targets that got
removed in PR ocaml#12615.
shindere added a commit to shindere/ocaml that referenced this pull request Oct 19, 2023
This variable was used in ocamldoc/Makefile, by the test targets that got
removed in PR ocaml#12615.
shindere added a commit to shindere/ocaml that referenced this pull request Oct 19, 2023
This variable was used in ocamldoc/Makefile, by the test targets that got
removed in PR ocaml#12615.
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

3 participants