Skip to content

Untrack the generated captures committed by mistake in #350 - #380

Merged
JarryShaw merged 1 commit into
mainfrom
fix/untrack-generated-fixtures
Sep 14, 2026
Merged

JarryShaw merged 1 commit into
mainfrom
fix/untrack-generated-fixtures

Conversation

@JarryShaw

Copy link
Copy Markdown
Owner

My mistake, from #350. Small diff, but one part of it is a licensing matter rather than housekeeping.

What happened

#350 renamed examples/sample/ to examples/captures/ and rewrote the .gitignore rules to match. The rename commit then ran git add -A examples while seven generated captures were still sitting at the old path — which by then no rule covered — so they were committed. 190 KB of binaries that examples/generators/ rebuilds on demand:

arp.pcap, dhcp_big_endian.pcapng, http.pcap, ipv4.pcap, ipv6.pcap, stream.pcap, tcp.pcap

The part that matters

dhcp_big_endian.pcapng is fetched from Wireshark's test/captures and is GPL-2.0-or-later. #340's description said in as many words that nothing downloaded is redistributed, because the directory is gitignored and each machine fetches its own copy. That stopped being true the moment #350 merged. This restores it.

Changes

  • git rm --cached on all seven. Nothing reads them: the tests reach fixtures through tests/_support.sample_path(), which resolves examples/captures/.
  • .gitignore now names examples/sample/ as well. Three worktrees and any older checkout still hold captures at that path, so without a rule the same mistake is one git add -A away.
  • Dropped MANIFEST.in's now-redundant prune examples/sample — prune examples/captures is the live one.
  • Pointed two stale comments in tests/protocols/internet/test_ipv6_extension_runtime.py at the directory that exists.

Verification

CI-equivalent selection with the files gone: 318 passed, 103 subtests passed. Fixtures regenerate into examples/captures/ as before via make samples.

#350 renamed examples/sample to examples/captures and rewrote the .gitignore
rules to match, but the rename commit also ran `git add -A examples` while
seven generated captures still sat at the old path. No rule covered that path
any more, so they were committed: 190 KB of binaries that are rebuilt by
examples/generators/ on demand.

One of them matters more than tidiness. dhcp_big_endian.pcapng is fetched from
Wireshark's test/captures and is GPL-2.0-or-later; #340 said in as many words
that nothing downloaded is redistributed because the directory is gitignored.
That stopped being true, and this restores it.

.gitignore now names examples/sample/ as well, since three worktrees and any
older checkout still hold captures there and the same mistake would otherwise
be one `git add -A` away. Dropped MANIFEST.in's now-redundant prune of the old
path, and pointed two stale comments in the IPv6 extension tests at the
directory that exists.

CI selection: 318 passed, 103 subtests passed.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The diff is small and targeted, and the ignore/manifest/comment updates consistently support untracking generated captures without introducing functional code changes.

Pull request overview

Removes mistakenly tracked generated capture fixtures (including a GPL-sourced download) by restoring the intended “generate locally, don’t redistribute” workflow, while hardening ignores and updating stale test comments to the current captures directory name.

Changes:

  • Add .gitignore coverage for the pre-rename examples/sample/ path to prevent accidental tracking in older checkouts/worktrees.
  • Remove redundant MANIFEST.in pruning for examples/sample/ (with examples/captures remaining pruned).
  • Update two comments in tests/protocols/internet/test_ipv6_extension_runtime.py to reference examples/captures/ instead of examples/sample/.
File summaries
File Description
tests/protocols/internet/test_ipv6_extension_runtime.py Updates documentation/comments to point at the current captures directory.
MANIFEST.in Removes a now-redundant prune entry for the old captures path.
.gitignore Adds an ignore rule for examples/sample/ to prevent reintroducing tracked generated captures.
Review details
  • Files reviewed: 2/10 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JarryShaw
JarryShaw merged commit 677eb15 into main Sep 14, 2026
48 checks passed
@JarryShaw
JarryShaw deleted the fix/untrack-generated-fixtures branch September 14, 2026 19:12
@JarryShaw JarryShaw added ci Pull requests that change CI or workflow configuration (ci: subject prefix) chore Maintenance work: tooling, repo hygiene, no library behaviour change and removed ci Pull requests that change CI or workflow configuration (ci: subject prefix) labels Sep 22, 2026
@JarryShaw JarryShaw added this to the 1.5 milestone Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance work: tooling, repo hygiene, no library behaviour change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants