Skip to content

Improve testing and documentation for server firewall marks#13385

Open
JosiahWI wants to merge 5 commits into
apache:masterfrom
JosiahWI:feat/fwmark-server-side-test
Open

Improve testing and documentation for server firewall marks#13385
JosiahWI wants to merge 5 commits into
apache:masterfrom
JosiahWI:feat/fwmark-server-side-test

Conversation

@JosiahWI

Copy link
Copy Markdown
Contributor

This is the server-side test to complement the client-side test in #13383.

@JosiahWI
JosiahWI force-pushed the feat/fwmark-server-side-test branch from 40edfc4 to eafd2a7 Compare July 16, 2026 14:55
@JosiahWI
JosiahWI marked this pull request as ready for review July 16, 2026 14:55
Copilot AI review requested due to automatic review settings July 16, 2026 14:55
@ezelkow1
ezelkow1 self-requested a review July 16, 2026 14:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds the server-side counterpart to the existing client-side firewall mark test, plus clarifies documentation for TSHttpTxnServerPacketMarkSet, keeping the client/server packet mark APIs consistent and better specified.

Changes:

  • Add a new test plugin (server_packet_mark) to exercise both the “apply to live origin connection” and “seed for future origin connection” behaviors.
  • Extend the existing AuTest to validate both TSHttpTxnClientPacketMarkSet and TSHttpTxnServerPacketMarkSet via SO_MARK readback.
  • Update API documentation (header + Sphinx doc) to clarify semantics, platform behavior, and return value expectations.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/tools/plugins/server_packet_mark.cc New server-side packet mark test plugin exercising live + preconnect paths.
tests/tools/plugins/packet_mark_common.h Add server-side helper declarations; refine shared helper description.
tests/tools/plugins/packet_mark_common.cc Implement server-side helper wrappers for mark set + echo.
tests/tools/plugins/CMakeLists.txt Build the new server_packet_mark AuTest plugin.
tests/gold_tests/pluginTest/packet_mark/packet_mark.test.py Expand test to cover both client/server marks and add the preconnect seeding case.
include/ts/ts.h Clarify TSHttpTxnServerPacketMarkSet contract in the public API header.
doc/developer-guide/api/functions/TSHttpTxnServerPacketMarkSet.en.rst Improve server packet mark API documentation and remove incomplete text.

Comment thread tests/gold_tests/pluginTest/packet_mark/packet_mark.test.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 16, 2026 15:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread tests/gold_tests/pluginTest/packet_mark/packet_mark.test.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 16, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread tests/gold_tests/pluginTest/packet_mark/packet_mark.test.py Outdated
Copilot AI review requested due to automatic review settings July 16, 2026 16:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants