chore: import upstream snapshot with attribution
Docker Image CI / build-ubuntu2004 (push) Waiting to run

This commit is contained in:
wehub-resource-sync
2026-07-13 13:36:55 +08:00
commit c8a779b1bb
1887 changed files with 3245738 additions and 0 deletions
+100
View File
@@ -0,0 +1,100 @@
#
# SPDX-FileCopyrightText: Copyright (c) 1993-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.
#
# A workflow to trigger ci on hybrid infra (github + self hosted runner)
name: Blossom-CI
on:
issue_comment:
types: [created]
workflow_dispatch:
inputs:
platform:
description: "runs-on argument"
required: false
args:
description: "argument"
required: false
jobs:
Authorization:
name: Authorization
runs-on: blossom
outputs:
args: ${{ env.args }}
# This job only runs for pull request comments
if: |
github.event.comment.body == '/blossom-ci' &&
(
github.actor == 'rajeevsrao' ||
github.actor == 'kevinch-nv' ||
github.actor == 'ttyio' ||
github.actor == 'zerollzeng' ||
github.actor == 'nvpohanh' ||
github.actor == 'poweiw'
)
steps:
- name: Check if comment is issued by authorized person
run: blossom-ci
env:
OPERATION: "AUTH"
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_KEY_DATA: ${{ secrets.BLOSSOM_KEY }}
Vulnerability-scan:
name: Vulnerability scan
needs: [Authorization]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
repository: ${{ fromJson(needs.Authorization.outputs.args).repo }}
ref: ${{ fromJson(needs.Authorization.outputs.args).ref }}
lfs: "true"
- name: Run blossom action
uses: NVIDIA/blossom-action@main
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_KEY_DATA: ${{ secrets.BLOSSOM_KEY }}
with:
args1: ${{ fromJson(needs.Authorization.outputs.args).args1 }}
args2: ${{ fromJson(needs.Authorization.outputs.args).args2 }}
args3: ${{ fromJson(needs.Authorization.outputs.args).args3 }}
Job-trigger:
name: Start ci job
needs: [Vulnerability-scan]
runs-on: blossom
steps:
- name: Start ci job
run: blossom-ci
env:
OPERATION: "START-CI-JOB"
CI_SERVER: ${{ secrets.CI_SERVER }}
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Upload-Log:
name: Upload log
runs-on: blossom
if: github.event_name == 'workflow_dispatch'
steps:
- name: Jenkins log for pull request ${{ fromJson(github.event.inputs.args).pr }} (click here)
run: blossom-ci
env:
OPERATION: "POST-PROCESSING"
CI_SERVER: ${{ secrets.CI_SERVER }}
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+18
View File
@@ -0,0 +1,18 @@
name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-ubuntu2004:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build TensorRT-OSS ubuntu20.04 container
run: docker build . --file docker/ubuntu-20.04.Dockerfile --build-arg uid=1000 --build-arg gid=1000 --tag tensorrt-ubuntu20.04:$(date +%s)
+16
View File
@@ -0,0 +1,16 @@
name: Remove feedback label on comment
on:
issue_comment:
types: [created]
jobs:
remove_label:
runs-on: ubuntu-latest
if: github.event.issue.user.id == github.event.comment.user.id
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
labels: "waiting for feedback"
+46
View File
@@ -0,0 +1,46 @@
name: Label New Issues
on:
issues:
types: [opened]
permissions:
issues: write
contents: read
jobs:
label-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout private action repository
uses: actions/checkout@v4
with:
repository: NVIDIA/goggles_action
path: ./.github/actions/goggles_action # local path to store the action
ref: v1.3.0
- name: AI Label Issue
uses: ./.github/actions/goggles_action/actions/llm_label
with:
ACTION_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LLM_MODEL_NAME: ${{ secrets.LLM_MODEL_NAME }}
LLM_TOKEN_SERVER_URL: ${{ secrets.LLM_TOKEN_SERVER_URL }}
LLM_TOKEN_CLIENT_ID: ${{ secrets.LLM_TOKEN_CLIENT_ID }}
LLM_TOKEN_CLIENT_SECRET: ${{ secrets.LLM_TOKEN_CLIENT_SECRET }}
LLM_GENERATE_URL: ${{ secrets.LLM_GENERATE_URL }}
LLM_TOKEN_SCOPE: ${{ secrets.LLM_TOKEN_SCOPE }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}
ISSUE_BODY: ${{ github.event.issue.body }}
GITHUB_API_URL: ${{ github.api_url }}
ACTIONS_STEP_VERBOSE: false
EXCLUDED_LABELS: "Investigating,internal-bug-tracked,stale,triaged,wontfix"
LLM_SYSTEM_PROMPT: |
You are an expert GitHub issue labeler. Your task is to analyze the provided issue title, issue body, and a list of available labels with their descriptions.
Based on this information, select the single most appropriate label from the list that best captures the primary issue or request.
Prefer selecting only one label that represents the main topic or problem. Only suggest multiple labels if the issue genuinely spans multiple distinct areas that are equally important.
Respond with ONLY the chosen label name (e.g., 'bug', 'feature-request') or comma-separated names if multiple are truly needed.
If no labels seem appropriate, respond with 'NONE'.
Do not add any other text, explanation, or markdown formatting.
+28
View File
@@ -0,0 +1,28 @@
name: Label and close inactive issues
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Issue has not received an update in over 14 days. Adding stale label. Please note the issue will be closed in 14 days after being marked stale if there is no update.'
stale-pr-message: 'PR has not received an update in over 14 days. Adding stale label. Please note the PR will be closed in 14 days after being marked stale if there is no update.'
close-issue-message: 'This issue was closed because it has been 14 days without activity since it has been marked as stale.'
close-pr-message: 'This PR was closed because it has been 14 days without activity since it has been marked as stale.'
days-before-issue-stale: 14
days-before-close: 14
only-labels: 'waiting for feedback'
labels-to-add-when-unstale: 'investigating'
labels-to-remove-when-unstale: 'stale,waiting for feedback'
stale-issue-label: 'stale'
stale-pr-label: 'stale'