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

[new release] ppxlib.0.33.0 #26251

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

NathanReb
Copy link
Contributor

@NathanReb NathanReb commented Jul 17, 2024

Release of ppxlib.0.33.0.

Changes

@NathanReb
Copy link
Contributor Author

Thanks @mbarbin for finding out about the malformed opam file. I kind of created the PR and left it there because the CI takes a while to run and didn't check that it actually started running.

@NathanReb
Copy link
Contributor Author

I went through the 5.2 revdeps failures and couldn't find anything that seemed ppxlib related. I'll wait for the 4.14 revdeps failures before undrafting anyway, just in case some packages aren't compatible with 5.2 yet.

CC @mseri or any other opam-repo maintainers, do you spot anything unusual in the revdeps failures here?

@NathanReb
Copy link
Contributor Author

It seems there's quite a few revdeps build that weren't over when I reviewed the first time, I'll take some time to look at those and the non overlapping 4.14 ones.

@mseri
Copy link
Member

mseri commented Jul 22, 2024

I don't see regressions, but most jobs are failing with solver timeouts, so who knows... :(

I have already opened an issue on the ocaml infrastructure repository about the timeouts, they are not limited to this PR. So we should not consider this a blocker for this PR.

@NathanReb
Copy link
Contributor Author

I think I went through most, if not all meaningful build failures on 5.2 and couldn't find errors related to this release so I will proceed with undrafting.

I have a feeling that the number of false positives on opam-ci is growing with each release and it's becoming increasingly hard to review the revdeps failures. Are you aware of any plan to improve it? I'd be happy to help with this as it's reaching a critical point for ppxlib releases.

@NathanReb
Copy link
Contributor Author

Ah, just missed your message, thanks for your help on this!

@mseri
Copy link
Member

mseri commented Jul 22, 2024

Here is the issue: ocaml/infrastructure#147
Indeed, the timeouts are growing but the CI team is looking into it

- Fix a bug where `Code_path.main_module_name` would not properly remove
  extensions from the filename and therefore return an invalid module name.
  (ocaml-ppx/ppxlib#512, @NathanReb)

- Add `-unused-type-warnings` flag to the driver to allow users to disable
  only the generation of warning 34 silencing structure items when using
  `[@@deriving ...]` on type declarations. (ocaml-ppx/ppxlib#511, @mbarbin, @NathanReb)

- Make `-unused-code-warnings` flag to the driver also controls the generation
  of warning 34 silencing structure items when using `[@@deriving ...]` on type
  declarations. (ocaml-ppx/ppxlib#510, @mbarbin, @NathanReb)

- Driver: Add `-unused-code-warnings=force` command-line flag argument. (ocaml-ppx/ppxlib#490, @mbarbin)

- new functions `Ast_builder.{e,p}list_tail` that take an extra tail
  expression/pattern argument parameter compared to `Ast_builder.{e,p}list`, so
  they can build ASTs like `a :: b :: c` instead of only `[ a; b ]`.
  (ocaml-ppx/ppxlib#498, ocaml-ppx/ppxlib#502, @v-gb, @NathanReb)

- Fix `Longident.parse` so it also handles indexing operators such as
  `.!()`, `.%(;..)<-`, or `Vec.(.%())` (ocaml-ppx/ppxlib#494, @Octachron)

- Add a `special_function'` variant which directly takes a `Longident.t`
  argument to avoid the issue that `Longident.t` cover distinct syntaxic classes
  which cannot be easily parsed by a common parser (ocaml-ppx/ppxlib#496, @Octachron).

- Keep location ranges consistent when migrating `Pexp_function` nodes from 5.2+
  to older versions (ocaml-ppx/ppxlib#504, @jchavarri)

- Fix `-locations-check` behaviour so it is no longer required to pass `-check`
  as well to enable location checks. (ocaml-ppx/ppxlib#506, @NathanReb)

Signed-off-by: Nathan Rebours <[email protected]>
@NathanReb NathanReb marked this pull request as ready for review July 22, 2024 10:21
@NathanReb
Copy link
Contributor Author

This should be good to go, let me know if anything's blocking!

@shonfeder
Copy link
Collaborator

Hi, @NathanReb 👋 :)

Do you think this test failure on ppx_rapper may be related to this update?

#=== ERROR while compiling ppx_rapper_async.3.0.0 =============================#
# context              2.3.0~alpha~dev | linux/x86_64 | ocaml-base-compiler.4.14.2 | file:///home/opam/opam-repository
# path                 ~/.opam/4.14/.opam-switch/build/ppx_rapper_async.3.0.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p ppx_rapper_async -j 255 @install @runtest
# exit-code            1
# env-file             ~/.opam/log/ppx_rapper_async-7-47e779.env
# output-file          ~/.opam/log/ppx_rapper_async-7-47e779.out
### output ###
# File "test/ppx/test.expected.ml", line 1, characters 0-0:
# /usr/bin/git --no-pager diff --no-index --color=always -u _build/default/test/ppx/test.expected.ml _build/default/test/ppx/test.actual.ml
# diff --git a/_build/default/test/ppx/test.expected.ml b/_build/default/test/ppx/test.actual.ml
# index b4f5634..42d05ce 100644
# --- a/_build/default/test/ppx/test.expected.ml
# +++ b/_build/default/test/ppx/test.actual.ml
# @@ -220,7 +220,8 @@ let list =
#                       [@ocaml.warning "-33"]) item pack) Dynparam.empty elems in
#            let query =
#              (let open Caqti_request in find_opt) ~oneshot:true
# -              (let open Caqti_type in tup2 bool packed_list_type)
# +              ((let open Caqti_type in tup2 bool packed_list_type)
# +              [@ocaml.warning "-33"])
#                ((let open Caqti_type in
#                    tup2 int (tup2 string (tup2 bool (option string))))
#                [@ocaml.warning "-33"]) sql in
# @@ -257,8 +258,8 @@ let collect_list =
#                       [@ocaml.warning "-33"]) item pack) Dynparam.empty elems in
#            let query =
#              (let open Caqti_request in collect) ~oneshot:true
# -              packed_list_type ((let open Caqti_type in string)
# -              [@ocaml.warning "-33"]) sql in
# +              ((packed_list_type)[@ocaml.warning "-33"])
# +              ((let open Caqti_type in string)[@ocaml.warning "-33"]) sql in
#            Db.collect_list query versions in
#    wrapped
#  module Suit : Ppx_rapper_runtime.CUSTOM =

@mseri
Copy link
Member

mseri commented Jul 24, 2024 via email

@mseri mseri merged commit f57c065 into ocaml:master Jul 25, 2024
2 of 3 checks passed
@NathanReb NathanReb deleted the release-ppxlib-0.33.0 branch July 25, 2024 09:50
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.

3 participants