test(emr): run steps and job runs through the Docker runner (#7349)

No EMR test ran a step or a job run through Floci's Docker runner: the
runner's wrappers and settings were unit tested and run by hand in the
images. EmrDockerRunnerDockerIntegrationTest, a Docker-gated
@QuarkusTest on ContainerDataPlaneProfile (which now sets both runner
modes to docker), runs them for real in the emr-7.5.0 image, reaching
Floci's S3 from the container:

- a hadoop-streaming word count step, its mapper and reducer from S3,
  writing its counts to S3;
- the same word count as a custom JAR at EMR's streaming jar path;
- s3-dist-cp from S3 into the cluster's HDFS and back;
- a cluster's spark-env export, read by a Spark step's driver;
- an EMR Serverless run on the user guide's virtual environment recipe,
  spark.archives with #environment and the driver's and executors'
  Python in it, from an archive that needs no package index.

EmrRequests.awaitStep and EmrServerlessRequests' createSparkApplication,
startJobRun and awaitJobRun are shared helpers, each wait checking that
its call answered 200 before reading the state, and
RetryingTarCopier.putEntry, pulled out of singleFileTar, writes the
archive's entries. The CI prefetch queues the 3.5 GB image for the
shard that runs the class, last, behind the Lambda runtimes, and the
prefetch results step no longer warns about an EMR Serverless image on
ECR Public, the only place AWS publishes them.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-02 17:31:59 -06:00
1 parent cfd7e83776
commit b63e4a5bb9
7 files changed
+358 -15

No files matched your search

+4 -4
View File
@@ -143,8 +143,8 @@ jobs:
# here (after an early exit) has no result line yet, so list it. The
# prefetch is best-effort by design, so a key that no longer matches a
# class, a pin the script could not read, or an image back on ECR Public
# that Docker Hub also carries (only the Lambda runtimes belong there) is
# an annotation, not a failure.
# that Docker Hub also carries (only the Lambda runtimes and the EMR
# Serverless images belong there) is an annotation, not a failure.
- name: Image prefetch results
if: always()
run: |
@@ -153,8 +153,8 @@ jobs:
grep -E 'stale prefetch key|prefetch skipped' prefetch-images.log 2>/dev/null \
| sed 's/^/::warning title=prefetch-images.sh::/' || true
grep -E '(prefetched|prefetch failed) public\.ecr\.aws/' prefetch-images.log 2>/dev/null \
| grep -vE 'public\.ecr\.aws/lambda/' \
| sed 's/^/::warning title=prefetch-images.sh::not a Lambda runtime, pull it from Docker Hub: /' || true
| grep -vE 'public\.ecr\.aws/(lambda|emr-serverless)/' \
| sed 's/^/::warning title=prefetch-images.sh::pull it from Docker Hub, not ECR Public: /' || true
# Save from main only, and from shard 1 only. Actions caches are ref-scoped:
# a pull_request run's write lands in refs/pull/N/merge where no other PR can