mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1368] [MERGED] [CI] Improve Code Formatting Workflow #2199
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#2199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/1368
Author: @staryxchen
Created: 1/13/2026
Status: ✅ Merged
Merged: 1/14/2026
Merged by: @staryxchen
Base:
main← Head:feat/add-code-format-script📝 Commits (2)
e5611a3chore: add code formatting script and update PR templated99acbeci: simplify clang-format workflow by using script📊 Changes
3 files changed (+279 additions, -42 deletions)
View changed files
📝
.github/pull_request_template.md(+1 -0)📝
.github/workflows/ci.yml(+22 -42)➕
scripts/code_format.sh(+256 -0)📄 Description
Summary
This PR improves the code formatting workflow by introducing a unified formatting script and updating the CI pipeline to use it.
Changes
1. Add Code Formatting Script and Update PR Template
New script:
scripts/code_format.sh- A comprehensive bash script for formatting C/C++ code using clang-format--all)--check) to verify formatting without modifying files--base)cachelib_memory_allocatordirectoryUpdated PR template: Added a checklist item reminding developers to run
./scripts/code_format.shbefore submitting2. Simplify CI Workflow by Using the Shared Script
code_format.sh --checkinstead of inline shell commandscode_format.sh) for all formatting needs--checkmode and CI checks behave identicallyBenefits
Usage
Type of Change
How Has This Been Tested?
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.