Skip to content

[WIP][Distributed] FlashEP: A Flexible and General Strategy for Deep Communication-Computation Overlap for Mixture-of-Experts #23587

[WIP][Distributed] FlashEP: A Flexible and General Strategy for Deep Communication-Computation Overlap for Mixture-of-Experts

[WIP][Distributed] FlashEP: A Flexible and General Strategy for Deep Communication-Computation Overlap for Mixture-of-Experts #23587

Workflow file for this run

name: Codestyle-Check
on:
pull_request:
branches: ["develop", "fleety_12"]
jobs:
pre-commit:
name: Pre Commit
if: ${{ github.repository_owner == 'PaddlePaddle' }}
runs-on:
group: APPROVAL
env:
PR_ID: ${{ github.event.pull_request.number }}
BRANCH: develop
steps:
- name: Cleanup
run: |
rm -rf * .[^.]*
- name: Checkout base repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 1000
- name: Check bypass
id: check-bypass
uses: ./.github/actions/check-bypass
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
workflow-name: codestyle
- name: Merge PR to test branch
if: steps.check-bypass.outputs.can-skip != 'true'
run: |
git fetch origin pull/${PR_ID}/merge
git checkout -b test FETCH_HEAD
- name: Setup python3.12
if: steps.check-bypass.outputs.can-skip != 'true'
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
if: steps.check-bypass.outputs.can-skip != 'true'
run: |
pip install pre-commit==2.17.0 cpplint==1.6.0 clang-format==13.0.0
pip install ast-grep-cli==0.39.9 # This version should be consistent with the one in .pre-commit-config.yaml
- name: Run ast-grep unit tests
if: steps.check-bypass.outputs.can-skip != 'true'
run: |
ast-grep test
- name: Check pre-commit
if: steps.check-bypass.outputs.can-skip != 'true'
env:
SKIP_CLANG_TIDY_CHECK: "ON"
run: |
set +e
bash -x tools/codestyle/pre_commit.sh;EXCODE=$?
exit $EXCODE