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 elixir 1.15 to CI #851

Merged
merged 8 commits into from
Jun 12, 2023
Merged

Add elixir 1.15 to CI #851

merged 8 commits into from
Jun 12, 2023

Conversation

jeffkreeftmeijer
Copy link
Member

@jeffkreeftmeijer jeffkreeftmeijer commented Jun 7, 2023

Add Elixir 1.15.0-rc.1 to CI, and fix a compilation issue introduced in Elixir 1.15 by using rebar instead of mix to install the ssl_verify_fun dependency for now.

[skip changeset]

@backlog-helper
Copy link

backlog-helper bot commented Jun 7, 2023

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

@jeffkreeftmeijer jeffkreeftmeijer force-pushed the add-elixir-1.15-to-ci branch 2 times, most recently from fd90167 to 3bdaf25 Compare June 7, 2023 14:43
Copy link
Member

@tombruijn tombruijn left a comment

Choose a reason for hiding this comment

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

You probably need to rebase to remove some duplicate commits that are already merged on main.

@jeffkreeftmeijer jeffkreeftmeijer force-pushed the add-elixir-1.15-to-ci branch 3 times, most recently from bb30aa2 to ef0f631 Compare June 8, 2023 11:41
jeffkreeftmeijer and others added 2 commits June 8, 2023 13:42
The ssl_verify_fun library doesn't depend on ssl, which is required
since Elixir 1.15. A patch[1] has been merged, but it hasn't been
released yet.

Until a new version of ssl_verify_fun is released, use rebar as the
dependenvy manager for ssl_verify_fun.

[1]: deadtrickster/ssl_verify_fun.erl#27
Add 1.15.0 to .semaphore/versions.rb
@jeffkreeftmeijer jeffkreeftmeijer force-pushed the add-elixir-1.15-to-ci branch 3 times, most recently from 4a9f9b5 to 1eeda8e Compare June 9, 2023 06:25
jeffkreeftmeijer and others added 4 commits June 9, 2023 08:38
To resolve the compilation error in file
test/mix/tasks/appsignal_diagnose_test.exs on Elixir 1.15, explicitly
require Appsignal.Agent before referring to it.
Updating to Elixir 1.15 produces the following errors when running
dialyzer:

    Error loading decimal, dependency list may be incomplete.
     {~c"no such file or directory", ~c"decimal.app"}
    Error loading decimal, dependency list may be incomplete.
     {~c"no such file or directory", ~c"decimal.app"}
Logger.warn/1 is deprecated in favor of Logger.warning/1. This patch
replaces all occurrences of the former with the latter.
Since Logger.warn is now deprecated, add logging functions to
AppSignal.Utils that call Logger.warn on Elixir versions before 1.11,
and Logger.warning for newer versions.

This patch can be removed when dropping support for Elixir 1.10.
@jeffkreeftmeijer jeffkreeftmeijer force-pushed the add-elixir-1.15-to-ci branch from 9727d5d to 5686702 Compare June 9, 2023 06:38
The new dialyzer warnings show an issue in the return types of the Nif's
diagnose function that can never be reached. Ignore these errors for now
in order to fix the build and ship the changes needed to run CI on
Elixir 1.15.
@jeffkreeftmeijer
Copy link
Member Author

This should be good to go, with some more changes and some ignored dialyzer warnings. I've opened #853 to make sure we get to those later.

Copy link
Contributor

@unflxw unflxw left a comment

Choose a reason for hiding this comment

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

Looks good. Thinking about moving the methods that are delegated to Logger to something like Appsignal.Utils.Logger, just because Appsignal.Utils is a bit of a potpourri. But it's not important.

@backlog-helper
Copy link


This is a message from the daily scheduled checks.

New issue guide | Backlog management | Rules | Feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants