Skip to content

chore: fresh record display formats - #1880

Merged
bdraco merged 2 commits into
masterfrom
replace_2009_repr_formats
Aug 29, 2026
Merged

bdraco merged 2 commits into
masterfrom
replace_2009_repr_formats

Conversation

@bdraco

@bdraco bdraco commented Aug 29, 2026

Copy link
Copy Markdown
Member

Summary

Follow up to #1878 for #1835, revised after a counsel style review of the first draft: the textual format is fresh AND the implementation architecture is independently redesigned rather than restoring the 2009 delegation chain. Display is one module level formatter over structured field collections, with type and class labels as properties and each record class contributing its own field tuples; question reprs move off the 2009 bracket layout to the same field format.

The four public names from the old family (get_type, get_class_, entry_to_string, to_string) remain as permanent thin compatibility shims over the new formatter, since API names are not copyrightable and dropping public methods would break downstream consumers; nothing internal calls them.

Sample output: <DNSService name=demo._http._tcp.local. type=srv class=in ttl=120 (119 remaining) server=host.local. port=8080>

Seven tests pinning old format substrings were updated.

Test plan

  • full suite passes against a REQUIRE_CYTHON rebuild
  • shims verified callable; internal code uses only the new architecture

@github-actions

Copy link
Copy Markdown

Thanks for contributing! A quick note: this project is in the process of moving from LGPL-2.1 to Apache 2.0, see #1835.

By continuing with this pull request you are okay with your contribution, and your previous contributions to this repository, being offered under Apache 2.0.

If that does not work for you, no hard feelings; reply with the exact phrase I do not agree to the Apache 2.0 license or simply close this pull request, and nothing of yours will be included in the change.

@codecov

codecov Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.87%. Comparing base (77315dd) to head (a52e91b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1880   +/-   ##
=======================================
  Coverage   99.87%   99.87%           
=======================================
  Files          33       33           
  Lines        3882     3909   +27     
  Branches      567      568    +1     
=======================================
+ Hits         3877     3904   +27     
  Misses          3        3           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bdraco
bdraco force-pushed the remove_2009_repr_formats branch from ab09b75 to d84dd4f Compare August 29, 2026 23:05
@bdraco
bdraco force-pushed the replace_2009_repr_formats branch from bcb4a14 to 895921a Compare August 29, 2026 23:05
@bdraco
bdraco force-pushed the remove_2009_repr_formats branch from d84dd4f to 5584f3c Compare August 29, 2026 23:14
@bdraco
bdraco force-pushed the replace_2009_repr_formats branch from 895921a to acb0afe Compare August 29, 2026 23:14
Base automatically changed from remove_2009_repr_formats to master August 29, 2026 23:14
@bdraco
bdraco force-pushed the replace_2009_repr_formats branch 4 times, most recently from 554ecf9 to 8de8a13 Compare August 29, 2026 23:30
@bdraco
bdraco force-pushed the replace_2009_repr_formats branch from 8de8a13 to 30bc14f Compare August 29, 2026 23:31
@bdraco
bdraco marked this pull request as ready for review August 29, 2026 23:31
@codspeed

codspeed Bot commented Aug 29, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing replace_2009_repr_formats (a52e91b) with master (07a6038)

Open in CodSpeed

@bdraco
bdraco merged commit 77fb26e into master Aug 29, 2026
38 of 39 checks passed
@bdraco
bdraco deleted the replace_2009_repr_formats branch August 29, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant