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

Update Dependencies and test on Elixir 1.14 and 1.15 #738

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:

strategy:
matrix:
elixir-otp: [{otp: 24.x, elixir: 1.12.x}, {otp: 25.x, elixir: 1.13.x}]
elixir-otp:
- otp: 25.x
elixir: 1.14.x
- otp: 26.x
elixir: 1.15.x
Copy link
Member

Choose a reason for hiding this comment

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

why did you remove 1.12 and 1.13?

Copy link
Author

Choose a reason for hiding this comment

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

Because they are not backwards compatible with the changed dependencies.

Copy link
Author

Choose a reason for hiding this comment

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

This will likely require a major version bump to signify this change.

Copy link
Member

Choose a reason for hiding this comment

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

I don't want to drop support for older versions of Elixir just for a dev dependency that I have never even used since taking over the project.

you can probably add --only test to mix deps.get in CI to avoid having to update benchee.

Copy link
Author

Choose a reason for hiding this comment

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

I am down to drop benchee as a dependency altogether. However there are other changes around ExUnit.Server.modules_loaded() that are not backwards compatible.

Copy link
Member

Choose a reason for hiding this comment

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

that is a private elixir API, and is in a unit test.

I would just add a conditional that checks if the function is exported and call the one that is

function_exported?(ExUnit.Server, :modules_loaded, 0), etc

fail-fast: false

env:
Expand Down Expand Up @@ -46,7 +50,11 @@ jobs:

strategy:
matrix:
elixir-otp: [{otp: 24.x, elixir: 1.12.x}, {otp: 25.x, elixir: 1.13.x}]
elixir-otp:
- otp: 25.x
elixir: 1.14.x
- otp: 26.x
elixir: 1.15.x
fail-fast: false

steps:
Expand Down Expand Up @@ -92,7 +100,11 @@ jobs:

strategy:
matrix:
elixir-otp: [{otp: 24.x, elixir: 1.12.x}, {otp: 25.x, elixir: 1.13.x}]
elixir-otp:
- otp: 25.x
elixir: 1.14.x
- otp: 26.x
elixir: 1.15.x
fail-fast: false

env:
Expand Down Expand Up @@ -128,7 +140,11 @@ jobs:

strategy:
matrix:
elixir-otp: [{otp: 24.x, elixir: 1.12.x}, {otp: 25.x, elixir: 1.13.x}]
elixir-otp:
- otp: 25.x
elixir: 1.14.x
- otp: 26.x
elixir: 1.15.x
fail-fast: false

env:
Expand Down Expand Up @@ -179,7 +195,11 @@ jobs:

strategy:
matrix:
elixir-otp: [{otp: 24.x, elixir: 1.13.x}]
elixir-otp:
- otp: 25.x
elixir: 1.14.x
- otp: 26.x
elixir: 1.15.x
fail-fast: false

steps:
Expand Down
4 changes: 2 additions & 2 deletions integration_test/cases/feature/automatic_screenshot_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Wallaby.Integration.Feature.AutomaticScreenshotTest do
end
end

ExUnit.Server.modules_loaded()
ExUnit.Server.modules_loaded(true)
configure_and_reload_on_exit(colors: [enabled: false])

output =
Expand Down Expand Up @@ -52,7 +52,7 @@ defmodule Wallaby.Integration.Feature.AutomaticScreenshotTest do
end
end

ExUnit.Server.modules_loaded()
ExUnit.Server.modules_loaded(true)
configure_and_reload_on_exit(colors: [enabled: false])

output =
Expand Down