Skip to content

Test OTP 28 and 29 in CI and fix Dialyzer opaque warning - #6

Closed
robertoaloi wants to merge 1 commit into
mainfrom
export-D122547164
Closed

robertoaloi wants to merge 1 commit into
mainfrom
export-D122547164

Conversation

@robertoaloi

Copy link
Copy Markdown
Contributor

Summary:
The open-source assert CI only tests OTP 27, although the library supports OTP 27 and later. Dialyzer from OTP 28 onwards (whose opaque type checking was reworked by EEP-69) reports an opaqueness warning in wa_assert_parse_trans:get_line/1 that OTP 27 does not, so the green CI hides a warning users on OTP 28/29 see.

CI now runs on OTP 27, 28 and 29 on both Linux and macOS, with fail-fast disabled so one failing version does not cancel the others, and a per-OTP Dialyzer PLT cache.

get_line/1 no longer guards with is_integer/1 on the opaque erl_anno:anno(), relying on erl_anno:is_anno/1 and erl_anno:line/1, which already handle plain integer lines, so behaviour is unchanged.

Differential Revision: D122547164

Summary:
The open-source `assert` CI only tests OTP 27, although the library supports OTP 27 and later. Dialyzer from OTP 28 onwards (whose opaque type checking was reworked by EEP-69) reports an opaqueness warning in `wa_assert_parse_trans:get_line/1` that OTP 27 does not, so the green CI hides a warning users on OTP 28/29 see.

CI now runs on OTP 27, 28 and 29 on both Linux and macOS, with `fail-fast` disabled so one failing version does not cancel the others, and a per-OTP Dialyzer PLT cache.

`get_line/1` no longer guards with `is_integer/1` on the opaque `erl_anno:anno()`, relying on `erl_anno:is_anno/1` and `erl_anno:line/1`, which already handle plain integer lines, so behaviour is unchanged.

Differential Revision: D122547164
@meta-cla meta-cla Bot added the cla signed label Sep 30, 2026
@meta-codesync

meta-codesync Bot commented Sep 30, 2026

Copy link
Copy Markdown

@robertoaloi has exported this pull request. If you are a Meta employee, you can view the originating Diff in D122547164.

@meta-codesync

meta-codesync Bot commented Sep 30, 2026

Copy link
Copy Markdown

This pull request has been merged in 95e1c60.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant