Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Updates non-native CI coverage for newly supported BSD targets and optimizes emulated RISC-V builds.
Changes:
- Bumps cross-platform action to v1.4.0 and NetBSD to 11.0.
- Adds an optimized FreeBSD riscv64 build.
- Corrects FreeBSD
gethostbyname_rprefill detection.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
CMake/unix-cache.cmake |
Prefills FreeBSD’s six-argument gethostbyname_r. |
.github/workflows/non-native.yml |
Updates the action and BSD CI matrix. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Why not run the tests on risc-v? That would give a lot more assurance that there aren't any run-time issues on the CPU. Is it just because it's so slow? |
Yes, I have excluded emulated CPUs from tests for perf reasons. I'll adjust the logic to make testing such build easy. Maybe make |
|
Run it here to see: Takes ~10-20 seconds to install Perl, almost 8 minutes to build the tests, |
|
I'd have to agree. Running a subset of tests is an idea, but that dramatically
reduces the chance that it would find the kind of edge case issue we'd be
looking for. I have a feeling increasing the test parallelism won't help,
either, since the CPU is going to be running at 100% doing emulation.
|
It's something we could try tuning, but with emulation, even -j8 may In theory ARM64 Linux runners could make those jobs faster by going Doing them in cron could be in general a solution for 10+ minute jobs But the ultimate downside is that a failure won't be caught within the I wonder if there are other tricks to employ — 8 minutes to build 5 |
|
I wonder if there are other tricks to employ — 8 minutes to build 5
test binaries (in debug mode, thus no -O3) feels high.
ccache? This was my top search result: https://github.com/hendrikmuhs/ccache-action
This might even help other builds, but I guess they only take O(seconds) to
compile so might not be worth the overhead.
|
I was more thinking of something to tweak with settings. (Not overly keen on using an external Adding |
Also: - drop most hand-tuned `--min` options, in favor of defaults. - enable tests on emulated riscv64. Suggested-by: Dan Fandrich Ref: #22590 (comment) - drop building examples on emulated riscv64. Adding around 3.5 minutes to the riscv64 job: 0.5 Perl install, 2 minutes to build tests, 1 minute to run 100 tests. Follow-up to 6648669 #22619 Follow-up to e669179 #22616 Follow-up to 58cb1e2 #22618 Follow-up to d000006 #22602 Closes #22617
New riscv64 job takes 4.5 minutes.
Also:
HAVE_GETHOSTBYNAME_R_6prefill for FreeBSD.Ref: https://github.com/cross-platform-actions/action/releases/tag/v1.4.0