Skip to content

Commit

Permalink
Add support Elixir 1.18 (#731) (#732)
Browse files Browse the repository at this point in the history
* docs: add 1.18 to supported Erlang/OTP and Elixir versions

* fix: issue on reraise, according to the document "Reraise" in "try, catch, and rescue"

* ci: add Elixir version 1.18.0-rc.0
  • Loading branch information
zacky1972 authored Dec 19, 2024
1 parent 9e80a71 commit 9df7419
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/actions/matrix_check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include:
- otp-version: "27.2"
elixir-version: "1.17.3"
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
15 changes: 15 additions & 0 deletions .github/actions/matrix_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ include:
- otp-version: "27.2"
elixir-version: "1.17.3"
working-directory: benchmarks/onnx_to_axon_bench
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: utilities/node_activator
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: utilities/spawn_co_elixir
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: utilities/http_downloader
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: benchmarks/distributed_computing_bench
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: benchmarks/onnx_to_axon_bench
18 changes: 18 additions & 0 deletions .github/actions/matrix_for_self_hosted_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,21 @@ include:
- otp-version: "27.2"
elixir-version: "1.17.3"
working-directory: benchmarks/onnx_to_axon_bench
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: backends/pelemay_backend
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: utilities/node_activator
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: utilities/spawn_co_elixir
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: utilities/http_downloader
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: benchmarks/distributed_computing_bench
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
working-directory: benchmarks/onnx_to_axon_bench
4 changes: 4 additions & 0 deletions .github/actions/matrix_reduced_test_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ include:
elixir-version: "1.15.8"
- otp-version: "27.2"
elixir-version: "1.16.3"
- otp-version: "26.2.5.6"
elixir-version: "1.18.0-rc.0"
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
4 changes: 2 additions & 2 deletions .github/actions/matrix_reduced_test_2.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include:
- otp-version: "25.3.2.16"
elixir-version: "1.16.3"
elixir-version: "1.18.0-rc.0"
- otp-version: "25.3.2.16"
elixir-version: "1.17.3"
elixir-version: "1.16.3"
- otp-version: "26.2.5.6"
elixir-version: "1.17.3"
- otp-version: "27.2"
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/matrix_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ include:
elixir-version: "1.16.3"
- otp-version: "25.3.2.16"
elixir-version: "1.17.3"
- otp-version: "25.3.2.16"
elixir-version: "1.18.0-rc.0"
- otp-version: "26.2.5.6"
elixir-version: "1.15.8"
- otp-version: "26.2.5.6"
elixir-version: "1.16.3"
- otp-version: "26.2.5.6"
elixir-version: "1.17.3"
- otp-version: "26.2.5.6"
elixir-version: "1.18.0-rc.0"
- otp-version: "27.2"
elixir-version: "1.15.8"
- otp-version: "27.2"
elixir-version: "1.16.3"
- otp-version: "27.2"
elixir-version: "1.17.3"
- otp-version: "27.2"
elixir-version: "1.18.0-rc.0"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Each has their own README, which you can access above to learn more.
Supported Erlang/OTP and Elixir versions:

* OTP: 25, 26, 27
* Elixir: 1.15, 1.16, 1.17
* Elixir: 1.15, 1.16, 1.17, 1.18

## Supported Platforms

Expand Down
4 changes: 3 additions & 1 deletion backends/pelemay_backend/lib/pelemay_backend/defn.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ defmodule PelemayBackend.Defn do
{:error, reason} -> raise RuntimeError, message: List.to_string(reason)
end
rescue
e in ErlangError -> reraise RuntimeError, message: List.to_string(e.original)
e in ErlangError ->
Logger.error(Exception.format(:error, e, __STACKTRACE__))
reraise e, __STACKTRACE__
end

receive do
Expand Down

0 comments on commit 9df7419

Please sign in to comment.