travisf
About 8 months ago we updated a large project from Elixir 1.8 to 1.10.4 and from Phoenix 1.3.0 to 1.4.17.
Ever since then we get so many depreciation warnings in the test suite that it is actually difficult to read the tests. They are of all types:
.warning: the :headers option is deprecated, please use :skip_headers instead
(nimble_csv 0.7.0) lib/nimble_csv.ex:330: NimbleCSV.RFC4180.parse_stream/2
warning: passing float to Decimal.new/1 is deprecated as floats have inherent inaccuracy. Use Decimal.from_float/1 or Decimal.cast/1 instead
(decimal 1.9.0) lib/decimal.ex:1187: Decimal.new/1
(ecto 2.2.12) lib/ecto/type.ex:587: Ecto.Type.cast/2
(ex_machina 2.4.0) lib/ex_machina/ecto_strategy.ex:62: ExMachina.EctoStrategy.cast_value/3
Most of the warnings are related to Decimal.new/1 which I get and could be fixed by upgrading ex_machina and number but that leads to a whole other cascade of problems which I’m not equipped to handle right now.
Is there a way I can quite these logs for now?
I’ve tried updating the config/test.exs files with config :logger, level: :error and that dosen’t seem to do anything.
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #security










Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sanswork
The reason the config change doesn’t work is that those are compiler warnings not runtime warnings. As far as I know there is no way to disable the display of compile warnings.
axelson
If this is only in CI then you could run a prior step like
MIX_ENV=test mix deps.compile, then yourmix testoutput section will be much cleaner.travisf
Thanks for the responses, unfortunately running
MIX_ENV=test mix deps.compiledoes not clean up things when I test locally.After looking closely at the warnings it seems about 90% originate with ExMachina:
Which is odd to me, I am using ExMachina 2.7.0. Do I need to update Ecto as well?
travisf
Bumping
phoenix_ectofrom3.0to3.6.0seems to have fixed the issue there. I started down that route last week but I kept running into dependency issues, I must have just grabbed the perfect version or inadvertently fixed something else.vrod
Just for reference,
mix hex.outdatedis a helpful way to show dependencies that are out of date.eksperimental
mix test --trace --seed 0to run them one by one, in a non-random deterministic way. You can pick the issues out one by one.