Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

GitHub Actions improvements#245

Merged
scohen merged 3 commits into
mainfrom
improve-actions
Jun 30, 2023
Merged

GitHub Actions improvements#245
scohen merged 3 commits into
mainfrom
improve-actions

Conversation

@scohen

@scohen scohen commented Jun 29, 2023

Copy link
Copy Markdown
Collaborator

Our github actions were taking a while. This PR does the following:

  1. Splits up static analysis, dialyzer checks and tests into three jobs that all run in parallel.
  2. Adds a matrix to the test task so we can test in different versions of elixir and erlang.

The result is that tests used to take around 7 minutes to run, and now they run in 3. More importantly, by splitting things up into three jobs, we get more errors all at once. You see the static analysis results in 20 seconds, and dialyzer in about 40 seconds. You also get to see failures for all three jobs separately. Prior, you would need to have successful static analysis and dialyzer before your tests would even run, which meant you'd often have to go back to CI multiple times before a successful run.

@scohen scohen requested a review from scottming June 29, 2023 00:44
@scohen scohen force-pushed the improve-actions branch 10 times, most recently from 7e7318b to d79b0b8 Compare June 29, 2023 20:40
The old workflow was serial, and was taking way too long after the
changes to the product structure. This is due to the dialyzer plt having
to be modified by all the different usages of it. Having each subproject
and the umbrella use different PLT files fixed that problem.

I also parallelized the static analysis, dialyzer and tests so they run
more quickly.
@scohen scohen force-pushed the improve-actions branch from 410c2c6 to 275af82 Compare June 29, 2023 21:33
scohen added 2 commits June 29, 2023 14:51
The plugins diagnostic result convertible was being defined in a project
that did not have access to the plugins repo. Moving it to server fixes
the dependency issues.
@scohen scohen force-pushed the improve-actions branch from c2d57b9 to b80537f Compare June 29, 2023 21:51
@scohen scohen requested a review from Blond11516 June 29, 2023 22:46
@scohen scohen changed the title Trying to improve our actions GitHub Actions improvements Jun 29, 2023
Comment thread .github/workflows/elixir.yml

@scottming scottming left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look great to me, but I do not have much experience in the CI area, so maybe @Blond11516 can take a look.

@scohen scohen merged commit 11ea670 into main Jun 30, 2023
@scohen scohen deleted the improve-actions branch June 30, 2023 01:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants