From f26c688f33079b6428bda194f4c25e06fe26aed9 Mon Sep 17 00:00:00 2001 From: Michael Muller Date: Tue, 3 Sep 2019 19:47:58 -0400 Subject: [PATCH] Move EntityManagerFactoryProviderTest to fragile (#251) * Move EntityManagerFactoryProviderTest to fragile * Add EMF Provider Test to docker tests Add EntityManagerFactoryProviderTest to the docker incompatible test patterns and use the latter list to compose the fragile tests. --- core/build.gradle | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/core/build.gradle b/core/build.gradle index f129a09df..1ddbeaff7 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -43,21 +43,6 @@ def outcastTestPatterns = [ "google/registry/tools/server/CreatePremiumListActionTest.*", ] -// Tests that conflict with members of both the main test suite and the -// outcast suite. They seem to be affected by global states outside of -// Nomulus classes, e.g., threads and objects retained by frameworks. -// TODO(weiminyu): identify cause and fix offending tests. -def fragileTestPatterns = [ - // Problem seems to lie with AppEngine TaskQueue for test. - "google/registry/cron/TldFanoutActionTest.*", - // Test Datastore inexplicably aborts transaction. - "google/registry/model/tmch/ClaimsListShardTest.*", - // Creates large object (64MBytes), occasionally throws OOM error. - "google/registry/model/server/KmsSecretRevisionTest.*", - "google/registry/tools/GenerateSqlSchemaCommandTest.*", - "google/registry/webdriver/*", -] - // Tests that fail when running Gradle in a docker container, e. g. when // building the release artifacts in Google Cloud Build. def dockerIncompatibleTestPatterns = [ @@ -70,9 +55,23 @@ def dockerIncompatibleTestPatterns = [ // respected. However when running in Docker the user is root by default, so // every file is read/write-able. There is no way to exclude specific test // methods, so we exclude the whole test class. - "google/registry/tools/params/PathParameterTest.*" + "google/registry/tools/params/PathParameterTest.*", + "google/registry/persistence/EntityManagerFactoryProviderTest.*", ] +// Tests that conflict with members of both the main test suite and the +// outcast suite. They seem to be affected by global states outside of +// Nomulus classes, e.g., threads and objects retained by frameworks. +// TODO(weiminyu): identify cause and fix offending tests. +def fragileTestPatterns = [ + // Problem seems to lie with AppEngine TaskQueue for test. + "google/registry/cron/TldFanoutActionTest.*", + // Test Datastore inexplicably aborts transaction. + "google/registry/model/tmch/ClaimsListShardTest.*", + // Creates large object (64MBytes), occasionally throws OOM error. + "google/registry/model/server/KmsSecretRevisionTest.*", +] + dockerIncompatibleTestPatterns + sourceSets { main { java {