mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

There are a bunch of issues on that platform with recent V8 versions and we don't have the capacity to fix them. PR-URL: https://github.com/nodejs/node/pull/58071 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
name: Label Flaky Test Issues
|
|
|
|
on:
|
|
issues:
|
|
types: [labeled]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
label:
|
|
if: github.event.label.name == 'flaky-test'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
steps:
|
|
- name: Extract labels
|
|
id: extract-labels
|
|
env:
|
|
BODY: ${{ github.event.issue.body }}
|
|
run: |
|
|
BODY="${BODY//$'\n'/'\n'}"
|
|
|
|
declare -A platform2label
|
|
|
|
platform2label["AIX"]="aix";
|
|
platform2label["FreeBSD"]="freebsd";
|
|
platform2label["Linux ARM64"]="linux";
|
|
platform2label["Linux PPC64LE"]="ppc";
|
|
platform2label["Linux s390x"]="s390";
|
|
platform2label["Linux x64"]="linux";
|
|
platform2label["macOS ARM64"]="macos";
|
|
platform2label["macOS x64"]="macos";
|
|
platform2label["SmartOS"]="smartos";
|
|
platform2label["Windows"]="windows";
|
|
|
|
# sed is cleaning up the edges
|
|
PLATFORMS=$(echo $BODY | sed 's/^.*Platform\\n\\n//' | sed 's/\(, Other\)\?\\n\\n.*$//') 2> /dev/null
|
|
readarray -d , -t list <<< "$PLATFORMS"
|
|
labels=
|
|
for row in "${list[@]}"; do \
|
|
platform=$(echo $row | xargs); \
|
|
labels="${labels}${platform2label[$platform]},"; \
|
|
done;
|
|
|
|
echo "LABELS=${labels::-1}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Add labels
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NUMBER: ${{ github.event.issue.number }}
|
|
run: gh issue edit "$NUMBER" --repo ${{ github.repository }} --add-label "${{ steps.extract-labels.outputs.LABELS }}"
|