elixir icon indicating copy to clipboard operation
elixir copied to clipboard

CI: Various improvements to ci.yml

Open eksperimental opened this issue 2 months ago • 8 comments

Related PR: https://github.com/elixir-lang/elixir/pull/14985

eksperimental avatar Dec 04 '25 18:12 eksperimental

Hi @eksperimental, I am not planning to go ahead with those changes for now.

  1. The erlc one will be removed soon anyway
  2. We still want to test deterministic to improve our coverage with the flag
  3. I think CI is a perfectly fine name

Thanks,

josevalim avatar Dec 04 '25 20:12 josevalim

I reopened the PR because we should merge the path changes. Is there a way to only run the docs one when only those files change? 🤔

josevalim avatar Dec 04 '25 20:12 josevalim

That was the original reasoning behing moving the doc building to its own action.

There's an action that can filter paths on a job/step level, its this one: https://github.com/dorny/paths-filter

eksperimental avatar Dec 04 '25 20:12 eksperimental

Yeah, I understand now it was the original rationale but we change the code more often than we change those pages, so optimizing for faster general changes is better. I guess we could run some git command that aborts the other runners, except the docs one, if the diff only lists those directories?

josevalim avatar Dec 04 '25 21:12 josevalim

Yes. detecting changes with git is the other option to detect changes, aborting other runners I will have to look into that.

eksperimental avatar Dec 04 '25 21:12 eksperimental

I tried to implement a solution using git diff but I was not really happy with it and I don't think it would cover all the cases and I felt I was reinventing the wheel. So I ended up implementing a solution with https://github.com/dorny/paths-filter I was a bit reluctant to add an external action, but this one is used by Sentry and Google Chrome. I can submit a new PR if you are interested.

eksperimental avatar Dec 05 '25 14:12 eksperimental

Since you did the work, please do send a PR! Worst case scenario it will work for documentation purposes!

josevalim avatar Dec 05 '25 14:12 josevalim

I have a working version that uses git diff, I will be sharing it tomorrow.

eksperimental avatar Dec 08 '25 06:12 eksperimental