Repository navigation
Conversation
noq-udp doesn't build for Fuchsia with libc as released: libc lacks IPV6_PKTINFO and IPV6_DONTFRAG there, and its Fuchsia cmsghdr has a padding field that Fuchsia's <sys/socket.h> doesn't, so the unix backend would read and write control messages at the wrong offsets. Put Fuchsia on posix_minimal, as ESP-IDF and WASI are; it needs nothing more from libc. On Fuchsia that gives up ECN, packet info and, since the socket may fragment, MTU discovery. The daily workflow gains a job that runs noq-udp's tests on a Fuchsia emulator (x64, KVM): the core SDK from CIPD, the minimal product of the same version, and each test executable as a test component run with `ffx test run`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follows #927. noq-udp doesn't build for Fuchsia with libc as released, so this puts Fuchsia on
posix_minimal, as ESP-IDF and WASI are, and adds a job to the daily workflow that runs noq-udp's tests on a Fuchsia emulator (x64, KVM).Notes & open questions
posix_minimalmeans no ECN, no packet info and no MTU discovery (may_fragmentis true). The full unix backend would need libc to fix its Fuchsiacmsghdrfirst.More detail (drafted with Claude Code)
IPV6_PKTINFOandIPV6_DONTFRAG. Its Fuchsiacmsghdralso has a__pad1that Fuchsia's<sys/socket.h>doesn't, socmsg_levelandcmsg_typewould land 4 bytes off.fuchsia-run-tests-on-emulator.shfollowsrust-android-run-tests-on-emulator.sh. It boots theminimal.x64product of the SDK's version withffx emu, packages each test executable with anelf_test_runnercomponent of typesystem(for the netstack), and runs it withffx test run. ffx runs isolated, underFUCHSIA_WORK.tests.rs: 8 passed,gsoignored. With a panicking test added, the script exits 1.ubuntu-latest, from my fork: https://github.com/bayanasar/noq/actions/runs/47427349296 (1m41s; the SDK download takes 27 s).zizmor --offline .reports no findings with this change.cargo fmton noq-udp. I didn't runcargo make.Change checklist
cargo makepasses locally.Drafted with Claude Code.