Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions .github/workflows/scripts/run-consecutive-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,23 @@ for VERSION in "${VERSIONS[@]}"; do
echo " Testing $TEST_COORDINATES:$VERSION"
echo "$DELIMITER"


if ! run_multiple_attempts "javac compile" 1 compileTestJava; then
break
fi

if ! run_multiple_attempts "native-image build" 1 nativeTestCompile; then
break
fi

if ! run_multiple_attempts "native-image run" 3 test; then
break
if ! run_multiple_attempts "native-image run" 1 test; then
# failing execution: bisect
if ! run_multiple_attempts "javac compile" 1 compileTestJava; then
break
fi

if ! run_multiple_attempts "java run" 1 javaTest; then
break
fi

if ! run_multiple_attempts "native-image build" 1 nativeTestCompile; then
break
fi

if ! run_multiple_attempts "native-image run" 3 test; then
break
fi
fi

echo "PASSED:$VERSION"
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/verify-new-library-version-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Verify compatibility with latest library versions"

on:
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -219,6 +219,7 @@ jobs:
FAILED_VERSION="${{ steps.runtests.outputs.failed_version }}"
REPO="${{ github.repository }}"
TITLE="${{ env.ISSUE_TITLE_PREFIX }}${{ steps.runtests.outputs.failure_type }}${{ env.ISSUE_TITLE_MIDDLE }}${{ matrix.item.name }}:$FAILED_VERSION"
FAILURE_LABEL="fails-$(echo "${{ steps.runtests.outputs.failure_type }}" | sed 's/ /-/g')"

BODY_FILE=$(mktemp)
# Use single-quoted here-doc to disable any shell expansion of log content
Expand All @@ -237,8 +238,13 @@ jobs:
echo "Updating existing issue #$ISSUE_NUMBER"
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --body-file "$BODY_FILE"
else
echo "Creating new issue"
gh issue create --repo "$REPO" --title "$TITLE" --body-file "$BODY_FILE"
echo "Creating a new issue"
gh issue create \
--repo "$REPO" \
--title "$TITLE" \
--body-file "$BODY_FILE" \
--label "library-unsupported-version" \
--label "$FAILURE_LABEL"
fi

rm "$BODY_FILE"
Expand All @@ -249,7 +255,6 @@ jobs:
permissions: write-all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ always() }}
needs:
- get-all-libraries
- test-all-metadata
Expand All @@ -263,4 +268,9 @@ jobs:
git config --local user.name "Github Actions"
git fetch origin ${{ needs.get-all-libraries.outputs.branch }}
git checkout ${{ needs.get-all-libraries.outputs.branch }}
gh pr create --title "[Automation] Update supported library versions $(date '+%Y-%m-%dT%H:%M')" --body "This pull request updates supported versions of the existing libraries in the repo"
gh pr create \
--title "[Automation] Update supported library versions $(date '+%Y-%m-%dT%H:%M')" \
--body "This pull request updates supported versions of the existing libraries in the repo" \
--reviewer "kimeta" \
--assignee "vjovanov" \
--label "library-bulk-update"
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static List<Map> testAllCommands(String gradleCmd, String target) {

tasks.register('testAllParallel') { t ->
t.group = "verification"
t.setDescription("For each target, run clean and pullAllowedDockerImages first (sequentially), then run style checks and individual testing stages (checkstyle, spotlessCheck, checkMetadataFiles, fetchExistingLibrariesWithNewerVersions, test) concurrently with isolated logs. Options: -Pcoordinates to specify a single coordinate or 1/64 for the pull step; -Pparallelism to control the number of concurrent tasks.")
t.setDescription("For each target, run clean and pullAllowedDockerImages first (sequentially), then run style checks and individual testing stages (${testAllCommands('', '').collect { it.name }.join(', ')}) concurrently with isolated logs. Options: -Pcoordinates to specify a single coordinate or 1/64 for the pull step; -Pparallelism to control the number of concurrent tasks.")

doLast {
def selectedArtifact = "org.postgresql:postgresql:42.7.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ Provider<Task> checkMetadataFiles = tasks.register("checkMetadataFiles") { task
task.setGroup(METADATA_GROUP)
} as Provider<Task>


tasks.named("check").configure {
dependsOn(checkstyle)
}
Expand Down
Loading