Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfarley committed Nov 21, 2023
1 parent a393c48 commit a5befd6
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions tooling/build_autotriage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,20 @@ declare -a platformStart
# The last jdk major version on that platform ("99" for ongoing).
declare -a platformEnd

temurinPlatforms+=("aix-ppc64"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("alpine-linux-aarch64"); platformStart+=21; platformEnd+=99
temurinPlatforms+=("alpine-linux-x64"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("linux-aarch64"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("linux-arm"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("linux-ppc64le"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("linux-s390x"); platformStart+=11; platformEnd+=99
temurinPlatforms+=("linux-x64"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("mac-aarch64"); platformStart+=11; platformEnd+=99
temurinPlatforms+=("mac-x64"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("solaris-sparcv9"); platformStart+=8; platformEnd+=8
temurinPlatforms+=("solaris-x64"); platformStart+=8; platformEnd+=8
temurinPlatforms+=("windows-x64"); platformStart+=8; platformEnd+=99
temurinPlatforms+=("windows-x86-32"); platformStart+=8; platformEnd+=17

for platty in ${temurinPlatforms[@]}
do
echo "platform: ${platty}"
done
temurinPlatforms+=("aix-ppc64"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("alpine-linux-aarch64"); platformStart+=(21); platformEnd+=(99)
temurinPlatforms+=("alpine-linux-x64"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("linux-aarch64"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("linux-arm"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("linux-ppc64le"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("linux-s390x"); platformStart+=(11); platformEnd+=(99)
temurinPlatforms+=("linux-x64"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("mac-aarch64"); platformStart+=(11); platformEnd+=(99)
temurinPlatforms+=("mac-x64"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("solaris-sparcv9"); platformStart+=(8); platformEnd+=(8)
temurinPlatforms+=("solaris-x64"); platformStart+=(8); platformEnd+=(8)
temurinPlatforms+=("windows-x64"); platformStart+=(8); platformEnd+=(99)
temurinPlatforms+=("windows-x86-32"); platformStart+=(8); platformEnd+=(17)

errorLog() {
echo "ERROR FOUND: Adding this issue to issues list: $1"
Expand Down Expand Up @@ -136,7 +131,6 @@ identifyFailedBuildsInTimerPipelines() {

# Now iterate over platforms to make sure we're launching every platform we should.
triageThesePlatforms=""
listylist=""
for p in "${!temurinPlatforms[@]}"
do
if [[ shorterListOfBuilds =~ .*\"buildName\"\:\"jdk${arrayOfAllJDKVersions[v]}${arrayOfUs[v]}\-${temurinPlatforms[p]}\-temurin\".* ]]; then
Expand All @@ -158,13 +152,10 @@ identifyFailedBuildsInTimerPipelines() {
fi
# If we get to this stage of the loop, then this is a platform that was both *meant* to be built, and *was* built (or attempted).
triageThesePlatforms="${triageThesePlatforms},jdk${arrayOfAllJDKVersions[v]}${arrayOfUs[v]}-${temurinPlatforms[p]}-temurin,"
listylist="${listylist},${p}"
done

echo "Platforms validated. Identifying build numbers for these platforms: ${triageThesePlatforms:1:-1}"

echo "Listy: ${listylist}"

for b in "${!listOfBuildNames[@]}"
do
if [[ $triageThesePlatforms =~ .*,${listOfBuildNames[$b]},.* ]]; then
Expand Down

0 comments on commit a5befd6

Please sign in to comment.