8000 Fix CI failures and restore compatibility with OCaml 5.3 by dhil · Pull Request #1212 · links-lang/links · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix CI failures and restore compatibility with OCaml 5.3 #1212

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

Merged
merged 7 commits into from
Mar 26, 2025

Conversation

dhil
Copy link
Member
@dhil dhil commented Mar 26, 2025

This patch bundles #1199, #1204, and #1208 into one.

OCaml 5.3 compability

This patch makes it possible to compile Links with the recently released OCaml 5.3.0 compiler. In OCaml 5.3.0 the token effect has become a keyword, and thus cannot be used as the name of a binder anymore.

CI workflow changes

Github is deprecating the CI image ubuntu-20.04:

The Ubuntu 20.04 runner image will be fully unsupported by April 1, 2025. To raise awareness of the upcoming removal, we will temporarily fail jobs using Ubuntu 20.04. Builds that are scheduled to run during the brownout periods will fail. The brownouts are scheduled for the following dates and times:

March 4 14:00 UTC – 22:00 UTC
March 11 13:00 UTC – 21:00 UTC
March 18 13:00 UTC – 21:00 UTC
March 25 13:00 UTC – 21:00 UTC

What you need to do

Jobs using the ubuntu-20.04 YAML workflow label should be updated to ubuntu-22.04, ubuntu-24.04 or ubuntu-latest. You can always get up-to-date information on our tools by reading about the software in the runner images repository. Please contact GitHub Support if you run into any problems or need help.

This patch updates the CI to use the ubuntu-latest image.

In addition, this patch changes the OCaml compiler used for testing to 5.3.0 and upgrades the version of ocaml/setup-ocaml to version 3, which contains several fixes for the OCaml 5.3 toolchain. I have also disabled ocamlformat as the version we were using is incompatible with OCaml 5.3 and adopting a new version required reformatting the lens files.

dhil added 7 commits March 26, 2025 16:09
This small patch updates the `links.opam` file as generated by the
specification in `dune-project`.
This patch makes it possible to compile Links with the recently
released OCaml 5.3.0 compiler. In OCaml 5.3.0 the token `effect` has
become a keyword, and thus cannot be used as the name of a binder
anymore.

We ought to make a new Links release on OPAM imminently.
Github is deprecating the CI image `ubuntu-20.04`:

> The Ubuntu 20.04 runner image will be fully unsupported by April 1, 2025. To raise awareness of the upcoming removal, we will temporarily fail jobs using Ubuntu 20.04. Builds that are scheduled to run during the brownout periods will fail. The brownouts are scheduled for the following dates and times:
>
>    March 4 14:00 UTC – 22:00 UTC
>    March 11 13:00 UTC – 21:00 UTC
>    March 18 13:00 UTC – 21:00 UTC
>    March 25 13:00 UTC – 21:00 UTC
>
> What you need to do
>
> Jobs using the ubuntu-20.04 YAML workflow label should be updated to ubuntu-22.04, ubuntu-24.04 or ubuntu-latest. You can always get up-to-date information on our tools by reading about the software in the runner images repository. Please contact GitHub Support if you run into any problems or need help. 

This patch updates the CI to use the `ubuntu-latest` image. 

In addition, this patch changes the OCaml compiler used for testing to 5.3.0 and upgrades the version of `ocaml/setup-ocaml` to version 3, which contains several fixes for the OCaml 5.3 toolchain.
@dhil dhil merged commit af82f6b into links-lang:master Mar 26, 2025
6 checks passed
@dhil dhil deleted the fixes branch March 26, 2025 22:30
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.

1 participant
0