Repository navigation
feat(golden): uplink2, NIC speed, locality and ASN in the capture VM - #331
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- e1000e second uplink on a restricted SLiRP net, default route at metric 2048; virtio NIC reports 10000 full duplex - -enrichLocality -enrichAsn over an artifact built from documentation prefixes (203.0.113.0/24 AS64500, 2001:db8:113::/48 AS64501) - golden-loc-a/b + golden-remote: self, subnet and remote (v4, v6) - ROW uplink2, locality_all, bound_ifname, asn_remote, no_asn_unlisted, nic_speed, v6_remote, egress_named - README, CHANGELOG Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two captures diff clean; coverage.json passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-net # Conflicts: # nix/README.md
…-net # Conflicts: # nix/README.md
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.
The golden capture VM had one virtio uplink at speed 0 and no locality or ASN enrichment, so the fleet's uplink 2, NIC speed, locality, ASN, owner and egress columns were never exercised. Includes #330 (and through it #327 and #329) with their review fixes, merged in; merge those first. The new commits start at "test(golden): coverage for uplink2, NIC speed, locality and ASN (red)". Done test-first.
VM (
mkVm.nix, golden flavor only; the families check is unchanged)restrict=on,net=10.0.3.0/24), static 10.0.3.15 with a default route at metric 2048.DefaultUplinksfinds it second through the production path: two defaults were already covered byTestParseDefaultRoutesV4/two, so no code change there-global virtio-net-pci.speed=10000,duplex=full(virtio-net reports no speed unless told)-enrichLocality -enrichAsn. The ASN artifact is built with the VM by duckdb from documentation prefixes only: 203.0.113.0/24 → AS64500 "fixture-net", 2001:db8:113::/48 → AS64501 "fixture-net6". No feed, no internetbnxt_enand so on) can't be reproduced in a VM; documented in nix/READMEWorkload
golden-loc-a/b+golden-remote: fromgolden-loc-a, one connection each to its own address (self),golden-loc-b(subnet), and 203.0.113.10 / 2001:db8:113::10 throughgolden-loc-bas a router (remote)Checks
ROWlines, all four categories:uplink2,locality_all,bound_ifname(positive);asn_remote,no_asn_unlisted(negative);nic_speed(boundary);v6_remote,egress_named(corner)bound_ifnameandenrich_socket_interface_namecoverage move here from feat(golden): netns pairs for congestion, loss, socket options and states #330: only the locality enricher fills itcoverage.jsonrequires uplink 2's columns (driver e1000e, vendor 32902, device 4307, speed 1000, firmware, bus, ifname), uplink 1 speed 10000, localities 1/2/3, and the ASN, owner, egress and bound interface columnsRed (coverage commit, against #330's fixture)
Green
Every
ROWline PASSes in both captures, and in a third taken after the review fixes; all three diff clean against each other (exit 0);xtcp2-golden checkpasses coverage;go test ./...passes (exceptTestSockstatReader, which this PR does not touch: it reads live host sockstat and failed once, then passed in 3 of 4 reruns); the nix checks (gofmt, go-vet, nix-fmt, lint-baseline, golangci ×3, redteam-lint, golden-records, test-fuzz-all) pass.🤖 Generated with Claude Code