Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable Fedora 42 akmods #308

Merged
merged 10 commits into from
Mar 18, 2025
Merged

chore: enable Fedora 42 akmods #308

merged 10 commits into from
Mar 18, 2025

Conversation

p5
Copy link
Member

@p5 p5 commented Mar 11, 2025

Enables F42 akmods builds. Tweaks the schedules to keep up with conventions.

Needed to disable the following, since they are either broken or non-existent:

  • Bazzite (kernel missing)
  • CoreOS Stable (kernel missing)
  • CoreOS Testing (kernel missing)
  • OpenRazer (build broken)

Asus and surface will be deprecated in F42, so not enabling these.

@p5 p5 marked this pull request as ready for review March 15, 2025 19:39
@Copilot Copilot bot review requested due to automatic review settings March 15, 2025 19:39
@p5 p5 requested a review from castrojo as a code owner March 15, 2025 19:39
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 15, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds support for Fedora 42 akmods builds by introducing a new workflow and updating related configurations for existing Fedora versions.

  • Added a new workflow file (.github/workflows/build-42.yml) for Fedora 42 builds.
  • Adjusted schedule timings in build-41.yml and build-40.yml to accommodate the new build order.
  • Updated descriptions in action and reusable workflow files to include Fedora 42 support.

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/build-42.yml New workflow file added for Fedora 42 builds.
.github/workflows/build-41.yml Modified build schedule cron timing.
.github/actions/get-kernel-version/action.yml Updated description and enabled debug output with 'set -x'.
.github/workflows/build-40.yml Updated build schedule cron timing.
.github/workflows/reusable-build.yml Updated input description for Fedora version to include 42.

@p5 p5 requested review from bsherman and m2Giles March 15, 2025 19:43
KERNEL_RELEASE="$(echo "$kernel_version" | cut -d - -f 2 | cut -d . -f 1).$(echo "$kernel_version" | cut -d - -f 2 | cut -d . -f 2)"
KERNEL_RELEASE="$(echo "$kernel_version" | cut -d - -f 2 | rev | cut -d . -f 2- | rev)"
Copy link
Member Author

@p5 p5 Mar 15, 2025

Choose a reason for hiding this comment

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

We needed to slightly rework this logic to support release candidate kernel versions.

"-rc-X" was removed from the original command, causing the lookup to fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

I like rev based solutions as they often end up being much simpler (and more correct) than mulitple cuts.

m2Giles
m2Giles previously approved these changes Mar 15, 2025
Copy link
Member

Choose a reason for hiding this comment

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

Reason for the change in time for the 40/41 cronjobs?

Copy link
Member Author

@p5 p5 Mar 15, 2025

Choose a reason for hiding this comment

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

This was because it seems like we build the newest version before the older ones, so wanted to follow the same pattern.
Didn't want to build any earlier since I think it lines up with when Fedora builds their images.
Therefore I shifted all existing workflows later by 20 minutes to slot the F42 builds where the F41 ones were originally.

@@ -7,7 +7,7 @@ on:
paths-ignore:
- '**.md'
schedule:
- cron: '5 0 * * *' # 0005 UTC everyday
- cron: '25 0 * * *' # 0025 UTC everyday (20 minutes after 42)
Copy link
Member

Choose a reason for hiding this comment

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

Same here? Why the change in time?

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 15, 2025
@p5 p5 requested a review from KyleGospo March 15, 2025 23:18
@p5 p5 enabled auto-merge March 15, 2025 23:19
fedora_version:
- 42
kernel_flavor:
- main
Copy link
Contributor

Choose a reason for hiding this comment

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

add - bazzite

Copy link
Contributor

@bsherman bsherman left a comment

Choose a reason for hiding this comment

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

Obviously there are more kernels to support (bazzite and coreos), but I think this is looking good and will get the ball rolling for us.

@p5 p5 added this pull request to the merge queue Mar 18, 2025
Merged via the queue into main with commit 830fe57 Mar 18, 2025
61 of 62 checks passed
@p5 p5 deleted the build-f42-akmods branch March 18, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants