Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
dee73d91
Commit
dee73d91
authored
Feb 11, 2025
by
Anant Sharma
Committed by
GitHub
Feb 11, 2025
Browse files
ci: add path checks for vllm framework testing (#153)
parent
b705549c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
43 deletions
+82
-43
.github/workflows/trigger_ci.yml
.github/workflows/trigger_ci.yml
+82
-0
.github/workflows/trigger_ci_pull.yml
.github/workflows/trigger_ci_pull.yml
+0
-43
No files found.
.github/workflows/trigger_ci
_push
.yml
→
.github/workflows/trigger_ci.yml
View file @
dee73d91
...
@@ -13,33 +13,70 @@
...
@@ -13,33 +13,70 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
name
:
NVIDIA Test Lab
(push)
Validation
name
:
NVIDIA Test Lab Validation
on
:
on
:
push
:
push
:
branches
:
branches
:
-
'
main
'
-
main
paths-ignore
:
paths-ignore
:
-
'
deploy/Kubernetes/**'
-
'
deploy/Kubernetes/**'
-
'
README.md'
-
'
**/*.md'
-
'
.github/**'
pull_request
:
paths-ignore
:
-
'
deploy/Kubernetes/**'
-
'
**/*.md'
jobs
:
jobs
:
mirror_repo
:
mirror_repo
:
name
:
Mirror Repository to GitLab
environment
:
GITLAB
environment
:
GITLAB
runs-on
:
self-hosted
runs-on
:
self-hosted
steps
:
steps
:
-
name
:
Check
out
the
repository
to the runner
-
name
:
Checkout repository
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
-
name
:
Sync Mirror Repository
-
name
:
Sync Mirror Repository
run
:
./.github/workflows/mirror_repo.sh ${{ secrets.TOKEN }} ${{ secrets.MIRROR_URL }}
run
:
./.github/workflows/mirror_repo.sh ${{ secrets.TOKEN }} ${{ secrets.MIRROR_URL }}
trigger-ci
:
trigger-ci
:
name
:
Trigger CI Pipeline
environment
:
GITLAB
environment
:
GITLAB
needs
:
mirror_repo
needs
:
mirror_repo
runs-on
:
self-hosted
runs-on
:
self-hosted
steps
:
steps
:
-
name
:
Detect source code changes
id
:
src_changes
uses
:
dorny/paths-filter@v3
with
:
filters
:
|
vllm:
- 'examples/python/llm/**'
- 'container/deps/requirements.vllm.txt'
- 'container/deps/vllm/**'
-
name
:
Trigger Pipeline
-
name
:
Trigger Pipeline
run
:
|
run
:
|
#!/bin/bash
#!/bin/bash -e
curl --fail-with-body --request POST --form token=${{ secrets.PIPELINE_TOKEN }} -F ref=${GITHUB_REF} "${{ secrets.PIPELINE_URL }}"
declare -A ci_variables
if [ "${{ steps.src_changes.outputs.vllm }}" == "true" ]; then
ci_variables["RUN_VLLM"]="true"
fi
ci_args=""
for key in "${!ci_variables[@]}"; do
ci_args+="--form variables[$key]=${ci_variables[$key]} "
done
echo "Running Pipeline with Variables: $ci_args"
if [ "${{ github.event_name }}" = "pull_request" ]; then
REF="${{ github.event.pull_request.head.ref }}"
else
REF="${{ github.ref }}"
fi
curl --fail-with-body \
--request POST \
--form token=${{ secrets.PIPELINE_TOKEN }} \
--form ref=${REF} \
$ci_args \
"${{ secrets.PIPELINE_URL }}"
.github/workflows/trigger_ci_pull.yml
deleted
100644 → 0
View file @
b705549c
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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
:
NVIDIA Test Lab (pull) Validation
on
:
pull_request
:
paths-ignore
:
-
deploy/Kubernetes/**
-
'
README.md'
-
'
.github/**'
jobs
:
mirror_repo
:
environment
:
GITLAB
runs-on
:
self-hosted
steps
:
-
name
:
Check out the repository to the runner
uses
:
actions/checkout@v4
-
name
:
Sync Mirror Repository
run
:
./.github/workflows/mirror_repo.sh ${{ secrets.TOKEN }} ${{ secrets.MIRROR_URL }}
trigger-ci
:
environment
:
GITLAB
needs
:
mirror_repo
runs-on
:
self-hosted
steps
:
-
name
:
Trigger Pipeline
run
:
|
#!/bin/bash
curl --fail-with-body --request POST --form token=${{ secrets.PIPELINE_TOKEN }} -F ref=${GITHUB_HEAD_REF} "${{ secrets.PIPELINE_URL }}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment