Skip to content

Comments

docs(changelog): version 1.11.0 [citest skip]#297

Merged
richm merged 1 commit intolinux-system-roles:mainfrom
richm:changelog-2025-10-21
Oct 21, 2025
Merged

docs(changelog): version 1.11.0 [citest skip]#297
richm merged 1 commit intolinux-system-roles:mainfrom
richm:changelog-2025-10-21

Conversation

@richm
Copy link
Contributor

@richm richm commented Oct 21, 2025

Update changelog and .README.html for version 1.11.0

Signed-off-by: Rich Megginson rmeggins@redhat.com

Summary by Sourcery

Update documentation and changelog for version 1.11.0 by introducing IPv6 ipset support and ipset_options, and recording recent CI enhancements in the changelog.

New Features:

  • Add IPv6 ipset support
  • Add support for ipset_options

CI:

  • Document CI enhancements for openSUSE Leap, EPEL testing, tox-lsr 3.12.0, JSON __bootc validation, and bump GitHub Action versions

Documentation:

  • Add ipset_options section to README with usage examples and removal instructions
  • Add note about IPv4/IPv6/MAC address consistency in ipset_entries

Update changelog and .README.html for version 1.11.0

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
@sourcery-ai
Copy link

sourcery-ai bot commented Oct 21, 2025

Reviewer's Guide

This PR updates the project documentation for version 1.11.0 by adding a new changelog entry and enhancing the .README.html to include ipset_options, IPv6 ipset support, and associated example code adjustments.

Class diagram for updated ipset documentation (ipset_options and IPv6 support)

classDiagram
    class Firewall {
        +ipset: string
        +ipset_type: string
        +short: string
        +description: string
        +ipset_entries: list
        +ipset_options: dict
        +state: string
        +permanent: bool
    }
    class ipset_options {
        +maxelem: int
        +hashsize: int
        +family: string
    }
    Firewall --> ipset_options : has
    class ipset_entries {
        +address: string
    }
    Firewall --> ipset_entries : has
    note for Firewall "Now supports IPv6 addresses in ipset_entries and ipset_options dict for advanced options."
Loading

File-Level Changes

Change Details Files
Add version 1.11.0 changelog entry
  • Added new [1.11.0] header with date
  • Documented new features including IPv6 ipset and ipset_options
  • Listed recent CI tooling and workflow updates
CHANGELOG.md
Enhance .README.html for ipset_options and IPv6 support
  • Added ipset_options to the TOC
  • Inserted ipset_options section with usage examples and removal instructions
  • Included note on IPv4/IPv6/MAC address mixing limitation
  • Updated JSON code sample styling and renumbered code block IDs
.README.html

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes - here's some feedback:

  • Several example code blocks (for masquerade, service, interface, etc.) appear to have been shifted or replaced with port examples—please verify each example still aligns with its description and isn’t duplicated or out of order.
  • Double-check that the new ipset_options TOC entry and section IDs match (including the "Removing options" anchor) so that in-page navigation links work correctly.
  • The note about not mixing IPv4/IPv6/MAC addresses is repeated under both ipset and ipset_entries—consider consolidating it into a single, prominent note to reduce redundancy.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Several example code blocks (for masquerade, service, interface, etc.) appear to have been shifted or replaced with port examples—please verify each example still aligns with its description and isn’t duplicated or out of order.
- Double-check that the new ipset_options TOC entry and section IDs match (including the "Removing options" anchor) so that in-page navigation links work correctly.
- The note about not mixing IPv4/IPv6/MAC addresses is repeated under both ipset and ipset_entries—consider consolidating it into a single, prominent note to reduce redundancy.

## Individual Comments

### Comment 1
<location> `.README.html:552` </location>
<code_context>
-<code>description</code>, <code>ipset_entries</code></p>
+<code>description</code>, <code>ipset_entries</code> and
+<code>ipset_options</code>.</p>
+<p><strong>NOTE</strong>: You cannot mix IPv4, IPv6, and MAC addresses
+in the same <code>ipset_entries</code> list. All addresses must be the
+same IP type. This is a limitation of the underlying firewalld
</code_context>

<issue_to_address>
**suggestion:** The note about address mixing is repeated in two places.

Consolidate the warning about address mixing to a single location or use cross-references to reduce redundancy and simplify future maintenance.

Suggested implementation:

```
<code>description</code>, <code>ipset_entries</code> and
<code>ipset_options</code>.</p>
<p><strong>NOTE</strong>: You cannot mix IPv4, IPv6, and MAC addresses in the same <code>ipset_entries</code> list. All addresses must be the same IP type. This is a limitation of the underlying firewalld implementation.</p>
<p>Defining an ipset with all optional fields:</p>

```

```
<!-- See the NOTE above about address type mixing in ipset_entries. -->

```
</issue_to_address>

### Comment 2
<location> `.README.html:647-656` </location>
<code_context>
+<h2 id="ipset_options">ipset_options</h2>
</code_context>

<issue_to_address>
**suggestion:** Consider listing which ipset options are supported or commonly used.

Including a brief list of common options like maxelem, hashsize, and family would improve usability for readers.
</issue_to_address>

### Comment 3
<location> `.README.html:661-663` </location>
<code_context>
+<span id="cb26-2"><a href="#cb26-2" aria-hidden="true" tabindex="-1"></a><span class="at">  </span><span class="fu">maxelem</span><span class="kw">:</span><span class="at"> </span><span class="dv">1000</span></span>
+<span id="cb26-3"><a href="#cb26-3" aria-hidden="true" tabindex="-1"></a><span class="at">  </span><span class="fu">hashsize</span><span class="kw">:</span><span class="at"> </span><span class="dv">512</span></span></code></pre></div>
+<h3 id="removing-options">Removing options</h3>
+<p><strong>NOTE</strong>: Options cannot be modified or removed if
+running the role during a container or image build (e.g. in a
+<code>bootc</code> Containerfile).</p>
</code_context>

<issue_to_address>
**suggestion:** Clarify the limitation on option removal in container builds.

Please specify which container technologies this limitation applies to and clarify if it affects all environments or only specific ones.

```suggestion
<p><strong>NOTE</strong>: Options cannot be modified or removed if
running the role during a container or image build using technologies such as <code>bootc</code>, Podman, or Docker (i.e., within a <code>Containerfile</code> or <code>Dockerfile</code>). This limitation applies specifically to the image build phase, not to containers running in standard environments.</p>
```
</issue_to_address>

### Comment 4
<location> `.README.html:664-669` </location>
<code_context>
+<p>If you want to remove an option, set <code>state: absent</code>, and
</code_context>

<issue_to_address>
**suggestion:** Consider clarifying the behavior when removing options with null values.

Providing a specific example of conditional removal would make the documentation clearer.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

<code>description</code>, <code>ipset_entries</code></p>
<code>description</code>, <code>ipset_entries</code> and
<code>ipset_options</code>.</p>
<p><strong>NOTE</strong>: You cannot mix IPv4, IPv6, and MAC addresses
Copy link

Choose a reason for hiding this comment

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

suggestion: The note about address mixing is repeated in two places.

Consolidate the warning about address mixing to a single location or use cross-references to reduce redundancy and simplify future maintenance.

Suggested implementation:

<code>description</code>, <code>ipset_entries</code> and
<code>ipset_options</code>.</p>
<p><strong>NOTE</strong>: You cannot mix IPv4, IPv6, and MAC addresses in the same <code>ipset_entries</code> list. All addresses must be the same IP type. This is a limitation of the underlying firewalld implementation.</p>
<p>Defining an ipset with all optional fields:</p>

<!-- See the NOTE above about address type mixing in ipset_entries. -->

Comment on lines +647 to +656
<h2 id="ipset_options">ipset_options</h2>
<p>A <code>dict</code> of key/value pairs of ipset options for the given
ipset. See <a
href="https://firewalld.org/documentation/ipset/options.html">firewalld
ipset options</a> for more information.</p>
<p>You usually do not have to specify the family. The role will default
to <code>family: inet</code> if <code>ipset_entries</code> contains IPv4
addresses, and will default to <code>family: inet6</code> if
<code>ipset_entries</code> contains IPv6 addresses</p>
<div class="sourceCode" id="cb26"><pre
Copy link

Choose a reason for hiding this comment

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

suggestion: Consider listing which ipset options are supported or commonly used.

Including a brief list of common options like maxelem, hashsize, and family would improve usability for readers.

Comment on lines +661 to +663
<p><strong>NOTE</strong>: Options cannot be modified or removed if
running the role during a container or image build (e.g. in a
<code>bootc</code> Containerfile).</p>
Copy link

Choose a reason for hiding this comment

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

suggestion: Clarify the limitation on option removal in container builds.

Please specify which container technologies this limitation applies to and clarify if it affects all environments or only specific ones.

Suggested change
<p><strong>NOTE</strong>: Options cannot be modified or removed if
running the role during a container or image build (e.g. in a
<code>bootc</code> Containerfile).</p>
<p><strong>NOTE</strong>: Options cannot be modified or removed if
running the role during a container or image build using technologies such as <code>bootc</code>, Podman, or Docker (i.e., within a <code>Containerfile</code> or <code>Dockerfile</code>). This limitation applies specifically to the image build phase, not to containers running in standard environments.</p>

Comment on lines +664 to +669
<p>If you want to remove an option, set <code>state: absent</code>, and
set the option value to <code>null</code>:</p>
<div class="sourceCode" id="cb27"><pre
class="sourceCode yaml"><code class="sourceCode yaml"><span id="cb27-1"><a href="#cb27-1" aria-hidden="true" tabindex="-1"></a><span class="fu">state</span><span class="kw">:</span><span class="at"> absent</span></span>
<span id="cb27-2"><a href="#cb27-2" aria-hidden="true" tabindex="-1"></a><span class="fu">ipset_options</span><span class="kw">:</span></span>
<span id="cb27-3"><a href="#cb27-3" aria-hidden="true" tabindex="-1"></a><span class="at"> </span><span class="fu">maxelem</span><span class="kw">:</span><span class="at"> </span><span class="ch">null</span></span></code></pre></div>
Copy link

Choose a reason for hiding this comment

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

suggestion: Consider clarifying the behavior when removing options with null values.

Providing a specific example of conditional removal would make the documentation clearer.

@richm richm merged commit f206b95 into linux-system-roles:main Oct 21, 2025
26 of 28 checks passed
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.26%. Comparing base (2d7c4ba) to head (d10ffbd).
⚠️ Report is 103 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #297      +/-   ##
==========================================
- Coverage   61.09%   58.26%   -2.83%     
==========================================
  Files           2        2              
  Lines         910     1294     +384     
==========================================
+ Hits          556      754     +198     
- Misses        354      540     +186     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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