A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 7, 16:30 UTC
Remove `bc-lint` (#35274)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Harry Mellor committed
Feb 26, 2026 at 11:01 UTC
01914445b0513ab355b1275acec2f2e5da4d91d6
5 files changed
-118
.github/.bc-linter.yml
deleted
-24
@@ -1,24 +0,0 @@
1
-# doc: https://github.com/pytorch/test-infra/blob/main/tools/stronghold/docs/bc_linter_config.md
2
-version: 1
3
-paths:
4
-# We temporarily disable globally, and will only enable with `annotations.include`
5
-# include:
6
-# - "vllm/v1/attetion/*.py"
7
-# - "vllm/v1/core/*.py"
8
-exclude:
9
- - "**/*.py"
10
-
11
-scan:
12
- functions: true # check free functions and methods
13
- classes: true # check classes/dataclasses
14
- public_only: true # ignore names starting with "_" at any level
15
-
16
-annotations:
17
- include: # decorators that force‑include a symbol
18
- - name: "bc_linter_include" # matched by simple name or dotted suffix
19
- propagate_to_members: false # for classes, include methods/inner classes
20
- exclude: # decorators that force‑exclude a symbol
21
- - name: "bc_linter_skip" # matched by simple name or dotted suffix
22
- propagate_to_members: true # for classes, exclude methods/inner classes
23
-
24
-excluded_violations: [] # e.g. ["ParameterRenamed", "FieldTypeChanged"]
.github/workflows/bc-lint.yml
deleted
-29
@@ -1,29 +0,0 @@
1
-name: BC Lint
2
-
3
-on:
4
- pull_request:
5
- types:
6
- - opened
7
- - synchronize
8
- - reopened
9
- - labeled
10
- - unlabeled
11
-
12
-jobs:
13
- bc_lint:
14
- if: github.repository_owner == 'vllm-project'
15
- runs-on: ubuntu-latest
16
- steps:
17
- - name: Run BC Lint Action
18
- uses: pytorch/test-infra/.github/actions/bc-lint@main
19
- with:
20
- repo: ${{ github.event.pull_request.head.repo.full_name }}
21
- base_sha: ${{ github.event.pull_request.base.sha }}
22
- head_sha: ${{ github.event.pull_request.head.sha }}
23
- suppression: ${{ contains(github.event.pull_request.labels.*.name, 'suppress-bc-linter') }}
24
- docs_link: 'https://github.com/pytorch/test-infra/wiki/BC-Linter'
25
- config_dir: .github
26
-
27
-concurrency:
28
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
29
- cancel-in-progress: true
vllm/__init__.py
-6
@@ -14,8 +14,6 @@ import typing
14
import vllm.env_override # noqa: F401
15
16
MODULE_ATTRS = {
17
- "bc_linter_skip": "._bc_linter:bc_linter_skip",
18
- "bc_linter_include": "._bc_linter:bc_linter_include",
17
"AsyncEngineArgs": ".engine.arg_utils:AsyncEngineArgs",
18
"EngineArgs": ".engine.arg_utils:EngineArgs",
19
"AsyncLLMEngine": ".engine.async_llm_engine:AsyncLLMEngine",
@@ -62,8 +60,6 @@ if typing.TYPE_CHECKING:
60
from vllm.pooling_params import PoolingParams
61
from vllm.sampling_params import SamplingParams
62
from vllm.v1.executor.ray_utils import initialize_ray_cluster
65
-
66
- from ._bc_linter import bc_linter_include, bc_linter_skip
63
else:
64
65
def __getattr__(name: str) -> typing.Any:
@@ -79,8 +75,6 @@ else:
75
76
__all__ = [
77
"__version__",
82
- "bc_linter_skip",
83
- "bc_linter_include",
78
"__version_tuple__",
79
"LLM",
80
"ModelRegistry",
vllm/_bc_linter.py
deleted
-54
@@ -1,54 +0,0 @@
1
-# SPDX-License-Identifier: Apache-2.0
2
-# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
-# vllm/_bc_linter.py
4
-from collections.abc import Callable
5
-from typing import Any, TypeVar, overload
6
-
7
-T = TypeVar("T")
8
-
9
-
10
-@overload
11
-def bc_linter_skip(obj: T) -> T: ...
12
-
13
-
14
-@overload
15
-def bc_linter_skip(*, reason: str | None = ...) -> Callable[[T], T]: ...
16
-
17
-
18
-def bc_linter_skip(obj: Any = None, *, reason: str | None = None):
19
- """
20
- No-op decorator to mark symbols/files for BC-linter suppression.
21
-
22
- Usage:
23
- @bc_linter_skip
24
- def legacy_api(...): ...
25
- """
26
-
27
- def _wrap(x: T) -> T:
28
- return x
29
-
30
- return _wrap if obj is None else obj
31
-
32
-
33
-@overload
34
-def bc_linter_include(obj: T) -> T: ...
35
-
36
-
37
-@overload
38
-def bc_linter_include(*, reason: str | None = ...) -> Callable[[T], T]: ...
39
-
40
-
41
-def bc_linter_include(obj: Any = None, *, reason: str | None = None):
42
- """
43
- Usage:
44
- @bc_linter_include
45
- def public_api(...): ...
46
- """
47
-
48
- def _wrap(x: T) -> T:
49
- return x
50
-
51
- return _wrap if obj is None else obj
52
-
53
-
54
-__all__ = ["bc_linter_skip", "bc_linter_include"]
vllm/v1/core/sched/output.py
-5
@@ -5,8 +5,6 @@ from dataclasses import dataclass
5
from functools import cached_property
6
from typing import TYPE_CHECKING
7
8
-from vllm._bc_linter import bc_linter_include
9
-
8
if TYPE_CHECKING:
9
import numpy as np
10
import numpy.typing as npt
@@ -29,7 +27,6 @@ else:
27
Request = object
28
29
32
-@bc_linter_include
30
@dataclass
31
class NewRequestData:
32
req_id: str
@@ -109,7 +106,6 @@ class NewRequestData:
106
)
107
108
112
-@bc_linter_include
109
@dataclass
110
class CachedRequestData:
111
req_ids: list[str]
@@ -179,7 +175,6 @@ class CachedRequestData:
175
)
176
177
182
-@bc_linter_include
178
@dataclass
179
class SchedulerOutput:
180
# list of the requests that are scheduled for the first time.