From d63d2672d30640a6347cf9b86c337ee3be16ce78 Mon Sep 17 00:00:00 2001 From: Nathan Frank Date: Fri, 24 Apr 2026 11:34:08 -0500 Subject: [PATCH] SERVER-117494: enable gwproxy tests in evg (#52578) GitOrigin-RevId: fff11b1c5e02833c82fe6e0ae781ef41f607bc67 --- .../suites/streams_aspio_iceberg_4.yml | 2 -- .../suites/streams_aspio_pubsub.yml | 2 -- evergreen/streams_pull_gwproxy.sh | 29 +++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100755 evergreen/streams_pull_gwproxy.sh diff --git a/buildscripts/resmokeconfig/suites/streams_aspio_iceberg_4.yml b/buildscripts/resmokeconfig/suites/streams_aspio_iceberg_4.yml index d568724cea2..5120df0d211 100644 --- a/buildscripts/resmokeconfig/suites/streams_aspio_iceberg_4.yml +++ b/buildscripts/resmokeconfig/suites/streams_aspio_iceberg_4.yml @@ -7,8 +7,6 @@ selector: - src/mongo/db/modules/*/jstests/streams/aspio/iceberg/iceberg_stats.js - src/mongo/db/modules/*/jstests/streams/aspio/iceberg/iceberg_error_precreated_table.js - src/mongo/db/modules/*/jstests/streams/aspio/iceberg/iceberg_modify_partitioned_by.js - exclude_files: - # TODO(SERVER-117494): Re-enable once evg configuration is resolved. - src/mongo/db/modules/*/jstests/streams/aspio/iceberg/gwproxy/iceberg_gwproxy.js executor: diff --git a/buildscripts/resmokeconfig/suites/streams_aspio_pubsub.yml b/buildscripts/resmokeconfig/suites/streams_aspio_pubsub.yml index 8caf8ae4e8c..ea4e244f59c 100644 --- a/buildscripts/resmokeconfig/suites/streams_aspio_pubsub.yml +++ b/buildscripts/resmokeconfig/suites/streams_aspio_pubsub.yml @@ -7,8 +7,6 @@ selector: - src/mongo/db/modules/*/jstests/streams/aspio/pubsub/pubsub_checkpoint.js - src/mongo/db/modules/*/jstests/streams/aspio/pubsub/pubsub_auth_error.js - src/mongo/db/modules/*/jstests/streams/aspio/pubsub/pubsub_publish_error.js - exclude_files: - # TODO(SERVER-117494): Re-enable once evg configuration is resolved. - src/mongo/db/modules/*/jstests/streams/aspio/pubsub/pubsub_gwproxy.js executor: diff --git a/evergreen/streams_pull_gwproxy.sh b/evergreen/streams_pull_gwproxy.sh new file mode 100755 index 00000000000..9953a9e1ea1 --- /dev/null +++ b/evergreen/streams_pull_gwproxy.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# Pull the latest gwproxy image from the SRE ECR repository. +# Filters for OCI image index manifests, pulls the most recent by digest, +# and tags it locally as gwproxy-sre:latest. +# +# Writes gwproxy_image_expansion.yml with the local tag for Evergreen expansion. +set -o pipefail + +REGISTRY="664315256653.dkr.ecr.us-east-1.amazonaws.com" +REPO="sre/gwproxy" + +RAW_JSON=$(aws ecr describe-images \ + --registry-id 664315256653 \ + --repository-name "$REPO" \ + --region us-east-1 \ + --output json) + +DIGEST=$(echo "$RAW_JSON" | python3 -c " +import json, sys +data = json.load(sys.stdin)['imageDetails'] +images = [i for i in data if i.get('imageManifestMediaType') == 'application/vnd.oci.image.index.v1+json'] +latest = sorted(images, key=lambda x: x['imagePushedAt'])[-1] +print(latest['imageDigest']) +") + +echo "Pulling gwproxy image: $REGISTRY/$REPO@$DIGEST" +docker pull "$REGISTRY/$REPO@$DIGEST" +docker tag "$REGISTRY/$REPO@$DIGEST" gwproxy-sre:latest +echo "gwproxy_image: gwproxy-sre:latest" >gwproxy_image_expansion.yml