Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove parallel jobs from actions to be able to update Nx #497

Open
javierbrea opened this issue May 20, 2024 · 0 comments
Open

Remove parallel jobs from actions to be able to update Nx #497

javierbrea opened this issue May 20, 2024 · 0 comments
Labels
ci-cd Related to ci-cd workflows dependencies Pull requests that update a dependency file
Milestone

Comments

@javierbrea
Copy link
Member

Currently, the jobs in github actions build workflow is split into parallel jobs by using a mechanism based on the "Nx" library. Unfortunately, changes in the "Nx" library broke this mechanism at now it is not possible to update the dependency without breaking the pipeline.

The method used to split the workflows is very similar to the one described here. Basically, it executes a Nx bash command under the hood and gets the output to be able to determine the affected packages and the corresponding tasks to generate a matrix of Github actions jobs dynamically. The problem seems to be related to latest versions of Nx are stopping the process somehow before ending to print all outputs to the stdout.

In order to avoid having to investigate too much about this problem, or fix it with another "hack" that may be broken again in the future, it would be desirable to simply create different jobs for each Node version to test, and, inside each one, run in series the needed tasks by using "Nx" affected commands, for example:

nx affected -t link
nx affected -t test

Or even to define a "build:ci" task on each package which should have a dependency with all tasks to be executed in that package to be considered a valid build, and simply run:

nx affected -t build:ci
@javierbrea javierbrea added this to the 5.0.0 milestone May 20, 2024
@javierbrea javierbrea added dependencies Pull requests that update a dependency file ci-cd Related to ci-cd workflows labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd Related to ci-cd workflows dependencies Pull requests that update a dependency file
Projects
Status: Todo
Development

No branches or pull requests

1 participant