Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/integration/defs/agg_unit_mem_df.csv
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,14 @@ unittest/_torch/misc,NVIDIA B200,4,
unittest/_torch/speculative/test_eagle3.py,NVIDIA B200,4,
unittest/_torch/moe/kernels/parallel,NVIDIA B200,16,
unittest/_torch/kernels/parallel,NVIDIA B200,16,
unittest/_torch/kernels/parallel/test_indexer_topk.py -m post_merge,NVIDIA B200,16,
unittest/_torch/kernels/parallel/test_gvr_selfsampling_topk.py -m post_merge,NVIDIA B200,16,
unittest/kv_cache_manager_v2_tests,NVIDIA B200,8,
unittest/_torch/attention,NVIDIA H100,4,
unittest/_torch/misc,NVIDIA H100,4,
unittest/_torch/moe/kernels/parallel,NVIDIA H100,16,
unittest/_torch/kernels/parallel,NVIDIA H100,16,
unittest/_torch/kernels/parallel/test_gvr_selfsampling_topk.py -m post_merge,NVIDIA H100,16,
unittest/_torch/kernels/parallel_hw_agnostic,NVIDIA H100,16,
unittest/_torch/flashinfer/test_trtllm_flashinfer_symbol_collision.py,NVIDIA H100 PCIe,1,
unittest/_torch/attention,NVIDIA GB300,4,
Expand Down
19 changes: 18 additions & 1 deletion tests/integration/defs/test_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,22 @@ def _parallel_config_key(case: str) -> str:
return re.sub(r'\s+--ignore=\S+', '', case).strip()


def _stage_unittest_markexpr(markexpr: Optional[str],
stage_name: Optional[str]) -> Optional[str]:
"""The unittest mark expression for a CI stage.

Unit tests marked ``post_merge`` run only in Post-Merge stages, which
``getMakoArgsFromStageName`` in ``jenkins/L0_Test.groovy`` recognizes by
"Post-Merge" in the stage name. Every other CI stage leaves them out. A run
without a stage name (a local run) keeps the expression unchanged.
"""
if not stage_name or "Post-Merge" in stage_name:
return markexpr
if markexpr:
return f"({markexpr}) and not post_merge"
return "not post_merge"


def _unittest_case_filename(case: str) -> str:
"""Keep artifacts readable and distinguish full entries with a shared prefix."""
prefix = re.sub(r'[/\s"\']+', '-', case)[:63]
Expand Down Expand Up @@ -236,7 +252,8 @@ def test_unittests_v2(llm_root, llm_venv, case: str, output_dir, request):

waives_file = request.config.getoption("--waives-file")
run_ray = request.config.getoption("--run-ray")
unittest_markexpr = request.config.getoption("--unittest-markexpr")
unittest_markexpr = _stage_unittest_markexpr(
request.config.getoption("--unittest-markexpr"), my_test_prefix)

num_workers = 1

Expand Down
4 changes: 4 additions & 0 deletions tests/integration/test_lists/test-db/l0_b200.yml
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ l0_b200:
# Kimi K3 routing shape (896 experts, top_k 16) on the TRTLLM backend.
# Single-GPU, random weights; too heavy for pre_merge.
- unittest/_torch/moe/test_moe_backend.py -k "kimi_k3_shape"
# The indexer Top-K grid cases outside their modules' PRE_MERGE_CELLS; the cells run in
# the kernels/parallel pre_merge entry.
- unittest/_torch/kernels/parallel/test_indexer_topk.py -m post_merge TIMEOUT (90)
- unittest/_torch/kernels/parallel/test_gvr_selfsampling_topk.py -m post_merge TIMEOUT (90)
# Keep new full-corpus EAGLE-3 baselines in post_merge until repeated green
# runs establish stable references.
- accuracy/test_llm_api_pytorch.py::TestGPTOSS::test_eagle3_1gpu[cutlass-one_model] TIMEOUT (60)
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/test_lists/test-db/l0_gb300.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ l0_gb300:
- accuracy/test_llm_api_pytorch.py::TestQwen3_8_Flash_Next::test_nvfp4_adp4_megamoe_cutedsl_ple_offload
- accuracy/test_disaggregated_serving.py::TestQwen3_8_Flash_Next::test_fp8_nixl_python[prefix_cache]
- unittest/kv_cache_manager_v2_tests/test_kv_cache_manager_v2.py::TestSparseResolve::test_colliding_selections_preserve_slots_and_eviction
# moe/kernels/parallel runs on B300 (l0_b300), the same SM103 kernels.
- unittest/_torch/kernels/parallel TIMEOUT (90)
# moe/kernels/parallel and the indexer Top-K kernel tests run on B300 (l0_b300), the same
# SM103 kernels; the full Top-K grids run post-merge on GB300 (l0_gb300_multi_gpus).
- unittest/_torch/kernels/parallel --ignore=unittest/_torch/kernels/parallel/test_indexer_topk.py --ignore=unittest/_torch/kernels/parallel/test_gvr_selfsampling_topk.py TIMEOUT (90)
- unittest/_torch/misc/test_autotuner.py::test_nvmmh_tactics_compute_the_product
- unittest/_torch/visual_gen/kernels/parallel
- unittest/_torch/visual_gen/test_attention_deco.py
Expand Down
4 changes: 4 additions & 0 deletions tests/integration/test_lists/test-db/l0_h100.yml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ l0_h100:
- unittest/_torch/moe/test_moe_load_balancer.py
- unittest/_torch/moe/fused_moe/test_deepgemm_fused_gather_finalize.py
- unittest/_torch/moe/fused_moe/test_deepgemm_fused_expand_quant.py
# SM90 runs of the GVR Top-K grid cases outside PRE_MERGE_CELLS; the cells run in the
# kernels/parallel pre_merge entry. test_indexer_topk.py needs no entry: its other cases
# skip on SM90.
- unittest/_torch/kernels/parallel/test_gvr_selfsampling_topk.py -m post_merge TIMEOUT (90)
# Documentation link validation (CPU-only, no GPU needed)
- test_doc.py::test_http_url_validity
- test_doc.py::test_relative_path_validity
Expand Down
Loading
Loading