Skip to content

test/osd: build MockPeeringListener.cc into pg_backend_test_fixture - #73173

Open
mmgaggle wants to merge 1 commit into
ceph:mainfrom
mmgaggle:wip-kbader-pg-backend-fixture
Open

mmgaggle wants to merge 1 commit into
ceph:mainfrom
mmgaggle:wip-kbader-pg-backend-fixture

Conversation

@mmgaggle

Copy link
Copy Markdown
Member

Summary

OsdTestFixture owns a MockPeeringListener, and PGBackendTestFixture.cc destroys it. Only ec_peering_test_fixture built MockPeeringListener.cc, so unittest_backend_basics did not link (no vtable for MockPeeringListener).

This builds it in pg_backend_test_fixture, which every user of ec_peering_test_fixture also links.

Testing

unittest_backend_basics links. With the eight P0 fixes on main 169a0fb, its 736 tests pass.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

OsdTestFixture owns a MockPeeringListener, and PGBackendTestFixture.cc
destroys it. Only ec_peering_test_fixture built MockPeeringListener.cc,
so unittest_backend_basics did not link (no vtable for
MockPeeringListener). Build it in pg_backend_test_fixture, which every
user of ec_peering_test_fixture also links.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Kyle Bader <[email protected]>
@mmgaggle
mmgaggle requested a review from a team as a code owner October 27, 2026 22:30
@mmgaggle mmgaggle mentioned this pull request Oct 27, 2026
5 of 14 tasks
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

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