Skip to content

Remove feature "randomized capitalization"#207

Merged
marc-vanderwal merged 4 commits into
zonemaster:developfrom
marc-vanderwal:feature/#160/part-2
May 20, 2025
Merged

Remove feature "randomized capitalization"#207
marc-vanderwal merged 4 commits into
zonemaster:developfrom
marc-vanderwal:feature/#160/part-2

Conversation

@marc-vanderwal

@marc-vanderwal marc-vanderwal commented Sep 2, 2024

Copy link
Copy Markdown
Contributor

Purpose

This PR removes an experimental and previously deprecated “randomized capitalization” feature from Zonemaster-LDNS.

Context

See #160 for the issue and discussion, and #206 for the initial deprecation warnings.

Changes

Remove the “randomized capitalization” feature from Zonemaster-LDNS. Update the documentation accordingly.

How to test this PR

In the root of the source tree of Zonemaster::LDNS, run cpanm -v --configure-args="--random" .

Among the roughly 30 first lines of output, expect this output (the version number of Zonemaster-LDNS may vary):

Configuring Zonemaster-LDNS-4.0.2 ... Unknown option: random

Also, expect unit tests (which have been updated) to pass.

@marc-vanderwal marc-vanderwal added this to the v2025.1 milestone Sep 2, 2024
@tgreenx tgreenx linked an issue Sep 12, 2024 that may be closed by this pull request
@tgreenx tgreenx added the V-Minor Versioning: The change gives an update of minor in version. label Sep 12, 2024
@tgreenx

tgreenx commented May 6, 2025

Copy link
Copy Markdown
Contributor

@marc-vanderwal This draft PR can now proceed (rebased on latest develop), as v2024.2 has been released.

@marc-vanderwal

Copy link
Copy Markdown
Contributor Author

@marc-vanderwal This draft PR can now proceed (rebased on latest develop), as v2024.2 has been released.

I agree: all preconditions are met, so let’s proceed with the change.

No longer document the --randomize command-line argument to Makefile.PL,
which is about to be removed.
Remove the possibility to define RANDOMIZE in CFLAGS by removing
--randomize as a valid CLI argument.
Remove the deprecated feature entirely.
Remove a case-insensitive comparison that was done in t/rr.t in order to
make unit tests pass on installations where the now removed case
randomization feature was enabled.

Previously, this equality comparison was done case-sensitively, which
only worked when this feature was disabled.

With this change, we can now be almost certain that we don’t do any case
alterations anymore.
@marc-vanderwal marc-vanderwal force-pushed the feature/#160/part-2 branch from f274b99 to 69054fb Compare May 7, 2025 07:22
@marc-vanderwal marc-vanderwal marked this pull request as ready for review May 7, 2025 07:23
@marc-vanderwal marc-vanderwal changed the title [DO NOT MERGE YET] Remove feature "randomized capitalization" Remove feature "randomized capitalization" May 7, 2025
@marc-vanderwal

Copy link
Copy Markdown
Contributor Author

I’ve just rebased on latest origin/develop with no further change. Reviews welcome!

@tolvmannen

Copy link
Copy Markdown

Looks fine in Ubuntu 22.04

@tolvmannen tolvmannen added the S-ReleaseTested Status: The PR has been successfully tested in release testing label Jun 23, 2025
@matsduf

matsduf commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

Degrade from "V-Minor" to "V-Patch" since the feature is unused by Zonemaster and this component is for Zonemaster only.

@matsduf matsduf added V-Patch Versioning: The change gives an update of patch in version. and removed V-Minor Versioning: The change gives an update of minor in version. labels Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-ReleaseTested Status: The PR has been successfully tested in release testing V-Patch Versioning: The change gives an update of patch in version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove feature "Randomized capitalization"

4 participants