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

Frontend tests now has parallel workers & removed cluttered warnings #6414

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

mahesh-naxa
Copy link
Collaborator

@mahesh-naxa mahesh-naxa commented May 7, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Description

Frontend build despite using a Large resource class (4 core, 8GB) takes 6-7 Minutes. We can use parallel workers with -w flag to get most out of available cpu cores.
Also cluttered warnings has been removed with --silent. This reduced CircleCI console logs from 5000 lines to 900ish lines, making it easier to conceive.

Screenshots

Before

Screenshot 2024-05-07 at 1 04 32β€―PM

After

Screenshot 2024-05-07 at 1 04 17β€―PM

Before

Screenshot 2024-05-07 at 1 06 51β€―PM

After

Screenshot 2024-05-07 at 1 12 17β€―PM

Alternative Approaches Considered

For 4 cores, with some testing i found out that -w 3 worked the best, setting -w 4 or higher increased the test time also in cases freezed the VM instance.

With more CPU compute this can be improved, Testing on X-large resource class had this time reduced to a minute.

Copy link

sonarqubecloud bot commented May 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Member

@dakotabenjamin dakotabenjamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this is a good update, but are we sure we want to mute the warnings? @ramyaragupathy let me know your thoughts here.

@dakotabenjamin dakotabenjamin merged commit 4696687 into develop Jul 11, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants