Ayush Saxena created HADOOP-18701:
-------------------------------------

             Summary: Generic Build Improvements
                 Key: HADOOP-18701
                 URL: https://issues.apache.org/jira/browse/HADOOP-18701
             Project: Hadoop Common
          Issue Type: Wish
            Reporter: Ayush Saxena


Some proposed build changes.
 * Add  {{surefire.failIfNoSpecifiedTests}} as false in POM, else it fails if 
the test specified in -Dtest isn't there in that module, creates problem when 
you plan to run multiple tests across multiple sub-projects from the root of 
the project.

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.0.0:test (default-test) on 
project hadoop-build-tools: No tests matching pattern 
"TestServiceInterruptHandling" were executed! (Set 
-Dsurefire.failIfNoSpecifiedTests=false to ignore this error.)
{noformat}
 * Disable Concurrent builds: Folks push multiple commits in 5-10 mins while 
pre-commit is running already, so good to discourage this.

 * Add threshold to number of builds per day, saves resources for genuine PR's 
against someone pushing multiple commits. (This & the above one: Copied idea 
from Hive)

 * Leverage Github Actions to delegate some of the tasks to them, so a bit of 
parallel execution and might save time, may be explore pushing JDK-11 related 
stuff to Github Actions (We don't run tests as of now for both JDK-11 & 8, 
tests are for 8 only in precommit)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to