mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
chore(ci): run the EMR Docker runner test nightly, beside the cluster shrink check (#8957)
EmrDockerRunnerDockerIntegrationTest pulls a 3.5 GB image and took about 640 s of a passing pull request shard, so after #8903 moved its cluster shrink scenario to the nightly checks, the rest of the class follows as EmrDockerRunnerNightlyIntegrationTest. partition.sh no longer weighs it: SLOW_CLASSES comes from PARTITION_SLOW_CLASSES, empty by default, and test_partition.py passes its own. The standard nightly group has no room for it (339 of its 359 minutes), so the cluster-shrink group becomes docker-runner, with both classes in 42 minutes of bounds in a 62-minute job. On a pull request, the nightly checks now run only the nightly classes it adds or changes, or all of them when it changes the workflow.
This commit is contained in:
1 parent
5b2c46f358
commit
030ba3d72b
7 files changed
+61
-36
No files matched your search
+6
-1
@@ -24,6 +24,7 @@ import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
|
||||
import org.junit.jupiter.api.extension.RegisterExtension;
|
||||
import software.amazon.awssdk.core.sync.RequestBody;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
@@ -60,10 +61,14 @@ import static org.junit.jupiter.api.Assumptions.assumeTrue;
|
||||
* runner mode runs each step, and an application each job run, in a container of the release's EMR Serverless image,
|
||||
* which reaches Floci's S3 and Glue from there, a job run's executors each in a container of their own, as the profile sets. The cached {@code emr-7.5.0} image keeps a local run from pulling;
|
||||
* CI pulls it (3.5 GB) the first time.
|
||||
*
|
||||
* <p>A nightly check: it pulls a 3.5 GB image and runs for over ten minutes, about half of a pull request shard, so
|
||||
* it runs with {@code -Dnightly.checks.enabled=true}.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(CloudFormationSettingsProfile.class)
|
||||
class EmrDockerRunnerDockerIntegrationTest {
|
||||
@EnabledIfSystemProperty(named = "nightly.checks.enabled", matches = "true")
|
||||
class EmrDockerRunnerNightlyIntegrationTest {
|
||||
|
||||
private static final ObjectMapper JSON = new ObjectMapper();
|
||||
private static final String REGION = "us-east-1";
|
||||
@@ -149,7 +149,7 @@ class EmrHiveStepsNightlyIntegrationTest {
|
||||
|
||||
// A query that groups its rows through a shuffle, its tasks giving the hosts they ran on: the primary node,
|
||||
// whose NodeManager runs them on a cluster without core nodes, not the step's container. Core and task nodes
|
||||
// running a job's containers are EmrDockerRunnerDockerIntegrationTest's, as a cluster with Hive starts slower.
|
||||
// running a job's containers are EmrDockerRunnerNightlyIntegrationTest's, as a cluster with Hive starts slower.
|
||||
assertEquals("COMPLETED", hiveStep("-e", "create external table kv (k string, v int) row format delimited"
|
||||
+ " fields terminated by ',' location '" + s3Uri("data/rows/") + "';"
|
||||
+ " insert overwrite directory '" + s3Uri("out/tez/") + "' row format delimited fields terminated"
|
||||
|
||||
@@ -35,7 +35,7 @@ import java.util.Map;
|
||||
* {@code floci.services.emrserverless.runner-mode=docker} run a cluster's steps and an EMR
|
||||
* Serverless application's job runs in containers of the release's image, and
|
||||
* {@code floci.services.emrserverless.executor-containers=2} a Spark job run's executors each in a
|
||||
* container of its own. {@code EmrDockerRunnerDockerIntegrationTest},
|
||||
* container of its own. {@code EmrDockerRunnerNightlyIntegrationTest},
|
||||
* {@code EmrServerlessHiveDockerIntegrationTest} and the EMR nightly checks rely on them.</li>
|
||||
* <li>{@code floci.services.cloudfront.enabled=false} turns CloudFront off.
|
||||
* {@code CloudFrontDisabledServingTest} relies on it.</li>
|
||||
|
||||
Reference in new issue
Block a user