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

chore(ci): reduce resource class #2506

Merged
1 commit merged into from
Jan 5, 2022
Merged

chore(ci): reduce resource class #2506

1 commit merged into from
Jan 5, 2022

Conversation

ghost
Copy link

@ghost ghost commented Dec 31, 2021

These jobs utilise less than 50% of a large's resource. It's a waste. Go back to default (medium). For numbers see the "Resources" tab for any job in CircleCI.

I had to add runInBand for some of our Jest "package" tests to avoid timeouts.

https://app.circleci.com/pipelines/github/snyk/snyk/8808/workflows/00296f85-f15c-4135-b74b-46a2ce284b0a/jobs/67106

So this could be why we setup "large" resources. "medium" can't handle parallel tests. However, I think adding "runInBand" is fine for now. We do it for other tests too so it's consistent. For parallelism, CircleCI has its own feature which would be a better fit here (see #2232)

To Do

  • Take note of and compare new resource usage and timings once the pipeline passes.
    • Pretty much the same numbers.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 31, 2021

Messages
📖

This PR will not trigger a new version. It doesn't include any commit message with feat or fix.

Generated by 🚫 dangerJS against 4a5b22d

These jobs utilise less than 50% of a large's resource. It's a waste. Go back to default (medium).
@ghost ghost force-pushed the chore/reduce-resource-class branch from 0a78bbf to 4a5b22d Compare December 31, 2021 16:43
@ghost ghost marked this pull request as ready for review December 31, 2021 19:46
@ghost ghost requested review from a team as code owners December 31, 2021 19:46
@ghost ghost merged commit a4c5a7a into master Jan 5, 2022
@ghost ghost deleted the chore/reduce-resource-class branch January 5, 2022 12:35
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant