From ccf6e148ff655cdb18b99efe80f52dcfb2634009 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Fri, 12 Mar 2021 07:28:44 -0500 Subject: [PATCH] Bug 568574: Touch all files as part of promoting the build Change-Id: I84fd8695ba24043276f5e7ee492fd0ee7e80ce1c --- RELEASING.md | 1 - .../tools/promote-a-build.sh | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/RELEASING.md b/RELEASING.md index 6d6557077..cf6e1ef17 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -60,7 +60,6 @@ EPP releases happen for each milestone and release candidate according to the [E - [ ] Run the [Promote a Build](https://ci.eclipse.org/packaging/job/promote-a-build/) CI job to prepare build artifacts and copy them to download.eclipse.org - [ ] *Optional - useful when testing changes to the promotion scripts:* Run the build once in `DRY_RUN` mode to ensure that the output is correct before it is copied to download.eclipse.org. - [ ] Run the [Notarize MacOSX Downloads](https://ci.eclipse.org/packaging/job/notarize-downloads/) CI job to notarize DMG packages on download.eclipse.org if the promoted build was unstable -- [ ] **TODO add this to the promote a build script** Run [Touch All Files](https://ci.eclipse.org/packaging/job/epp-touch-all-files/) See [Bug 568574](https://bugs.eclipse.org/bugs/show_bug.cgi?id=568574): Touch all files for the milestone in the download area to make sure mirrors are not misreporting them as mirrored before sending announcements. - [ ] Re-enable the [CI build](https://ci.eclipse.org/packaging/job/simrel.epp-tycho-build/) - [ ] Update the [LastRecorded+1.txt](https://git.eclipse.org/c/epp/org.eclipse.epp.packages.git/tree/LastRecorded+1.txt) which any package and platform +1s that have been received since the last update. - [ ] Send email to epp-dev to request package maintainers test it. Include the last recorded +1 details during M3-RC2 emails. diff --git a/releng/org.eclipse.epp.config/tools/promote-a-build.sh b/releng/org.eclipse.epp.config/tools/promote-a-build.sh index 256970a66..527a79a1e 100755 --- a/releng/org.eclipse.epp.config/tools/promote-a-build.sh +++ b/releng/org.eclipse.epp.config/tools/promote-a-build.sh @@ -31,8 +31,10 @@ $ECHO $SSH mkdir -p ${REPO} $ECHO $SSH mv ${EPP_DOWNLOADS}/staging/repository ${REPO}/${RELEASE_DIR} if [ "$RELEASE_MILESTONE" != "R" ]; then $ECHO $SSH mv ${EPP_DOWNLOADS}/staging ${DOWNLOADS}/${RELEASE_MILESTONE} + TOUCHDIRS="${REPO}/${RELEASE_DIR} ${DOWNLOADS}/${RELEASE_MILESTONE}" else $ECHO $SSH mv ${EPP_DOWNLOADS}/staging ${DOWNLOADS}/${RELEASE_DIR} + TOUCHDIRS="${REPO}/${RELEASE_DIR} ${DOWNLOADS}/${RELEASE_DIR}" fi # ---------------------------------------------------------------------------------------------- @@ -108,3 +110,16 @@ done echo "$ARTIFACTXML" > ./compositeArtifacts.xml $SCP compositeArtifacts.xml "${SSHUSER}:"${REPO}/compositeArtifacts${RELEASE_MILESTONE}.xml + +# ---------------------------------------------------------------------------------------------- +# Touch All Files See Bug 568574: Touch all files for the milestone in the download area to make sure mirrors are not misreporting them as mirrored before sending announcements. +echo Touching ${TOUCHDIRS} recursively +$ECHO $SSH /bin/bash << EOF + set -u # run with unset flag error so that missing parameters cause build failure + set -e # error out on any failed commands + set -x # echo all commands used for debugging purposes + find ${TOUCHDIRS} | while read i + do + touch \$i + done +EOF