Skip to content

Fix codeql to work on newer version of Ubuntu#6445

Merged
vandonr merged 4 commits into
masterfrom
vandonr-patch-1
Dec 17, 2024
Merged

Fix codeql to work on newer version of Ubuntu#6445
vandonr merged 4 commits into
masterfrom
vandonr-patch-1

Conversation

@vandonr

@vandonr vandonr commented Dec 16, 2024

Copy link
Copy Markdown
Contributor

since Github updated their runners to use a more recent version of ubuntu, it broke the codeQL job because it couldn't find LLVM using the new version name (noble).
The error we're seeing is The repository 'http://apt.llvm.org/noble llvm-toolchain-noble-16 Release' does not have a Release file.
It turns out Clang-16 is available by default in ubuntu Noble (24.04), so we don't need the script at all and we can just install from apt.

DEBIAN_FRONTEND=noninteractive is necessary to prevent a prompt from tzdata asking us to choose our timezone.

@vandonr
vandonr requested a review from a team as a code owner December 16, 2024 15:19
@github-actions github-actions Bot added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Dec 16, 2024
@vandonr

vandonr commented Dec 16, 2024

Copy link
Copy Markdown
Contributor Author

it says

clang-16 is already the newest version (1:16.0.6-23ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 112 not upgraded.

so idk maybe we can remove this step entirely ? (until 2026 and the next LTS release :trollface:)

@bouwkast bouwkast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@robertpi robertpi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't really need another approval, but since I was looking anyway :-)

@vandonr

vandonr commented Dec 16, 2024

Copy link
Copy Markdown
Contributor Author

Idk why the azure stuff is not running ? 🤔

andrewlock added a commit that referenced this pull request Dec 17, 2024
## Summary of changes

Fix broken github status action

## Reason for change

The github status upload is broken, because we're not splitting on `;`
as expected

## Implementation details

Add missing `export IFS=";"`, accidentally deleted in #6407

## Test coverage

This is the test

## Other details

Currently blocking #6445
@vandonr
vandonr merged commit eed7b60 into master Dec 17, 2024
@vandonr
vandonr deleted the vandonr-patch-1 branch December 17, 2024 16:50
@github-actions github-actions Bot added this to the vNext-v3 milestone Dec 17, 2024
chojomok pushed a commit that referenced this pull request Jul 15, 2025
## Summary of changes

Fix broken github status action

## Reason for change

The github status upload is broken, because we're not splitting on `;`
as expected

## Implementation details

Add missing `export IFS=";"`, accidentally deleted in #6407

## Test coverage

This is the test

## Other details

Currently blocking #6445
chojomok pushed a commit that referenced this pull request Jul 15, 2025
since Github [updated their
runners](https://github.blog/changelog/2024-11-05-notice-of-breaking-changes-for-github-actions/#ubuntu-latest-upcoming-breaking-changes)
to use a more recent version of ubuntu, it broke the codeQL job because
it couldn't find LLVM using the new version name (`noble`).
The error we're seeing is `The repository 'http://apt.llvm.org/noble
llvm-toolchain-noble-16 Release' does not have a Release file.`
It turns out Clang-16 is available by default in ubuntu Noble (24.04),
so we don't need the script at all and we can just install from apt.

`DEBIAN_FRONTEND=noninteractive` is necessary to prevent a prompt from
tzdata asking us to choose our timezone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants