Skip to content

gha: fix broken llvm-cov CI jobs - #412

Open
cyphar wants to merge 4 commits into
mainfrom
gha-workflow-dispatch
Open

gha: fix broken llvm-cov CI jobs#412
cyphar wants to merge 4 commits into
mainfrom
gha-workflow-dispatch

Conversation

@cyphar

@cyphar cyphar commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Signed-off-by: Aleksa Sarai cyphar@cyphar.com

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cyphar cyphar changed the title gha: add workflow_dispatch trigger gha: fix broken llvm-cov CI jobs Sep 2, 2026
@cyphar cyphar added this to the 0.2.6 milestone Sep 3, 2026
@cyphar
cyphar force-pushed the gha-workflow-dispatch branch from 1fc7b16 to daaba41 Compare September 3, 2026 05:05
@cyphar

cyphar commented Sep 3, 2026

Copy link
Copy Markdown
Owner Author

This now includes a workaround for taiki-e/cargo-llvm-cov#520.

Rust nightly-2026-07-30 enabled the v2 build-dir layout for builds,
which /is/ supported by cargo-llvm-cov and cargo-nextest but
unfortunately the way they handle it is not incompatible. cargo-llvm-cov
relies on a special "fingerprint" directory being present to look for a
v2 build-dir layout but "cargo-nextest archive" does not include that
directory in the archive (instead the relevant information is stored in
a metadata JSON file that cargo-llvm-cov should probably be parsing
instead).

Until the issue is fixed in cargo-llvm-cov (or cargo-nextest adds a
workaround), work around the issue by creating the special "fingerprint"
directory after we extract the cargo-nextest archive ourselves.

Without this patch, the coverage-related CI jobs failed with the
following error as cargo-llvm-cov couldn't find the right directory for
the objects:

  error: failed to collect object files: not found object files
  (searched directories: .../target/llvm-cov-target/target/debug);
  this may occur if show-env subcommand is used incorrectly (see docs or other warnings), or unsupported commands or configs are used

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Since nightly-2026-08-20 rustfmt has been indent-aware (which was
implemented because of an issue we opened) and so we need to now
re-format a lot of comments.

Unfortunately, trailing comments on lines now get the same treatment
quite aggressively so a lot of those needed to be moved to no longer be
trailing comments (it would be great if this bit was configurable but no
such luck).

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@cyphar
cyphar force-pushed the gha-workflow-dispatch branch from daaba41 to 9b2d54a Compare September 3, 2026 05:06
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@cyphar
cyphar force-pushed the gha-workflow-dispatch branch from 9b2d54a to 34dae3d Compare September 3, 2026 05:15
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