Grommash9 / tg_chat_mate

https://grommash9.github.io/tg_chat_mate/
MIT License
5 stars 6 forks source link

Run python and typescript code check pipelines in parallel #169

Closed Grommash9 closed 9 months ago

Grommash9 commented 9 months ago

https://docs.travis-ci.com/user/build-stages/

We can see it's possible to run some stages or scripts in parallel and it can we very useful for us to do it these way.

In future we will add tests for python code, and I hope we will be able to add some TS tests, so there will be more things what we will want to use in parallel

Acceptance criteria:

  1. python and ts code check pipelines are running in parallel
Jonatan-Chaverri commented 9 months ago

Not sure what you mean. I see that both stages are being run in parallel right now.

Screenshot 2024-01-16 at 17 43 13

According to the official Travis documentation

Stages group jobs that run in parallel and different stages run sequentially.

So to run jobs in parallel, you just need them to be in the same stage which is already the case for Python linting and Typescript linting jobs.

Grommash9 commented 9 months ago

On Travis website we can see how it's run not in parallel, but one by one

Also we can see it looking at time consumed by first stage

It should be 1 min 58 sec if it runs in parallel

image

Jonatan-Chaverri commented 9 months ago

@Grommash9 which Travis plan are you using? I can see that bootstrap plan only allow one concurrent job at the time, hence no parallelism is allowed. https://www.travis-ci.com/pricing-cloud/

Grommash9 commented 9 months ago

Oh, yes, true, we are using minimal one now, yes that's why it's not working as expected. Thanks for figuring it out.