Skip to content

Commit 57cc53f

Browse files
committed
[skip tests] fix source differences, update verify, & restore rat config exclude
1 parent 1c94c42 commit 57cc53f

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/release-source-distribution.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
rm -f grails/grails-forge/gradle/wrapper/gradle-wrapper.properties
4747
rm -f grails/grails-forge/gradlew
4848
rm -f grails/KEYS
49-
find grails -type f -name '.gitattributes' -delete
5049
- name: "Download CHECKSUMS.txt and rename to CHECKSUMS"
5150
env:
5251
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-upload.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: "Remove existing dev version"
7676
run: |
7777
VERSION="${{ steps.release_version.outputs.version }}"
78-
cd dev-repo/core
78+
cd dev-repo
7979
if [ -d "$VERSION" ]; then
8080
svn delete "$VERSION"
8181
svn commit -m "Remove grails dev version $VERSION" --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
@@ -86,7 +86,7 @@ jobs:
8686
run: |
8787
TAG=${{ github.event.inputs.release_tag }}
8888
VERSION=${{ steps.release_version.outputs.version }}
89-
cd dev-repo/core
89+
cd dev-repo
9090
mkdir -p $VERSION/sources
9191
cd $VERSION/sources
9292
curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-$VERSION-incubating-src.zip
@@ -101,7 +101,7 @@ jobs:
101101
run: |
102102
TAG=${{ github.event.inputs.release_tag }}
103103
VERSION=${{ steps.release_version.outputs.version }}
104-
cd dev-repo/core
104+
cd dev-repo
105105
mkdir -p $VERSION/distribution
106106
cd $VERSION/distribution
107107
curl -LO https://github.com/apache/grails-forge/releases/download/$TAG/apache-grails-$VERSION-incubating-bin.zip
@@ -116,7 +116,7 @@ jobs:
116116
run: |
117117
TAG=${{ github.event.inputs.release_tag }}
118118
VERSION=${{ steps.release_version.outputs.version }}
119-
cd dev-repo/core/$VERSION/distribution
119+
cd dev-repo/$VERSION/distribution
120120
curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-wrapper-$VERSION-incubating-bin.zip
121121
curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-wrapper-$VERSION-incubating-bin.zip.sha512
122122
curl -LO https://github.com/apache/grails-core/releases/download/$TAG/apache-grails-wrapper-$VERSION-incubating-bin.zip.asc

etc/bin/verify.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,22 @@ echo """
8181
}
8282
8383
""" > "${DOWNLOAD_LOCATION}/custom-repos.gradle"
84+
echo "✅ Custom repo script written"
85+
86+
echo "Bootstrap Gradle ..."
87+
cd "${DOWNLOAD_LOCATION}/grails/gradle-bootstrap"
88+
gradlew
89+
echo "✅ Gradle Bootstrapped"
90+
91+
echo "Verifying Reproducible Build ..."
92+
verify-reproducible.sh "${DOWNLOAD_LOCATION}"
93+
echo "✅ Reproducible Build Verified"
8494

8595
echo "Be sure to do the following:"
8696
echo "☑️ Run the wrapper ShellApp: cd ${DOWNLOAD_LOCATION}/apache-grails-wrapper-${VERSION}-incubating-bin/ShellApp && ./gradlew bootRun --init-script ~/grails-verify/custom-repos.gradle"
8797
echo "☑️ Run the wrapper ForgeApp: cd ${DOWNLOAD_LOCATION}/apache-grails-wrapper-${VERSION}-incubating-bin/ForgeApp && ./gradlew bootRun --init-script ~/grails-verify/custom-repos.gradle"
8898
echo "☑️ Run the cli ShellApp: cd ${DOWNLOAD_LOCATION}/apache-grails-${VERSION}-incubating-bin/ShellApp && ./gradlew bootRun --init-script ~/grails-verify/custom-repos.gradle"
8999
echo "☑️ Run the cli ForgeApp: cd ${DOWNLOAD_LOCATION}/apache-grails-${VERSION}-incubating-bin/ForgeApp && ./gradlew bootRun --init-script ~/grails-verify/custom-repos.gradle"
90-
echo "☑️ run the reproducible build test (see below)"
91-
92-
# I have no idea why this needs done manually, but if it's run from this script gradle happily ignores the settings.gradle and tries to build (so it fails)
93-
echo " Unable to bootstrap gradle manually. Please bootstrap by running the gradle 'wrapper' task in grails & grails/grails-gradle."
94-
echo " After bootstrapping, call verify-reproducible.sh '${DOWNLOAD_LOCATION}'"
95-
echo ""
100+
echo "☑️ Run the shell cli from one of the applications and ensure all commands show as expected - pay attention to the scaffolding ones since they are dynamically loaded"
96101

97102
echo "✅✅✅ Verification finished, see above instructions for remaining manual testing."

gradle/rat-root-config.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ tasks.named('rat') {
3535
'grails-web-common/src/main/groovy/org/grails/web/json/JSONWriter.java',
3636
'gradle/wrapper/gradle-wrapper.properties', // gradle wrapper excluded from src zip
3737
'**/build/**', // Gradle generated build directories
38+
'.gitattributes', // git configuration isn't code
3839
'**/.gradle/**', '**/wrapper/**', 'gradlew*', // gradle wrapper files excluded from src zip
3940
'**/*.html', // html files are only in test
4041
'**/resources/*', // exclude test artifacts

0 commit comments

Comments
 (0)