Skip to content

Add disable-network-offload for GitHub action runners (PP-5633) - #71

Merged
tdilauro merged 1 commit into
mainfrom
feature/disable-network-offload
Nov 23, 2026
Merged

tdilauro merged 1 commit into
mainfrom
feature/disable-network-offload

Conversation

@tdilauro

Copy link
Copy Markdown
Contributor

Description

Adds a shared disable-network-offload composite action. It does the same work as the action added to circulation in circulation#3929:

  • Prints the network interfaces, to help debug failures.
  • Gets the interface name from the default route, instead of using eth0.
  • Fails with a clear error if there is no default route.
  • Turns off TX and RX checksum offload on that interface.

The README n ow documents the action.

Motivation and Context

Some CI jobs fail at the "Disable network offload" step, because the runner has no eth0 interface. We fixed this in circulation, but Virtual Library Card CI now has the same problem. Other repos also use the same step. A shared action lets us fix and maintain this in one place.

[Jira PP-5633]

How Has This Been Tested?

  • Added a workflow that runs the action on ubuntu-latest and ubuntu-24.04. It then checks that TX and RX checksum offload are off.
  • The action is a copy of the circulation action, which passed all circulation CI checks.

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@claude

claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Claude finished @tdilauro's task in 1m 56s —— View job


Code review

  • Gather context (diff, repo layout)
  • Compare with existing actions, workflows, and README conventions
  • Analyze action and test workflow (including CI job logs)
  • Post review

Summary

This looks good, and I have no changes to request. The action replaces the hard-coded eth0 with the interface on the default route, which is a small, focused fix. It fails clearly when there is no default route, and it runs under shell: bash (-e -o pipefail), so an ethtool failure fails the step. The test workflow follows the same trigger and path-filter pattern as test-jira-release-sync.yml. Because the test works out the interface on its own and checks it, it also tests which interface the action chose. The CI logs for this run show that the test exercises the real failure. ubuntu-latest ran on ubuntu-26.04, which has eth0, and the action turned off rx-checksum and tx-checksum-ipv4/ipv6 on it. The ubuntu-24.04 job landed on a runner that had only enp39s0 and no eth0. That is the case that breaks the old step, and here the action picked enp39s0 and the check passed. Both test jobs and Lint passed, so you can tick the "All new and existing tests passed" box.

@tdilauro
tdilauro force-pushed the feature/disable-network-offload branch from ce2eac9 to 802a7f0 Compare November 23, 2026 21:17
@tdilauro
tdilauro merged commit 3d548c2 into main Nov 23, 2026
6 checks passed
@tdilauro
tdilauro deleted the feature/disable-network-offload branch November 23, 2026 21:24
tdilauro added a commit to ThePalaceProject/virtual-library-card that referenced this pull request Nov 23, 2026
## Description

Replaces the previous "Disable network offload" steps in the build
GitHub workflow with the shared `disable-network-offload` action from
[`ThePalaceProject/github-actions`
v1.6.0](https://github.com/ThePalaceProject/github-actions/tree/v1.6.0/disable-network-offload).

The shared action gets the network interface from the default route,
instead of always assuming `eth0`. It also prints the interface list and
gives a clear error if it cannot find an interface.

## Motivation and Context

VLC CI jobs sometimes fail at this step, because some runner images have
no `eth0` interface:

    netlink error: no device matches name (offset 24)
    netlink error: No such device

We fixed the same problem in circulation
([circulation#3929](ThePalaceProject/circulation#3929)).
We then moved the fix to the shared actions repo
([github-actions#71](ThePalaceProject/github-actions#71)),
so we can maintain it in one place.

[Jira PP-5633]

## How Has This Been Tested?

- The shared action has its own CI test. It runs the action and checks
that TX and RX checksum offload are off.
- VLC CI must pass on this PR.

## Checklist

- N/A - I have updated the documentation accordingly.
- [x] All new and existing tests 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.

1 participant