Skip to content

fix(slurm): resolve NFS mount race condition during cluster node boot #4182

fix(slurm): resolve NFS mount race condition during cluster node boot

fix(slurm): resolve NFS mount race condition during cluster node boot #4182

Workflow file for this run

# Copyright 2026 "Google LLC"
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Label External PRs
on:
# zizmor: ignore[dangerous-triggers] -- checkout uses the default ref (base
# branch), never the PR head/fork commit, so untrusted code is never checked
# out or executed. The script only reads constrained values (PR author login,
# PR number, target branch name) from the event payload into shell variables;
# no PR-supplied content (title, body, files) is interpolated or executed.
pull_request_target:
branches:
- develop
types:
- opened
- reopened
- synchronize
permissions:
issues: write
contents: read
actions: write
pull-requests: write
jobs:
label-external:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
persist-credentials: false
- name: Add external label only for develop PRs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_PULL_REQUEST_USER_LOGIN: ${{ github.event.pull_request.user.login }}
GITHUB_EVENT_PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
AUTHOR="${GITHUB_EVENT_PULL_REQUEST_USER_LOGIN}"
PR_NUMBER="${{ github.event.pull_request.number }}"
TARGET_BRANCH="${GITHUB_EVENT_PULL_REQUEST_BASE_REF}"
echo "Author: $AUTHOR"
echo "Target branch: $TARGET_BRANCH"
# Extra safety check
if [ "$TARGET_BRANCH" != "develop" ]; then
echo "Not targeting develop → skipping"
exit 0
fi
INTERNAL_USERS=$(jq -r '.[].login' cluster-toolkit-writers.json)
if echo "$INTERNAL_USERS" | grep -qx "$AUTHOR"; then
echo "Internal user → no label"
else
echo "External user → adding label"
gh api \
repos/${{ github.repository }}/issues/$PR_NUMBER/labels \
-X POST \
-F labels[]=external || true
fi