autophagy commented on a change in pull request #16332:
URL: https://github.com/apache/flink/pull/16332#discussion_r663918205
##########
File path: tools/azure-pipelines/jobs-template.yml
##########
@@ -243,3 +278,9 @@ jobs:
inputs:
targetPath: $(DEBUG_FILES_OUTPUT_DIR)
artifact: logs-${{parameters.stage_name}}-$(DEBUG_FILES_NAME)
+ - script: |
+ mkdir -p $(TESTCONTAINER_CACHE_FOLDER)
+ docker save $(docker image ls --format "{{.Repository}}:{{.Tag}}" |
grep -E -- "testcontainers|kafka|elasticsearch|postgres|mysql") -o
$(TESTCONTAINER_CACHE_FOLDER)/cache.tar || true
Review comment:
Yeah - this is why I thought maybe caching based on the contents of
pom.xml might be a good fit, since the specific testcontainer container
versions are defined in there, for example with elasticsearch 7.5.1
https://github.com/apache/flink/blob/1c67df838ad045484f96a5839c324771285d9cf7/flink-connectors/flink-connector-elasticsearch7/pom.xml#L92
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]