Skip to content

Commit cb59842

Browse files
ci: derive CANN version dynamically in build cache key
Follow-up to 0ab9915 and per review on #483. The previous commit removed the cann version segment from the cache key entirely, which was wrong: BUILD_HASH only covers source files, so an image bump that changes only the container CANN version (without touching csrc/cmake/ python) would silently reuse stale .so artifacts and produce an ABI mismatch. Reviewer's intent was to avoid the hardcoded literal, not to drop the version dimension. Restore the version segment, but derive it at runtime from /usr/local/Ascend/ascend-toolkit/latest/version.cfg inside the container, so the YAML no longer contains the literal "8.5.0" and the cache key still tracks the actual CANN version of whichever image the job is running on. Falls back to "unknown" if the version file is unreadable; the echo in the step log makes the resolved value visible per run so we can spot regressions in image layout early. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent af200c0 commit cb59842

2 files changed

Lines changed: 1140 additions & 1061 deletions

File tree

0 commit comments

Comments
 (0)