Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add some unit tests

    • -0
    • +37
    ./testing/RepeatRerunStrategyTest.groovy
    • -0
    • +48
    ./testing/RetryFailedRerunStrategyTest.groovy
Add some unit tests

    • -0
    • +48
    ./testing/RetryFailedRerunStrategyTest.groovy
Remove unused code

    • -90
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
  1. … 2 more files in changeset.
Remove unused code

    • -90
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
  1. … 2 more files in changeset.
Prefer composition over inheritance in PerformanceTest hierarchy (#10262)

### Context

Previously, we had a bad `PerformanceTest` hierarchy:

- PerformanceTest

- ReportGenerationPerformanceTest

- BuildScanPerformanceTest

- DistributedPerformanceTest

- RerunDistributedPerformanceTest

This PR does a refactoring - extracts a `PerformanceTestReporter`/`DistributedPerformanceTestReporter` out of the `PerformanceTest` hierarchy, because https://github.com/gradle/gradle-private/issues/2192 wants a report, too.

The hierarchy after the refactoring:

- PerformanceTest

- DistributedPerformanceTest

- PerformanceTestReporter

So we can make things easier.

    • -0
    • +90
    ./testing/DistributedPerformanceTestTest.groovy
    • -90
    • +0
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 9 more files in changeset.
Refine PR

    • -92
    • +0
    ./testing/DistributedPerformanceReporterTest.groovy
    • -0
    • +90
    ./testing/DistributedPerformanceTestTest.groovy
  1. … 5 more files in changeset.
Ignore test for now

    • -1
    • +3
    ./testing/DistributedPerformanceReporterTest.groovy
  1. … 2 more files in changeset.
Fix test

    • -1
    • +3
    ./testing/DistributedPerformanceReporterTest.groovy
  1. … 3 more files in changeset.
Ignore test for now

    • -0
    • +2
    ./testing/DistributedPerformanceReporterTest.groovy
Refactor performance test hierarchy

    • -0
    • +90
    ./testing/DistributedPerformanceReporterTest.groovy
    • -90
    • +0
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 10 more files in changeset.
Refactor performance test hierarchy

    • -0
    • +90
    ./testing/DistributedPerformanceReporterTest.groovy
    • -90
    • +0
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 10 more files in changeset.
Fix issue of worker build failing abnormally (#10249)

This fixes https://github.com/gradle/gradle-private/issues/2273

Previously we only read the test class name from JUnit xml result. When the worker build fails prematurely, the JUnit xml result is not available. This PR fixes this issue by adding test class name to scenario list.

    • -5
    • +2
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 8 more files in changeset.
Fix failure

    • -1
    • +1
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 4 more files in changeset.
Fix 404 of worker build

    • -4
    • +1
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 6 more files in changeset.
Fix 404 of worker build

    • -4
    • +1
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 6 more files in changeset.
Fix 404 of worker build

    • -4
    • +1
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 6 more files in changeset.
Fix method name conflict in RebaselinePerformanceTests

    • -1
    • +1
    ./testing/RebaselinePerformanceTestTest.groovy
  1. … 1 more file in changeset.
Fix method name conflict in RebaselinePerformanceTests

    • -1
    • +1
    ./testing/RebaselinePerformanceTestTest.groovy
  1. … 1 more file in changeset.
Fix method name conflict in RebaselinePerformanceTests

    • -1
    • +1
    ./testing/RebaselinePerformanceTestTest.groovy
  1. … 1 more file in changeset.
Fix method name conflict in RebaselinePerformanceTests

    • -1
    • +1
    ./testing/RebaselinePerformanceTestTest.groovy
  1. … 1 more file in changeset.
Fix method name conflict in RebaselinePerformanceTests

    • -1
    • +1
    ./testing/RebaselinePerformanceTestTest.groovy
  1. … 1 more file in changeset.
Fix method name conflict in RebaselinePerformanceTests

    • -1
    • +1
    ./testing/RebaselinePerformanceTestTest.groovy
  1. … 1 more file in changeset.
Rerun distributed performance test in RERUNNER step (#8801)

After the improvement of automatically rerunning and tagging, we want to manage performance test in the same way:

- Only run each performance test scenario once.

- If it fails, `GRADLE_RERUNNER` will kick in and rerun the failed scenario. The good thing is that it might be scheduled to another build agent, which mitigates the effect of bad agent.

This PR does:

- Remove all `Retry` from performance tests.

- Add `GRADLE_RERUNNER` to performance tests and refactor some code.

- Add tests for `PerformanceTest`.

- Since `GRADLE_RERUNNER` depends on reading of test binary result, write binary test result file in `RerunableDistributedPerformanceTest`.

    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 23 more files in changeset.
Rebase to latest master

    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 23 more files in changeset.
Handle rerun performance test

    • -93
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 6 more files in changeset.
Handle rerun performance test

    • -93
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 7 more files in changeset.
Handle rerun performance test

    • -93
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 7 more files in changeset.
Handle rerun performance test

    • -93
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 6 more files in changeset.
Handle rerun performance test

    • -93
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 6 more files in changeset.
Handle rerun performance test

    • -93
    • +0
    ./testing/DistributedPerformanceTestTest.groovy
    • -0
    • +93
    ./testing/RerunableDistributedPerformanceTestTest.groovy
  1. … 7 more files in changeset.