Hermanverschooten

Hermanverschooten

Hi all,

Noticed something strange today.

Working with Erlang 28.5, Elixir 1.19.5-otp-28.

I was working with a new project where I have just created my test workflow, I always follow the same flow, a build step that compiles and caches, then a test, format and security step that uses the cached build. As this project uses Ash which takes a long time to compile and 1 incredible large liveview I suddenly noticed that the mix ecto.load command took 28 seconds to run. I check the log and it said compiling 224 files and that that liveview took more than 10s.

Strange. I looked into the caching thinking maybe something off there, but it all looks good and the format and security jobs do not exhibit the same recompiling.

Further investigation (Claude) let me to believe that the file times are newer than the restore _build folder triggering `mix` to recompile.

So I changed 'mix ecto.load to mix ecto.load –no-compile and it went down to 3s, nice.

But alas the next statement mix test –no-compile –trace –exclude not_implemented –max-failures 1 ignores the –no-compile flag and compiles the app.

Am I missing something here?

It is easy to test on your local machine.

mix test --no-compile
Generated dashboard app
Running ExUnit with seed: 602546, max_cases: 28

.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 13.1 seconds (8.3s async, 4.8s sync)
849 tests, 0 failures

mix test --no-compile
Running ExUnit with seed: 22162, max_cases: 28

.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 12.9 seconds (8.3s async, 4.6s sync)
849 tests, 0 failures

touch mix.exs

mix test --no-compile
Generated dashboard app
Running ExUnit with seed: 463358, max_cases: 28

.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 12.4 seconds (8.4s async, 4.0s sync)
849 tests, 0 failures

The first time you can see it compiled the Generated dashboard app, the second time it didn’t, after touching mix.exs, it compiled again.

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
RSP87
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
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
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
velrest
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
samoloth
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
FlyingNoodle
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 Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews