Skip to content

Commit 08ddb18

Browse files
authored
Merge pull request #1186 from apache/fix-tests
Prep for release
2 parents 252c477 + e7588dd commit 08ddb18

File tree

74 files changed

+1774
-1864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1774
-1864
lines changed

.github/scripts/releaseDistributions.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,33 @@
1919
# under the License.
2020
#
2121

22-
# ./releaseDistributions.sh <tag> <username> <password>
22+
# ./releaseDistributions.sh <tag> <username> <svn_folder>
2323

2424
set -euo pipefail
2525

2626
if [[ $# -ne 3 ]]; then
27-
echo "Usage: $0 <tag> <username> <password>" >&2
27+
echo "Usage: $0 <tag> <svn_folder> <username>" >&2
2828
exit 1
2929
fi
3030

3131
RELEASE_TAG="$1"
3232
RELEASE_VERSION="${RELEASE_TAG#v}"
33-
SVN_USER="$2"
34-
SVN_PASS="$3"
35-
RELEASE_ROOT="https://dist.apache.org/repos/dist/release/grails/spring-security"
36-
DEV_ROOT="https://dist.apache.org/repos/dist/dev/grails/spring-security"
33+
SVN_FOLDER="$2"
34+
SVN_USER="$3"
35+
RELEASE_ROOT="https://dist.apache.org/repos/dist/release/grails/${SVN_FOLDER}"
36+
DEV_ROOT="https://dist.apache.org/repos/dist/dev/grails/${SVN_FOLDER}"
37+
38+
read -r -s -p "Password: " SVN_PASS
39+
echo
3740

3841
if [[ -z "${RELEASE_TAG}" ]]; then
3942
echo "❌ ERROR: Release Tag must not be empty." >&2
4043
exit 1
4144
fi
45+
if [[ -z "${SVN_FOLDER}" ]]; then
46+
echo "❌ ERROR: SVN folder name must not be empty." >&2
47+
exit 1
48+
fi
4249
if [[ -z "${SVN_USER}" ]]; then
4350
echo "❌ ERROR: Username must not be empty." >&2
4451
exit 1

.github/scripts/releaseJarFiles.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,20 @@
1919
# under the License.
2020
#
2121

22-
# ./releaseJarFiles.sh <staging repo description> <username> <password>
22+
# ./releaseJarFiles.sh <staging repo description> <username>
2323

2424
set -euo pipefail
2525

26-
if [[ $# -ne 3 ]]; then
27-
echo "Usage: $0 <staging repo description> <username> <password>" >&2
26+
if [[ $# -ne 2 ]]; then
27+
echo "Usage: $0 <staging repo description> <username>" >&2
2828
exit 1
2929
fi
3030

3131
NEXUS_URL="https://repository.apache.org"
3232
STAGING_DESCRIPTION="$1"
3333
NEXUS_USER="$2"
34-
NEXUS_PASS="$3"
34+
read -r -s -p "Password: " NEXUS_PASS
35+
echo
3536

3637
if [[ -z "${STAGING_DESCRIPTION}" ]]; then
3738
echo "ERROR: Staging Description must not be empty." >&2

.github/vote_templates/announce.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
The Apache Grails community is pleased to announce the release of Apache Grails Spring Security Plugin ${VERSION}.
1+
The Apache Grails community is pleased to announce the release of ${PROJECT_NAME} ${VERSION}.
22

3-
Grails is a powerful Groovy-based web application framework for the JVM built on top of Spring Boot that has many plugins to further extend its functionality.
3+
${PROJECT_DESC}
44

5-
This Grails Spring Security Plugin release is another milestone on our journey to a final 7.0 release. Users are encouraged to try the milestone to provide early feedback.
5+
More information can be found here: https://apache.github.io/${REPO_NAME}/
66

77
The release notes are available here:
8-
https://github.com/apache/grails-spring-security/releases/tag/v${VERSION}
8+
https://github.com/${REPO_SLUG}/releases/tag/${TAG}
99

1010
Apache Grails website: https://grails.apache.org/
1111

1212
Download Links: https://grails.apache.org/download.html
1313

1414
Grails Resources:
15-
- Grails Spring Security GitHub repo: https://github.com/apache/grails-spring-security
16-
- Issues: https://github.com/apache/grails-spring-security/issues
15+
- ${PROJECT_NAME} GitHub repo: https://github.com/${REPO_SLUG}
16+
- Issues: https://github.com/${REPO_SLUG}/issues
1717
- Mailing lists: https://grails.apache.org/community.html
1818

1919
Happy Coding,

.github/vote_templates/staged.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Hi Everyone,
22

3-
I am happy to start the VOTE thread for an Apache Grails Spring Security Plugin release of version ${VERSION}!
3+
I am happy to start the VOTE thread for an ${PROJECT_NAME} release of version ${VERSION}!
44

55
Release notes for the release are here:
6-
https://github.com/apache/grails-spring-security/releases/tag/v${VERSION}
6+
https://github.com/${REPO_SLUG}/releases/tag/${TAG}
77

88
The tag for this release is:
9-
https://github.com/apache/grails-spring-security/releases/tag/v${VERSION}
10-
Tag commit id: ${VERSION_COMMIT_ID}
9+
https://github.com/${REPO_SLUG}/releases/tag/${TAG}
10+
Tag commit id: ${SHA}
1111

1212
The artifacts to be voted on are located as follows (r${DIST_SVN_REVISION}):
13-
Source release: https://dist.apache.org/repos/dist/dev/grails/spring-security/${VERSION}/sources
13+
Source release: https://dist.apache.org/repos/dist/dev/grails/${SVN_FOLDER}/${VERSION}/sources
1414

1515
Release artifacts are signed with a key from the following file:
1616
https://dist.apache.org/repos/dist/release/grails/KEYS
1717

18-
Please vote on releasing this package as: Apache Grails Spring Security Plugin ${VERSION}.
18+
Please vote on releasing this package as: ${PROJECT_NAME} ${VERSION}.
1919

2020
Reminder on ASF release approval requirements for PMC members:
2121
https://www.apache.org/legal/release-policy.html#release-approval
@@ -26,9 +26,9 @@ https://www.apache.org/info/verification.html
2626
The vote is open for a minimum of 72 hours and passes if a majority of at least
2727
three +1 PMC votes are cast.
2828

29-
[ ] +1 Release Apache Grails Spring Security Plugin ${VERSION}
29+
[ ] +1 Release ${PROJECT_NAME} ${VERSION}
3030
[ ] 0 I don't have a strong opinion about this, but I assume it's ok
31-
[ ] -1 Do not release Apache Grails Spring Security Plugin ${VERSION} because...
31+
[ ] -1 Do not release ${PROJECT_NAME} ${VERSION} because...
3232

3333
Here is my vote:
3434

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
The vote has passed with <X> +1 binding votes and <Y> +1 additional votes.
2+
3+
<IF NEW EMAIL>
4+
Vote thread: <VOTE THREAD PERMALINK>
5+
</IF NEW EMAIL>
6+
7+
I'll proceed with the release and announce it shortly.
8+
9+
Thanks to everyone who participated in the vote!
10+
11+
Regards
12+
<NAME>

.github/workflows/gradle.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ jobs:
4444
with:
4545
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
4646
- name: "🏃‍♂️ Run Tests"
47-
run: ./gradlew check --max-workers=2 --refresh-dependencies --continue
47+
run: >
48+
./gradlew
49+
check
50+
--max-workers=2
51+
--refresh-dependencies
52+
--continue
53+
-PgebAtCheckWaiting
4854
functionalTests:
4955
if: ${{ !contains(github.event.head_commit.message, '[skip tests]') }}
5056
runs-on: ubuntu-24.04
@@ -65,7 +71,11 @@ jobs:
6571
with:
6672
develocity-access-key: ${{ secrets.GRAILS_DEVELOCITY_ACCESS_KEY }}
6773
- name: "🏃‍♂️ Run Different Config Functional Tests"
68-
run: ./gradlew core-examples-functional-test-app:check -DTESTCONFIG=${{ matrix.test-config }}
74+
run: >
75+
./gradlew
76+
core-examples-functional-test-app:check
77+
-DTESTCONFIG=${{ matrix.test-config }}
78+
-PgebAtCheckWaiting
6979
publish:
7080
needs: [ coreTests, functionalTests ]
7181
if: ${{ always() && github.repository_owner == 'apache' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && (needs.coreTests.result == 'success' || needs.coreTests.result == 'skipped') && (needs.functionalTests.result == 'success' || needs.functionalTests.result == 'skipped') }}

0 commit comments

Comments
 (0)