[hibernate-commits] [hibernate/hibernate-search] 42683e: Fix typos in orm performance tests

GitHub noreply at github.com
Tue Oct 10 05:29:04 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-search
  Commit: 42683e02a479e80b7687643215c1fb45ae0dfeb4
      https://github.com/hibernate/hibernate-search/commit/42683e02a479e80b7687643215c1fb45ae0dfeb4
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestContext.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestReporter.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/InsertBookTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByAuthorTask.java

  Log Message:
  -----------
  Fix typos in orm performance tests


  Commit: f5bd173a103f43d902ef54517cb9536009c2c2da
      https://github.com/hibernate/hibernate-search/commit/f5bd173a103f43d902ef54517cb9536009c2c2da
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/util/BatchSupport.java

  Log Message:
  -----------
  HSEARCH-2894 Fix off-by-one error in ORM performance tests


  Commit: 7ab5b2e417bc88264c51c08b1632e03e9541d6a1
      https://github.com/hibernate/hibernate-search/commit/7ab5b2e417bc88264c51c08b1632e03e9541d6a1
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/TestRunnerArquillian.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/TestRunnerStandalone.java
    A integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/AbstractTestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/FileSystemDefaultTestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/FileSystemNearRealTimeTestScenario.java
    A integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/ReadWriteTestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/SmokeTestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestContext.java
    A integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestExecutor.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestReporter.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestScenario.java
    A integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestScenarioContext.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/AbstractTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/InsertBookTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByAuthorTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByAverageRatingTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByBestRatingTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByNewestPublishedTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksBySummaryTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByTitleTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByTotalSoldTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/UpdateBookRatingTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/UpdateBookTotalSoldTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/util/CheckerLuceneIndex.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/util/CheckerUncaughtExceptions.java

  Log Message:
  -----------
  HSEARCH-2895 Separate ORM performance test execution from scenarios

... by moving test execution code to TestExecutor, and moving some
context out of TestScenario to dedicated classes.

This way, we will be able to add completely different scenarios, in
particular scenarios about mass indexing, while still re-using most of
the execution code.


  Commit: cff05c4fa844670913227587ff745bd70cf2c38b
      https://github.com/hibernate/hibernate-search/commit/cff05c4fa844670913227587ff745bd70cf2c38b
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/AbstractTestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/ReadWriteTestScenario.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestContext.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestExecutor.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestReporter.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestScenarioContext.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/AbstractTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/InsertBookTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByAuthorTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksBySummaryTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/QueryBooksByTitleTask.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/util/CheckerLuceneIndex.java

  Log Message:
  -----------
  HSEARCH-2895 Make test parameters instance members instead of static ones

First because it makes more sense, and second because this will allow
scenarios to change some parameters. For instance, it makes no sense to
run mass indexing tests over multiple threads.


  Commit: 295e5f08d3fdd802880e4b1b58c2fa2d70a016f9
      https://github.com/hibernate/hibernate-search/commit/295e5f08d3fdd802880e4b1b58c2fa2d70a016f9
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/pom.xml
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestScenarioFactory.java
    M integrationtest/performance/orm/src/test/resources/arquillian.xml

  Log Message:
  -----------
  HSEARCH-2895 Allow to use custom scenarios in the Aquillian runner in orm performance tests

Previously the "scenario" system property would be ignored, because the
Arquillian runner executes tests in a different JVM.


  Commit: 2da26e3c7deafcf0eb42d8bb0948152a0218e3bf
      https://github.com/hibernate/hibernate-search/commit/2da26e3c7deafcf0eb42d8bb0948152a0218e3bf
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/pom.xml
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/TestRunnerArquillian.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/TestRunnerStandalone.java
    A integrationtest/performance/orm/src/test/resources/data-source.properties
    A integrationtest/performance/orm/src/test/resources/hibernate.properties
    M integrationtest/wildfly/src/test/resources/data-source.properties

  Log Message:
  -----------
  HSEARCH-2895 Take database profile into account in ORM performance tests

Testing on H2 is hardly a real-world scenario.


  Commit: 5a252f0f5f933cef6106fad466ca0e09e4f30b0a
      https://github.com/hibernate/hibernate-search/commit/5a252f0f5f933cef6106fad466ca0e09e4f30b0a
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestReporter.java

  Log Message:
  -----------
  HSEARCH-2895 Avoid divide by 0 when no task is executed in ORM perf tests

I don't know how this can happen, but it did happen to me, so let's be
safe.


  Commit: b0e760065ba4ed87916f1b2f58693720e93e40bd
      https://github.com/hibernate/hibernate-search/commit/b0e760065ba4ed87916f1b2f58693720e93e40bd
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestExecutor.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestReporter.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/scenario/TestScenarioContext.java
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/task/AbstractTask.java
    R integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/util/CheckerUncaughtExceptions.java

  Log Message:
  -----------
  HSEARCH-2893 Handle and report errors more visibly in ORM performance tests

In particular, make the JUnit test fail when an error occurs. We used to
only print something in the report and make the test pass.


  Commit: 99f99a0fb082aa3372367af8f8f135743b51f5b1
      https://github.com/hibernate/hibernate-search/commit/99f99a0fb082aa3372367af8f8f135743b51f5b1
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M integrationtest/performance/orm/src/test/java/org/hibernate/search/test/performance/TestRunnerArquillian.java

  Log Message:
  -----------
  HSEARCH-2893 Fix ORM perfomance tests failures when accessing transactions on WildFly


Compare: https://github.com/hibernate/hibernate-search/compare/4a33ed7f05ac...99f99a0fb082


More information about the hibernate-commits mailing list