Repository navigation
Test DragonFly BSD on JDK 25 in a VM, on PRs and master - #3849
Conversation
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.
|
No actionable comments were generated in the recent review.
|
| 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:
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
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: 
4
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.
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 Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
-Pjna-aggregate) to JDK 25 with-Paggregate-coverage, so it covers JNA, FFM and theoshi.comparisontests.full-coveragelabel.testdragonflyjob and.github/cfarm/dragonfly.share 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
java/openjdk25port patches and DeltaPorts' DragonFly overlay, booted from DeltaPorts' JDK 24.gcc13, which the JDK's RPATH already points at.Verification
workflow_dispatchofunix.yamlon 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. Thefull-coveragelabel on this PR runs the newpr.yamljob too.No CHANGELOG entry: CI only.
Summary by CodeRabbit