From 356edf0ade0d5d3dbfcc954a25f0f52a286dc2f2 Mon Sep 17 00:00:00 2001 From: Stuart Corbishley Date: Thu, 25 Apr 2024 08:45:58 +0200 Subject: [PATCH 1/3] trying to override the cpu count --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9d4b5d6d62..939ada9982 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,6 +47,8 @@ jobs: docker: - image: elixir:<< parameters.elixir_version >> - image: cimg/postgres:15.3 + environment: + ERL_FLAGS: +S 4:4 steps: - checkout From d2d37d015ac11e97767292b194d99157e574077d Mon Sep 17 00:00:00 2001 From: Stuart Corbishley Date: Thu, 25 Apr 2024 08:49:28 +0200 Subject: [PATCH 2/3] echo more info --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 939ada9982..20492e262d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,7 +57,11 @@ jobs: - run: name: "Save Elixir and Erlang version for PLT caching" - command: echo "$ELIXIR_VERSION $OTP_VERSION" > .elixir_otp_version + command: echo "$ELIXIR_VERSION $OTP_VERSION" | tee .elixir_otp_version + + - run: + name: "Introspect schedulers" + command: elixir -v - restore_cache: keys: From 8055b51a11531b38ec1188978cf84c9a0c01f53e Mon Sep 17 00:00:00 2001 From: Stuart Corbishley Date: Thu, 25 Apr 2024 09:03:29 +0200 Subject: [PATCH 3/3] Revert warnings as errors --- mix.exs | 2 +- test/test_helper.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index cfdae2f905..99ae6f1ec7 100644 --- a/mix.exs +++ b/mix.exs @@ -8,7 +8,7 @@ defmodule Lightning.MixProject do elixir: "~> 1.15", elixirc_paths: elixirc_paths(Mix.env()), elixirc_options: [ - warnings_as_errors: false + warnings_as_errors: true ], start_permanent: Mix.env() == :prod, aliases: aliases(), diff --git a/test/test_helper.exs b/test/test_helper.exs index dcf7f5817d..a9bff4852d 100644 --- a/test/test_helper.exs +++ b/test/test_helper.exs @@ -1,4 +1,4 @@ -Code.put_compiler_option(:warnings_as_errors, false) +Code.put_compiler_option(:warnings_as_errors, true) # Report which tests are synchronous # Rexbug.start("ExUnit.Server.add_sync_module/_") Mox.defmock(Lightning.Tesla.Mock, for: Tesla.Adapter)