Skip to content

Commit 41f9fbb

Browse files
github-actions: kernelci-trigger: Add skip_ltp input and metadata support
Add skip_ltp input to the trigger workflow alongside the existing skip_kabi and skip_kselftests inputs. Validate, pass through env, and save to pr_metadata/skip_ltp.txt so the main workflow can read it via the pre-setup job's artifact-based metadata. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Shreeya Patel <spatel@ciq.com>
1 parent 4435458 commit 41f9fbb

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/kernel-build-and-test-multiarch-trigger.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
required: false
1919
type: boolean
2020
default: false
21+
skip_ltp:
22+
description: 'Skip the LTP test stage'
23+
required: false
24+
type: boolean
25+
default: false
2126

2227
permissions:
2328
contents: read
@@ -44,6 +49,7 @@ jobs:
4449
ARCHITECTURES: ${{ inputs.architectures }}
4550
SKIP_KABI: ${{ inputs.skip_kabi }}
4651
SKIP_KSELFTESTS: ${{ inputs.skip_kselftests }}
52+
SKIP_LTP: ${{ inputs.skip_ltp }}
4753
COMMIT_MSG: ${{ github.event.head_commit.message }}
4854
PR_TITLE: ${{ github.event.pull_request.title }}
4955
run: |
@@ -138,6 +144,12 @@ jobs:
138144
exit 1
139145
fi
140146
147+
# Validate skip_ltp - must be exactly 'true' or 'false'
148+
if ! [[ "$SKIP_LTP" =~ ^(true|false)$ ]]; then
149+
echo "❌ Invalid skip_ltp value: $SKIP_LTP"
150+
exit 1
151+
fi
152+
141153
# Pass validated values to environment
142154
echo "IS_PR=$IS_PR" >> "$GITHUB_ENV"
143155
echo "BASE_REF=$BASE_REF" >> "$GITHUB_ENV"
@@ -146,6 +158,7 @@ jobs:
146158
echo "ARCHITECTURES=$ARCHITECTURES" >> "$GITHUB_ENV"
147159
echo "SKIP_KABI=$SKIP_KABI" >> "$GITHUB_ENV"
148160
echo "SKIP_KSELFTESTS=$SKIP_KSELFTESTS" >> "$GITHUB_ENV"
161+
echo "SKIP_LTP=$SKIP_LTP" >> "$GITHUB_ENV"
149162
150163
- name: Clone base branch
151164
if: github.event_name == 'pull_request'
@@ -194,6 +207,7 @@ jobs:
194207
echo "$ARCHITECTURES" > pr_metadata/architectures.txt
195208
echo "$SKIP_KABI" > pr_metadata/skip_kabi.txt
196209
echo "$SKIP_KSELFTESTS" > pr_metadata/skip_kselftests.txt
210+
echo "$SKIP_LTP" > pr_metadata/skip_ltp.txt
197211
echo "$IS_PR" > pr_metadata/is_pr.txt
198212
199213
# Create a checksum of metadata for integrity verification

0 commit comments

Comments
 (0)