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

Add GH Actions CI and fix tests on Erlang 27 #237

Merged
merged 1 commit into from
Jun 8, 2024
Merged

Add GH Actions CI and fix tests on Erlang 27 #237

merged 1 commit into from
Jun 8, 2024

Conversation

nickva
Copy link
Collaborator

@nickva nickva commented Jun 7, 2024

Add CI for Windows, MacOS and Ubuntu Linux. For Linux, test both rebar2 and rebar3.

Apparently due to string:split/2 in rebar.config.script jiffy wasn't compatible with Erlang <20 for quite a while now, and we didn't see any complaints, so make Erlang 20 the minimum supported version. Old jiffy releases are still available for anyone who needs them. In addition, only Erlang OTP docker images 20+ work with the latest (v4) checkout CI action, so that's another reason to make that the new cutoff.

On Erlang 27 needed to make a few test updates:

  • The referenced binary length size computation changed so make sure to make the binaries large enough to avoid triggering the inconsistencies between <27 and 27+ version and needing to do an ifdef of some sort.

  • In Erlang 27 -0.0 =/= 0.0 so updated a few tests expecting exact comparison, to use numeric equality =. Jiffy doesn't round-trip -0.0s anyway, so it's only a test-side discrepancy.

@nickva nickva force-pushed the add-some-ci branch 24 times, most recently from 38d92b5 to 0ebc7c2 Compare June 7, 2024 23:37
Add CI for Windows, MacOS and Ubuntu Linux. For Linux, test both rebar2 and
rebar3.

Apparently due to `string:split/2` in `rebar.config.script` jiffy wasn't
compatible with Erlang <20 for quite a now, and we didn't see any complaints,
so make Erlang 20 the minimum supported version. Old jiffy releases are still
available for anyone who needs them. In addition, only Erlang OTP docker images
20+ work with the latest (v4) checkout CI action, so that's another reason to
make that the new cutoff.

On Erlang 27 needed to make a few test updates:

 * The referenced binary length size computation changed so make sure to make
   the binaries large enough to avoid triggering the inconsistencies between
   <27 and 27+ version and needing to do an ifdef of some sort.

 * In Erlang 27 -0.0 =/= 0.0 so updated a few tests expecting exact comparison,
   to use numeric equality `=`. Jiffy doesn't round-trip -0.0s anyway, so it's
   only a test-side discrepancy.
@nickva nickva changed the title Add Github Actions CI Add GH Actions CI and fix tests on Erlang 27 Jun 8, 2024
@davisp davisp merged commit 2de9792 into master Jun 8, 2024
12 checks passed
@davisp davisp deleted the add-some-ci branch June 8, 2024 00:20
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.

2 participants