Skip to content

fix(ci): symlink system llvm-profdata into vx toolchain for rust coverage#440

Merged
loonghao merged 1 commit into
mainfrom
fix/llvm-profdata-symlink
Jun 16, 2026
Merged

fix(ci): symlink system llvm-profdata into vx toolchain for rust coverage#440
loonghao merged 1 commit into
mainfrom
fix/llvm-profdata-symlink

Conversation

@loonghao

Copy link
Copy Markdown
Owner

Summary

Fix

Added a fixup step after the vx llvm-tools-preview installation that:

  1. Checks if llvm-profdata exists at the expected vx toolchain path
  2. If not, finds it in the system-installed dtolnay/rust-toolchain and creates a symlink

The symlink approach is chosen over environment variables because cargo-llvm-cov determines the llvm tools path from the sysroot of the currently active rustc, and the vx-managed rustc always points to the vx store path.

Test plan

…rage

vx rustup component add llvm-tools-preview reports the component as
installed, but the llvm-profdata binary is missing at the expected path
in the vx-managed Rust toolchain (~/.vx/store/rust/...). This causes
cargo-llvm-cov report to fail with "could not execute process ...
llvm-profdata merge (never executed): No such file or directory".

Add a fixup step that detects the missing binary and creates a symlink
from the system-installed dtolnay toolchain, which has llvm-tools
properly installed.
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.97%. Comparing base (0d107d8) to head (d374e20).
⚠️ Report is 12 commits behind head on main.

❌ Your project check has failed because the head coverage (47.97%) is below the target coverage (70.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #440      +/-   ##
==========================================
- Coverage   48.00%   47.97%   -0.04%     
==========================================
  Files         118      118              
  Lines       13070    13070              
  Branches       24       24              
==========================================
- Hits         6274     6270       -4     
- Misses       6796     6800       +4     
Flag Coverage Δ
py3.11 51.08% <ø> (ø)
python 51.08% <ø> (ø)
rust 38.70% <ø> (-0.11%) ⬇️
sdk 91.91% <ø> (ø)
typescript 91.91% <ø> (ø)

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

Components Coverage Δ
Python Core 46.65% <ø> (ø)
Python Qt Integration 66.34% <100.00%> (ø)
Rust Main 38.70% <ø> (-0.11%) ⬇️
AuroraView Core ∅ <ø> (∅)
AuroraView Pack ∅ <ø> (∅)
AuroraView CLI ∅ <ø> (∅)
AuroraView Plugins ∅ <ø> (∅)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17c5583...d374e20. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

📸 Gallery E2E Screenshots

Screenshots from this PR's E2E tests. View all artifacts

Page Screenshot
💻 API Patterns View
🚀 Getting Started View
🏠 Home View
⚙️ Settings View
🪟 Window Features View
ℹ️ How to view screenshots
  1. Click "View all artifacts" above
  2. Scroll to "Artifacts" section
  3. Download gallery-e2e-screenshots

@loonghao
loonghao merged commit 2ab27a4 into main Jun 16, 2026
51 of 52 checks passed
@github-actions
github-actions Bot deleted the fix/llvm-profdata-symlink branch June 16, 2026 11:11
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.

1 participant