Skip to content

fix(action): diagnose unsupported Ubuntu LLVM versions - #257

Merged
SizzleUnrlsd merged 6 commits into
CoreTrace:mainfrom
Vamsi-2581:codex/action-ubuntu-26-04-llvm-256
Oct 31, 2026
Merged

SizzleUnrlsd merged 6 commits into
CoreTrace:mainfrom
Vamsi-2581:codex/action-ubuntu-26-04-llvm-256

Conversation

@Vamsi-2581

@Vamsi-2581 Vamsi-2581 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replace the deprecated apt-key flow with a dedicated LLVM keyring and a signed-by source.
  • Accept llvm-version: 20 only. The analyzer does not build with LLVM 21: the build stops in coretrace-compiler v0.10.0, and the analyzer's own sources use llvm::Attribute::NoCapture, which LLVM 21 removed. LLVM 19 fails as well, and CI builds and tests LLVM 20 only.
  • Before adding the LLVM source, request the branch's Release file from apt.llvm.org. On a runner without LLVM 20 packages, such as ubuntu-26.04, the step stops with the URL and the HTTP status instead of failing later in apt-get.
  • State the requirement in the llvm-version input and in the README notes.

Fixes #255.

Validation

  • "Test GitHub Action" runs the action on ubuntu-24.04 with LLVM 20.
  • The install step, extracted from action.yml and run with bash -eo pipefail as the step runs:
    • ubuntu:24.04, LLVM 20: installs LLVM 20.1.8.
    • ubuntu:26.04, LLVM 20: stops with status 404 and names ubuntu-24.04.
    • ubuntu:24.04, LLVM 21: stops on the version check, before apt-get runs.
    • ubuntu:24.04, apt.llvm.org unreachable: stops with status unreachable.

Vamsi-2581 and others added 6 commits October 31, 2026 18:03
…me table

The two case blocks restated which LLVM branches apt.llvm.org publishes
for each Ubuntu release, a table that goes stale with every LLVM or
Ubuntu release. Request the branch's Release file instead: a 200 lets
the installation go on, while any other status, or no answer at all,
stops the step with the URL and the status before the LLVM source is
added.
LLVM 21 stops the build in coretrace-compiler v0.10.0, which the
analyzer pins, and the analyzer's own sources use
llvm::Attribute::NoCapture, which LLVM 21 removed. LLVM 19 fails in
ResourceFactCollector.cpp. CI builds and tests LLVM 20 only, so reject
any other llvm-version before apt runs, and name ubuntu-24.04, where the
action is tested, when a runner has no LLVM 20 packages.
The input stays, so that workflows passing llvm-version: 20 keep
working.
…LVM 20

The note sat between the sentence that introduces the workflow example
and the example itself, and advertised LLVM 19 to 23 and Ubuntu 26.04.
Describe what the action does instead, in the Notes list that follows
the example: LLVM 20 from apt.llvm.org, tested on ubuntu-24.04, and an
early error for any other version or a runner without LLVM 20 packages.
@SizzleUnrlsd

Copy link
Copy Markdown
Contributor

Thanks again for this fix. We pushed the changes from our review on top of your two commits, so that it can be merged without another round trip:

  • The action accepts llvm-version: 20 only. LLVM 21 does not build the analyzer yet: the build stops in coretrace-compiler v0.10.0, and the analyzer's own sources use llvm::Attribute::NoCapture, which LLVM 21 removed. LLVM 19 fails as well.
  • The two case tables are replaced by a request for the branch's Release file on apt.llvm.org, so a new LLVM or Ubuntu release needs no table update.
  • The README note moved into the Notes list after the example.
  • The description now says Fixes #255, since action: the install step fails on ubuntu-latest (Ubuntu 26.04) #256 was closed as its duplicate.

Your keyring and signed-by change is unchanged. Ubuntu 26.04 support needs an LLVM 21 port of coretrace-compiler and the analyzer, which we will track separately.

@SizzleUnrlsd
SizzleUnrlsd merged commit 6d109d2 into CoreTrace:main Oct 31, 2026
11 of 12 checks passed
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.

action: the install step fails on ubuntu-latest (Ubuntu 26.04)

2 participants