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

katta
I having some trouble figuring out if I have set myself too strict of standards for my production server. Currently I can handle 75% of r...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
achenet
Hello, I’m trying to build a basic Phoenix web-app, and I’d like to use Tailwind. However, when I launch mix phx.server, I get an error...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
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
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
mnkhod
So i have been using ash framework for a while and i love it. However currently the issue im having with ash framework is the error handl...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
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
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
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews