This is an automated email from the ASF dual-hosted git repository.

mcgilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 04c6c51aed NIFI-13086 - set jest maxWorkers to 50% for maven builds to 
alleviate some resource contention (#8689)
04c6c51aed is described below

commit 04c6c51aed117873e142af76edbc7aec35658467
Author: Rob Fellows <[email protected]>
AuthorDate: Tue Apr 23 09:45:30 2024 -0400

    NIFI-13086 - set jest maxWorkers to 50% for maven builds to alleviate some 
resource contention (#8689)
    
    * NIFI-13086 - set jest maxWorkers to 50% for maven builds to alleviate 
some resource contention
    
    * quoting the maxWorkers value
    
    * set maxWorkers in jest.config.ts
    
    * set maxWorkers to 2 for maven builds
    
    This closes #8689
---
 .../nifi-framework/nifi-web/nifi-web-frontend/pom.xml                   | 2 +-
 .../nifi-web/nifi-web-frontend/src/main/nifi/jest.config.ts             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
index 85d1729854..5cb8178533 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
@@ -172,7 +172,7 @@
                         </goals>
                         <phase>test</phase>
                         <configuration>
-                            <arguments>nx test</arguments>
+                            <arguments>nx test --maxWorkers=2</arguments>
                             
<workingDirectory>${frontend.working.dir}</workingDirectory>
                         </configuration>
                     </execution>
diff --git 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/jest.config.ts
 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/jest.config.ts
index fa5394c4b6..531f03af6c 100644
--- 
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/jest.config.ts
+++ 
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/jest.config.ts
@@ -79,7 +79,7 @@ const config: Config = {
     // globals: {},
 
     // The maximum amount of workers used to run your tests. Can be specified 
as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as 
the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
-    // maxWorkers: "50%",
+    // maxWorkers: '50%',
 
     // An array of directory names to be searched recursively up from the 
requiring module's location
     // moduleDirectories: [

Reply via email to