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

Improve CI test job speed #2123

Merged
merged 9 commits into from Sep 6, 2022
Merged

Improve CI test job speed #2123

merged 9 commits into from Sep 6, 2022

Conversation

joshuayoes
Copy link
Contributor

Please verify the following:

  • yarn ci:test jest tests pass with new tests, if relevant
  • README.md has been updated with your changes, if relevant

Describe your PR

Problem

Currently, many test jobs on PRs are hitting the 5 minute limit in CircleCI, and failing. We need to speed up the test

Solution

Break up longest running test, test/vanilla/ignite-new.test.ts, into a series of smaller tests that can be run in parallel

@joshuayoes joshuayoes added bug maverick Ignite v8: Maverick labels Sep 6, 2022
@joshuayoes joshuayoes added this to the Ignite v8: Maverick milestone Sep 6, 2022
@joshuayoes joshuayoes self-assigned this Sep 6, 2022
@joshuayoes
Copy link
Contributor Author

Currently, CI seems to be taking between 5:00-6:30 minutes for most Maverick PRs

Screen Shot 2022-09-06 at 12 38 31 PM

CI job of most recent commit shaves about minute off the CI suite

Screen Shot 2022-09-06 at 12 37 32 PM

@joshuayoes
Copy link
Contributor Author

Last test is the longest out of all the chunks. Thinking of ways to break these up, since the generator file creation may mess with the linting/format/compile checks

Screen Shot 2022-09-06 at 1 00 40 PM

@joshuayoes joshuayoes marked this pull request as ready for review September 6, 2022 22:03
.circleci/config.yml Outdated Show resolved Hide resolved
.prettierignore Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
package.json Show resolved Hide resolved
@joshuayoes
Copy link
Contributor Author

Looking good! https://app.circleci.com/pipelines/github/infinitered/ignite/1764/workflows/59bcfd0f-6cdb-41d4-85a0-ba2e4d11282e/jobs/2318

Screen Shot 2022-09-06 at 3 18 18 PM

See my comments for the changes that made a difference

@jamonholmgren jamonholmgren merged commit 9f099e6 into maverick Sep 6, 2022
@jamonholmgren jamonholmgren deleted the feat/ci-speed branch September 6, 2022 23:39
@flexbox flexbox mentioned this pull request Sep 15, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug maverick Ignite v8: Maverick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants