Skip to content

[bug] CI parallism needlessly running duplicate task #2147

@dokterbob

Description

@dokterbob

Describe the bug

Using parallelism in CI, I noticed that some jobs were needlessly duplicated twice.

Specific example: synergyai-nl/svelte-langgraph#49 (comment)

In this case, the job which takes the longest (frontend:install-playwright) is triggered by frontend:test-e2e, which (together with some other jobs) ends up being run twice, adding about 2m to overall build time.

Expected behavior

Jobs at the end of the graph (e.g. which are not depended on) do not run within the same job.

Or even better; the dependencies of jobs which are not dependent on are distributed based on their dependencies. E.g. frontend jobs would execute in one and backend jobs in another job.

Screenshots

Image

Environment

GHA ubuntu-latest.

Additional context

Relevant tasks are in:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions