This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit 0b021cbd7f88dc28b87cf44812eeda366d07f21f Author: Robert Munteanu <[email protected]> AuthorDate: Wed Apr 22 18:20:55 2026 +0200 feat(skill_evals): cache the maven dependencies for the revision under test This does not necessarily cache the dependecies for the updated parent version but it should significantly reduce the downloaded artifacts. --- skill-evals/src/skill_evals/jcr_js_nodetypes/Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/skill-evals/src/skill_evals/jcr_js_nodetypes/Dockerfile b/skill-evals/src/skill_evals/jcr_js_nodetypes/Dockerfile index 3a98be30..1ce0cdb1 100644 --- a/skill-evals/src/skill_evals/jcr_js_nodetypes/Dockerfile +++ b/skill-evals/src/skill_evals/jcr_js_nodetypes/Dockerfile @@ -1,12 +1,24 @@ FROM maven:3.9.9-eclipse-temurin-8 +ENV MAVEN_ARGS="--batch-mode --no-transfer-progress" + RUN apt-get update \ - && apt-get install -y --no-install-recommends git \ + && apt-get install -y --no-install-recommends git jq \ && rm -rf /var/lib/apt/lists/* WORKDIR /workspace RUN git clone https://github.com/apache/sling-org-apache-sling-jcr-js-nodetypes /workspace/sling-org-apache-sling-jcr-js-nodetypes +COPY dataset.jsonl /tmp/jcr_js_nodetypes-dataset.jsonl + +RUN cd /workspace/sling-org-apache-sling-jcr-js-nodetypes \ + && for revision in $(jq -r '.git_revision' /tmp/jcr_js_nodetypes-dataset.jsonl); do \ + git checkout --force "$revision" \ + && mvn org.apache.maven.plugins:maven-dependency-plugin:3.10.0:go-offline; \ + done \ + && git checkout --force master \ + && rm -f /tmp/jcr_js_nodetypes-dataset.jsonl + RUN printf '%s\n' '#!/bin/sh' 'exec mvn "$@"' > /usr/local/bin/mvn8 \ && chmod +x /usr/local/bin/mvn8
