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

Update time offset warning #105

Merged
merged 12 commits into from
Apr 20, 2021
Merged

Update time offset warning #105

merged 12 commits into from
Apr 20, 2021

Conversation

ArturT
Copy link
Member

@ArturT ArturT commented Apr 13, 2021

@ArturT ArturT requested a review from shadre April 13, 2021 15:28
Copy link
Member

@shadre shadre left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this.

I've proposed some lingo improvements for you to consider 👍

@@ -51,10 +51,15 @@ def time_offset_warning
}
if Knapsack.tracker.time_exceeded?
str << %{
Tests on this CI node took more than max allowed node time execution.
Tests on this CI node took more than the max allowed node time execution.
Copy link
Member

Choose a reason for hiding this comment

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

idea for lingo improvements:
Test on this CI node ran for longer than the max allowed node time execution.

If that didn't help then split your heavy test file
or bump time_offset_in_seconds setting.}

If that didn't help then split your slow test file into smaller test files
Copy link
Member

Choose a reason for hiding this comment

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

Consider:
If that doesn't help, you can split your slowest test files into smaller files, or bump up the time_offset_in_seconds setting.

If that didn't help then split your slow test file into smaller test files
or bump time_offset_in_seconds setting.

You can also use knapsack_pro gem to automatically divide slow test files between parallel CI nodes.
Copy link
Member

Choose a reason for hiding this comment

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

How about:
You can also allow the knapsack_pro gem to automatically divide your slow test files across parallel CI nodes.

@@ -64,8 +69,8 @@ def time_offset_warning
str << "\nhttps://docs.knapsackpro.com/ruby/knapsack#faq"
str << "\n=================================================\n"
str << %{See how to split tests in a dynamic way using Queue Mode to ensure all parallel nodes
finish work at a similar time even when your CI or random test execution is a bottleneck:
https://youtu.be/hUEB1XDKEFY
finish work at a similar time even when your CI server or a random tests execution time is a bottleneck:
Copy link
Member

Choose a reason for hiding this comment

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

This might be a little unclear to some imho. Maybe we can simplify this to sth plain like:

Read up on the benefits of a dynamic test split with Knapsack's Queue Mode:

What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

good point. The article explains it.

@ArturT ArturT merged commit 93ae546 into master Apr 20, 2021
@ArturT ArturT deleted the tip-for-slow-tests branch April 20, 2021 20:24
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.

2 participants