[ 
https://issues.apache.org/jira/browse/GROOVY-12402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18114694#comment-18114694
 ] 

ASF GitHub Bot commented on GROOVY-12402:
-----------------------------------------

codecov-commenter commented on PR #2925:
URL: https://github.com/apache/groovy/pull/2925#issuecomment-5649898897

   ## 
[Codecov](https://app.codecov.io/gh/apache/groovy/pull/2925?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
 Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 71.1879%. Comparing base 
([`3246257`](https://app.codecov.io/gh/apache/groovy/commit/32462579e2689374115525c2ac3e50a1ad86dfb5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache))
 to head 
([`c086baf`](https://app.codecov.io/gh/apache/groovy/commit/c086baf57609a3952cc6583bbaf6c1e362e6d056?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 8 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   [![Impacted file tree 
graph](https://app.codecov.io/gh/apache/groovy/pull/2925/graphs/tree.svg?width=650&height=150&src=pr&token=1r45138NfQ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/groovy/pull/2925?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   
   ```diff
   @@                Coverage Diff                 @@
   ##               master      #2925        +/-   ##
   ==================================================
   - Coverage     71.1971%   71.1879%   -0.0092%     
   - Complexity      37729      37733         +4     
   ==================================================
     Files            1584       1584                
     Lines          136500     136512        +12     
     Branches        25361      25368         +7     
   ==================================================
   - Hits            97184      97180         -4     
   - Misses          30546      30553         +7     
   - Partials         8770       8779         +9     
   ```
   [see 9 files with indirect coverage 
changes](https://app.codecov.io/gh/apache/groovy/pull/2925/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test 
Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, 
report on failures, and find test suite problems.
   - :package: [JS Bundle 
Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save 
yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>




> Local `gradlew test` oversubscribes small machines
> --------------------------------------------------
>
>                 Key: GROOVY-12402
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12402
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Daniel Sun
>            Priority: Major
>
> h3. Problem
> On a 6-CPU developer box, {{./gradlew test}} runs two Test tasks with 
> {{maxParallelForks = nproc/2}}, so six worker JVMs. Each is launched at 
> {{-Xmx2g}} with no {{-XX:ActiveProcessorCount}}, and G1/C2 then size 
> themselves for *all* six CPUs ({{ParallelGCThreads=6}}, {{CICompilerCount=3}} 
> per JVM). Load averages of 16-21 make a full suite take roughly twice as long 
> as a less contended run.
> Three modules ({{performance}}, {{tests-preview}}, {{groovy-osgi-test}}) do 
> not apply {{org.apache.groovy-tested}}, so they sit outside 
> {{ConcurrentExecutionControlBuildService}} and inherit the ergonomic heap 
> (about one quarter of RAM). The indy parity tests then fork child JVMs with 
> the same default.
> * 6 vCPU KVM guest, 23 GiB RAM, no swap
> * JDK 25 (Corretto 25.0.4), Gradle 9.7.1
> * {{master}} @ {{b142a89351}}, development environment ({{CI}} unset)
> h3. Expected
> Local test workers should not each assume they own every CPU. CI must stay 
> conservative: {{maxParallelForks=1}}, two concurrent Test tasks, two groovyc 
> forks.
> h3. Before
> {code}
> ./gradlew cleanTest test --no-build-cache
> {code}
> * Peak 6 Test Executor processes; {{-Xms512m -Xmx2g}}; no APC
> * Full suite: 25m 41s; loadavg mean 15.0, max 21.7
> * Five-module subset ({{performance}}, {{groovy-json}}, {{groovy-xml}}, 
> {{groovy-templates}}, {{groovy-sql}}): 4m 11s; loadavg max 18.1
> * 23731 passed, 131 skipped, 0 failed
> h3. Approach
> Keep the CI caps. Locally, size forks from the machine and tell each worker 
> how many CPUs it may use:
> * {{maxParallelForks = max(1, (nproc-2)/2)}} (2 on six CPUs)
> * {{-XX:ActiveProcessorCount = floor(nproc / peakWorkers)}} (1 on six CPUs)
> * {{groovyJUnit_ms=256m}} ({{groovyJUnit_mx}} stays 2g)
> * Enroll {{performance}}, {{tests-preview}}, and {{groovy-osgi-test}} in the 
> existing Test limiter; cap their heaps at 512m; pin parity-test children to 
> {{-Xmx256m -XX:ActiveProcessorCount=1}}
> Knobs live on {{SharedConfiguration}} so Test and groovyc share one formula.
> h3. After
> Same command, same revision, same 23731 passed / 131 skipped:
> ||Run||Before||After||
> |full cleanTest test --no-build-cache|25m 41s|22m 59s|
> |five-module subset|4m 11s|2m 52s|
> |peak Test JVMs|6|4|
> |loadavg mean (full)|15.0|8.3|
> |loadavg max (full)|21.7|15.1|



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to