Skip to content

fix(ci): clean Ascend runner workspace before checkout - #8

Open
wolala3434 wants to merge 33 commits into
mainfrom
fix/ascend-runner-cleanup
Open

fix(ci): clean Ascend runner workspace before checkout#8
wolala3434 wants to merge 33 commits into
mainfrom
fix/ascend-runner-cleanup

Conversation

@wolala3434

Copy link
Copy Markdown
Collaborator

Summary

Add the same pre-checkout workspace cleanup used by the CUDA and MetaX image workflows to the trusted Ascend build job.

Container jobs can leave root-owned files such as .gemini in the self-hosted runner workspace. Without this cleanup, actions/checkout fails with EACCES before the image build starts.

Validation

tengqm and others added 30 commits July 18, 2026 19:16
…#1240)

Add standard Apache 2.0 copyright header (Copyright 2026 FlagOS
Contributors) to all source files.

- **703 files** stamped with Apache 2.0 headers
- **80 files** with upstream copyright (HuggingFace, Physical
Intelligence, NVIDIA) — left untouched
- **104 files** with other licenses (51 MPL, 41 proprietary, 10 MIT, 2
BSD) — third-party/upstream code
- **31 files** skipped by rule — binary, JSON, etc.

This PR was written in part with the assistance of generative AI.
Change tar_dir from /data/image_tar (local disk) back to
/mnt/airs-business/cicd/image_tar (shared LeoFS mount),
ensuring tar files are accessible from all runners.
- Change container_volumes defaults from /home/flagscale_cicd/... to
  /mnt/airs-business/cicd/... (shared storage) in both workflow input
  and run_cuda_tests job
- Add set -euo pipefail and file existence check to tar save/load steps
- Change file check from [ -f ] to sudo test -s for reliability
- Add prepare dependency to load_images job for tar_dir reference
wolala3434 and others added 3 commits July 28, 2026 09:55
* ci: enable Ascend test workflow

* Revert "ci: enable Ascend test workflow"

This reverts commit 1573538.

* ci: add Ascend image and training pipeline

* ci: use manual Ascend dev image for training tests

* ci: use manual Ascend dev image for training tests

* fix: make Ascend install scripts executable

* test: catch Typer exit exceptions

* test: use Typer exit in config validation tests

* fix(ci): disable CUDA-only fusions in Ascend smoke

* feat(ascend): install TransformerEngine-FL for training

* test(ascend): exercise full TE-FL training stack

* fix(ascend): keep proxy credentials out of image metadata

* fix(ascend): disable NPU autoload while building train deps

* fix(ascend): align image tag with base Python

* fix(ascend): use task-specific runtime base images

* fix(ascend): align torchvision with torch-npu runtime

* test: normalize marked inference golden output

* fix(ascend): validate Megatron import before skipping install

* fix(install): resume interrupted sccache downloads

* fix(ascend): provide python config for dataset helpers

* fix(ascend): validate TransformerEngine integration

* fix(ascend): persist build download cache

* test(ascend): use mock data for training smoke

* fix(ascend): validate full training stack before skipping

* fix(ascend): install full training stack in test env

* refactor(ci): keep CLI workflow platform neutral

* fix(ascend): make mock data the only smoke source

* fix(ascend): omit data path from mock smoke

* fix(ascend): rebuild and validate training stack

* fix(ascend): initialize NPU before stack validation

* fix(ascend): validate stack after platform selection

* fix(ascend): make mock training smoke executable

* Revert "fix(ascend): make mock training smoke executable"

This reverts commit 0c50c33.

* fix(ascend): restore executable mock training smoke

* fix(ascend): initialize TE before Megatron platform

* fix(ascend): explicitly initialize TE NPU backend

* fix(ascend): reapply TE patch after Megatron setup

* ci(ascend): use validated TE train image

* ci(ascend): build and validate isolated task runtimes

* ci(ascend): activate prebuilt training runtime

* fix(ascend): isolate CANN Python paths per runtime

* fix(ci): satisfy format and terminology checks

---------

Co-authored-by: wolala3434 <wolala3434@users.noreply.github.com>
Co-authored-by: 马函廷 <mahanting@mahantingdeMacBook-Air.local>
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