Skip to content

tests: e2e: validate sets and empty sets survive daemon restarts#424

Merged
qdeslandes merged 1 commit intofacebook:mainfrom
qdeslandes:add_set_restore_tests
Feb 18, 2026
Merged

tests: e2e: validate sets and empty sets survive daemon restarts#424
qdeslandes merged 1 commit intofacebook:mainfrom
qdeslandes:add_set_restore_tests

Conversation

@qdeslandes
Copy link
Contributor

Add set restore scenarios to restore_attached and restore_non_attached tests. Each creates a chain with both a populated set and an empty set, restarts the daemon, and verifies that set elements are preserved and filtering works after restore.

Copilot AI review requested due to automatic review settings February 18, 2026 07:59
@meta-cla meta-cla bot added the cla signed label Feb 18, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds end-to-end coverage to ensure bpfilter daemon restarts correctly restore chains that include both populated and empty named sets, and that filtering behavior continues to work after restore.

Changes:

  • Extend restore_attached to create sets on an attached chain, restart the daemon, and validate set contents + filtering post-restore.
  • Extend restore_non_attached to create sets on a non-attached chain, restart the daemon, validate set contents, then attach and validate filtering.
  • Add output-based assertions (bfcli chain get + grep) to confirm expected set entries are present after restart.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
tests/e2e/daemon/restore_non_attached.sh Adds a non-attached chain restore scenario exercising populated + empty named sets and post-restore attach/filtering.
tests/e2e/daemon/restore_attached.sh Adds an attached chain restore scenario exercising populated + empty named sets and post-restore filtering behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add set restore scenarios to restore_attached and restore_non_attached
tests. Each creates a chain with both a populated set and an empty set,
restarts the daemon, and verifies that set elements are preserved and
filtering works after restore.
@qdeslandes qdeslandes force-pushed the add_set_restore_tests branch from 5729193 to 967fb4b Compare February 18, 2026 08:09
@qdeslandes qdeslandes merged commit b8301b2 into facebook:main Feb 18, 2026
29 checks passed
@qdeslandes qdeslandes deleted the add_set_restore_tests branch February 18, 2026 08:16
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.

1 participant

Comments