Skip to content

[CI] Remove flashinfer cache cleanup to reduce unit test runtime#7476

Merged
EmmonsCurse merged 2 commits into
PaddlePaddle:developfrom
EmmonsCurse:ci_optimize_dev_0418
Apr 21, 2026
Merged

[CI] Remove flashinfer cache cleanup to reduce unit test runtime#7476
EmmonsCurse merged 2 commits into
PaddlePaddle:developfrom
EmmonsCurse:ci_optimize_dev_0418

Conversation

@EmmonsCurse

Copy link
Copy Markdown
Collaborator

Motivation

The flashinfer cache cleanup step was introducing unnecessary overhead during unit test execution.
Since the cache removal is not required for test correctness, it leads to increased test runtime without providing additional value.

Modifications

  • Removed the explicit cleanup of the flashinfer cache directory (/root/.cache/flashinfer) in the distributed test.
  • Eliminated subprocess-based cache deletion to streamline test startup and improve overall CI efficiency.

Usage or Command

N/A

Accuracy Tests

N/A

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot

paddle-bot Bot commented Apr 18, 2026

Copy link
Copy Markdown

Thanks for your contribution!

@EmmonsCurse

Copy link
Copy Markdown
Collaborator Author

/skip-ci ci_iluvatar
/skip-ci ci_hpu
/skip-ci build_xpu
/skip-ci gpu_4cards_test
/skip-ci stable_test
/skip-ci base_test
/skip-ci logprob_test
/skip-ci pre_ce_test

PaddlePaddle-bot

This comment was marked as outdated.

@codecov-commenter

codecov-commenter commented Apr 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@5e866e3). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #7476   +/-   ##
==========================================
  Coverage           ?   73.85%           
==========================================
  Files              ?      398           
  Lines              ?    54988           
  Branches           ?     8616           
==========================================
  Hits               ?    40613           
  Misses             ?    11659           
  Partials           ?     2716           
Flag Coverage Δ
GPU 73.85% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PaddlePaddle-bot PaddlePaddle-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Code Review | 2026-04-20 23:20:16

📋 Review 摘要

PR 概述:移除分布式测试中不必要的 flashinfer 缓存清理步骤,减少 CI 单元测试运行时间
变更范围tests/layers/test_trtllm_allreduce_rms_fusion.py
影响面 TagCI

问题

未发现阻塞性问题。

总体评价

变更简洁明确,移除了与测试正确性无关的缓存清理操作(rm -rf /root/.cache/flashinfer),可有效减少 CI 测试启动开销。剩余代码中 ossubprocess 模块仍有使用,无死导入问题。

@EmmonsCurse
EmmonsCurse merged commit 3c8c82d into PaddlePaddle:develop Apr 21, 2026
46 of 48 checks passed
@EmmonsCurse
EmmonsCurse deleted the ci_optimize_dev_0418 branch April 21, 2026 03:38
xiaoguoguo626807 pushed a commit to xiaoguoguo626807/FastDeploy that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants