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

chore: bump elixir to 1.16.3 and Erlang OTP to 26.2.5.1 #9256

Merged
merged 16 commits into from
Jul 1, 2024

Conversation

k1rill-fedoseev
Copy link
Member

@k1rill-fedoseev k1rill-fedoseev commented Jan 25, 2024

Changelog

Checklist for your Pull Request (PR)

@@ -1,4 +1,4 @@
defmodule Explorer.Token.InstanceMetadataRetrieverTest do
defmodule Indexer.Fetcher.TokenInstance.MetadataRetrieverTest do
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the test to get rid of Explorer -> Indexer dependency

@@ -243,7 +243,8 @@ defmodule Indexer.BufferedTaskTest do
flush_timer: nil,
task_supervisor: BufferedTaskSup,
max_batch_size: 1,
max_concurrency: 1
max_concurrency: 1,
poll: false
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems like the test didn't properly work in elixir 1.14, didn't manage to debug the reason why.
Without poll: false, BufferedTask will attempt to call init/2 when given an empty queue.

@@ -143,7 +143,7 @@ defmodule Explorer.ExchangeRates.Source.CoinGeckoTest do
Application.put_env(:explorer, CoinGecko, base_url: "http://localhost:#{bypass.port}")

on_exit(fn ->
Application.put_env(:explorer, :coin, "POA")
Application.put_env(:explorer, :coin, "ETH")
Copy link
Member Author

Choose a reason for hiding this comment

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

Setting env to a non-default value breaks test sometimes in a different file.

@@ -118,15 +117,15 @@ defmodule Explorer.Account.Notifier.Email do
end

defp address_url(address_hash) do
Helpers.address_url(uri(), :show, address_hash)
uri() |> URI.append_path("/address/#{address_hash}") |> to_string()
Copy link
Member Author

Choose a reason for hiding this comment

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

Elixir doesn't like cyclic dependencies now, so this is probably the easiest way to remove Explorer -> BlockScoutWeb dependency

# OS process metrics for Prometheus
{:prometheus_process_collector, "~> 1.3"},
# OS process metrics for Prometheus, custom ref to include https://github.com/deadtrickster/prometheus_process_collector/pull/30
{:prometheus_process_collector,
Copy link
Member Author

Choose a reason for hiding this comment

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

There is a new upstream release for prometheus_ex, btw - https://github.com/deadtrickster/prometheus.ex/releases/tag/v3.1.0
We might wanna update in a separate PR.

@@ -18,6 +18,8 @@ defmodule Explorer.MarketTest do
end

test "fetch_recent_history/1" do
ConCache.delete(:market_history, :last_update)
Copy link
Member Author

Choose a reason for hiding this comment

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

Another test cached an empty value causing this test to fail.

Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

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

@k1rill-fedoseev could you please rebase to master branch? There are merging conflicts currently: I recently moved OTP_VERSION and ELIXIR_VERSION to github envs and re-used them in Github actions workflows.

@k1rill-fedoseev k1rill-fedoseev changed the title Bump elixir to 1.16.0 and Erlang OTP to 26.2.1 Bump elixir to 1.16.1 and Erlang OTP to 26.2.1 Feb 7, 2024
@k1rill-fedoseev k1rill-fedoseev changed the title Bump elixir to 1.16.1 and Erlang OTP to 26.2.1 Bump elixir to 1.16.3 and Erlang OTP to 26.2.5 May 29, 2024
@k1rill-fedoseev k1rill-fedoseev changed the title Bump elixir to 1.16.3 and Erlang OTP to 26.2.5 chore: bump elixir to 1.16.3 and Erlang OTP to 26.2.5 May 29, 2024
@vbaranov vbaranov changed the title chore: bump elixir to 1.16.3 and Erlang OTP to 26.2.5 chore: bump elixir to 1.16.3 and Erlang OTP to 26.2.5.1 Jul 1, 2024
@vbaranov vbaranov merged commit 7fe5bb9 into master Jul 1, 2024
16 checks passed
@vbaranov vbaranov deleted the kf-bump-elixir-1.16.0 branch July 1, 2024 18:04
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.

3 participants