Skip to content

Test DragonFly BSD on JDK 25 in a VM, on PRs and master - #3849

Merged
dbwiddis merged 2 commits into
oshi:masterfrom
dbwiddis:dragonfly-vm-jdk25
Oct 28, 2026
Merged

dbwiddis merged 2 commits into
oshi:masterfrom
dbwiddis:dragonfly-vm-jdk25

Conversation

@dbwiddis

@dbwiddis dbwiddis commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • unix.yaml: the DragonFly BSD 6.4 VM job moves from JDK 21 (JNA only, -Pjna-aggregate) to JDK 25 with -Paggregate-coverage, so it covers JNA, FFM and the oshi.comparison tests.
  • pr.yaml: a matching DragonFly job joins the gated Unix VM jobs (FreeBSD, OpenBSD, NetBSD, OpenIndiana). It runs on Unix-relevant changes or with the full-coverage label.
  • cfarm.yaml: the testdragonfly job and .github/cfarm/dragonfly.sh are removed. That job existed only to run FFM on JDK 25, and it took the shared cfarm152 down twice through the kernel bug fixed in Query only the current process's executable path on DragonFly BSD #3848. A kernel panic in a throwaway VM costs nothing.

The JDK

DPorts packages nothing newer than openjdk21. Until it ships openjdk25, which both jobs will prefer as soon as it appears, the jobs download the JDK 25 built on cfarm152. It is published as a pre-release on the maintainer's fork, together with its build recipe: https://github.com/dbwiddis/oshi/releases/tag/dragonfly-jdk25-bootstrap

  • Build: OpenJDK 25.0.4+7, with FreeBSD's java/openjdk25 port patches and DeltaPorts' DragonFly overlay, booted from DeltaPorts' JDK 24.
  • Integrity: the download is pinned to its SHA-256, and a missing or altered file fails the job, as for NetBSD's bootstrap JDK.
  • Runtime: the only dependency outside base is gcc13, which the JDK's RPATH already points at.

Verification

workflow_dispatch of unix.yaml on the fork (run 40646689558) was green: oshi-common 1738, oshi-core (JNA) 89, oshi-core-ffm (FFM) 48 and oshi-benchmark comparisons 44, with 0 failures. The full-coverage label on this PR runs the new pr.yaml job too.

No CHANGELOG entry: CI only.

Summary by CodeRabbit

  • Tests
    • DragonFly BSD checks now run with JDK 25 and cover both JNA and FFM.
    • Pull requests can include DragonFly BSD test results and coverage in the applicable CI runs.
  • Chores
    • Updated DragonFly BSD test setup to use an available JDK 25 package or a verified fallback.
    • Removed the disabled DragonFly BSD job from the cross-platform workflow.

The cfarm DragonFly job existed only to run the FFM tests on JDK 25,
which DPorts does not package. It took the shared cfarm152 down twice
(oshi#3848), so it is removed rather than re-enabled. The vmactions job
moves from JDK 21 (JNA only) to JDK 25 with -Paggregate-coverage, so it
covers JNA, FFM and the comparison tests. It prefers DPorts openjdk25
when it appears, and until then uses the JDK 25 built on cfarm152,
published with its build recipe as a pre-release on the maintainer's
fork and pinned to its SHA-256.
Adds a DragonFly BSD 6.4 job to pr.yaml alongside FreeBSD, OpenBSD,
NetBSD and OpenIndiana, gated on Unix-relevant changes or the
full-coverage label like the others. It uses the same JDK 25 fallback
as the unix.yaml job and runs -Paggregate-coverage, so PRs now exercise
DragonFly's JNA and FFM implementations before merge.
@dbwiddis dbwiddis added the full-coverage Add to a PR to execute more CI label Oct 28, 2026
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d47a744f-fb0f-4547-9270-98e63324daed
Commits

Reviewing files that changed from the base of the PR and between 2defb55 and 5229277.

Files selected for processing: 4
  • .github/cfarm/dragonfly.sh
  • .github/workflows/cfarm.yaml
  • .github/workflows/pr.yaml
  • .github/workflows/unix.yaml
Files with no reviewable changes: 1
  • .github/cfarm/dragonfly.sh

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

Recent review details
Context from checks skipped due to timeout: 5
  • GitHub Check: CodeRabbit
  • GitHub Check: Test JDK 25, DragonFly BSD
  • GitHub Check: Test JDK 25, OpenIndiana
  • GitHub Check: Test JDK 25, OpenBSD
  • GitHub Check: Test JDK 25, NetBSD
CI failures not shown inline: 2

GitHub Actions: AppVeyor on demand / 0_appveyor.txt: Test DragonFly BSD on JDK 25 in a VM, on PRs and master

Conclusion: failure

View job details

##[group]Run if [ -z "$APPVEYOR_TOKEN" ]; then
 �[36;1mif [ -z "$APPVEYOR_TOKEN" ]; then�[0m
 �[36;1m  echo "::error::APPVEYOR_TOKEN secret is not set. Add it from https://ci.appveyor.com/api-keys."�[0m
...
   APPVEYOR_***REDACTED_SECRET_ASSIGNMENT***
   PR_NUMBER: 3849
 ##[endgroup]
 curl: (22) The requested URL returned error: 404
 {"message":"Project not found or access denied."}
 ##[error]Process completed with exit code 22.

GitHub Actions: AppVeyor on demand / appveyor: Test DragonFly BSD on JDK 25 in a VM, on PRs and master

Conclusion: failure

View job details

##[group]Run if [ -z "$APPVEYOR_TOKEN" ]; then
 �[36;1mif [ -z "$APPVEYOR_TOKEN" ]; then�[0m
 �[36;1m  echo "::error::APPVEYOR_TOKEN secret is not set. Add it from https://ci.appveyor.com/api-keys."�[0m
...
   APPVEYOR_***REDACTED_SECRET_ASSIGNMENT***
   PR_NUMBER: 3849
 ##[endgroup]
 curl: (22) The requested URL returned error: 404
 {"message":"Project not found or access denied."}
 ##[error]Process completed with exit code 22.
Additional context used
actionlint (1.7.12)
.github/workflows/pr.yaml

[error] 378-378: label "ubuntu-26.04" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file

(runner-label)

Additional comments: 2
.github/workflows/pr.yaml: 1

20-20: LGTM!

Also applies to: 375-437

.github/workflows/cfarm.yaml: 1

1-1: LGTM!

Walkthrough

DragonFly BSD CI now runs JDK 25 aggregate-coverage tests in Unix and pull-request workflows. The pull-request job installs JDK 25 from DPorts or a pinned archive. The disabled cfarm DragonFly job and its runner script are removed.

Changes: DragonFly BSD CI

Layer / File(s) Summary
Update the Unix VM job
.github/workflows/unix.yaml
The DragonFly VM job now uses JDK 25 and runs the aggregate-coverage profile. The JDK setup prefers the DPorts package and uses a checksum-verified archive as a fallback. Coverage upload now uses the aggregate report under oshi-benchmark.
Add pull-request test coverage
.github/workflows/pr.yaml
A gated DragonFly BSD 6.4.2 job installs JDK 25 from DPorts or a pinned archive, runs aggregate-coverage tests, and uploads coverage with the dragonflybsd flag.
Remove the cfarm runner
.github/workflows/cfarm.yaml, .github/cfarm/dragonfly.sh
The disabled DragonFly cfarm job and runner script are removed. The cfarm workflow description no longer lists DragonFly BSD.

Priority: Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant Workflow as pr.yaml DragonFly job
  participant DPorts as DPorts openjdk25
  participant Archive as Pinned JDK archive
  participant Maven
  participant Codecov
  Workflow->>Workflow: Check job condition
  alt openjdk25 is available
    Workflow->>DPorts: Install openjdk25
  else openjdk25 is unavailable
    Workflow->>Archive: Download and verify JDK archive
    Workflow->>Workflow: Extract JDK and install gcc13
  end
  Workflow->>Maven: Run aggregate-coverage tests
  Workflow->>Codecov: Upload dragonflybsd coverage
Loading

Possibly related issues

  • Issue 2160 concerns the JDK 25 update being blocked in the dependency dashboard. This PR adds JDK 25 to DragonFly CI but does not change the dashboard update.

Possibly related PRs

  • oshi/oshi#3848: This PR adds DragonFly VM coverage for JNA and FFM process-path behavior changed in that pull request.
Merge Risk: Minimal · up to 52292

The change adds DragonFly JDK 25 VM coverage. No actionable merge-blocking issue was established.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the primary change: DragonFly BSD testing on JDK 25 in VM workflows for pull requests and master.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the DragonFly run,
JDK 25 joins the fun.
DPorts first, an archive near,
Maven tests then coverage cheer.
The old cfarm script hops away.

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.12%. Comparing base (2defb55) to head (5229277).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3849      +/-   ##
============================================
+ Coverage     81.08%   81.12%   +0.03%     
  Complexity      819      819              
============================================
  Files           726      726              
  Lines         26451    26451              
  Branches       4500     4500              
============================================
+ Hits          21449    21458       +9     
+ Misses         2777     2762      -15     
- Partials       2225     2231       +6     
Flag Coverage Δ
dragonflybsd 37.41% <ø> (-8.62%) ⬇️
freebsd 37.98% <ø> (+<0.01%) ⬆️
linux 41.94% <ø> (+0.02%) ⬆️
macos 42.83% <ø> (-0.05%) ⬇️
netbsd 37.28% <ø> (+<0.01%) ⬆️
openbsd 37.84% <ø> (ø)
solaris 39.11% <ø> (+<0.01%) ⬆️
windows 49.28% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbwiddis
dbwiddis merged commit c956096 into oshi:master Oct 28, 2026
34 of 36 checks passed
@dbwiddis
dbwiddis deleted the dragonfly-vm-jdk25 branch October 28, 2026 07:22
dbwiddis added a commit that referenced this pull request Oct 28, 2026
The full-coverage dispatch had never run until #3849, where AppVeyor's
API answered 404 "Project not found or access denied" for a project
that exists and is public. The user-level (v2) API key only works on
the account-scoped path, /api/account/<account>/builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-coverage Add to a PR to execute more CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant