Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw/dbstore: Add dbstore-tests to make check #44939

Merged
merged 1 commit into from Feb 9, 2022

Conversation

soumyakoduri
Copy link
Contributor

Include and run dbstore-tests as part of make check target

Fixes: https://tracker.ceph.com/issues/54193
Signed-off-by: Soumya Koduri skoduri@redhat.com

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)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@soumyakoduri
Copy link
Contributor Author

jenkins test make check

@dang
Copy link
Contributor

dang commented Feb 8, 2022

DBStore tests are failing

@soumyakoduri
Copy link
Contributor Author

DBStore tests are failing

yes..current master seems to be broken for dbstore (which is fixed as part of #44813).

However the error reported in this jenkins test seems to be related to environment set-up. (https://jenkins.ceph.com/job/ceph-pull-requests/89893/testReport/junit/projectroot.src.rgw.store.dbstore/tests/dbstore_tests/). I am not sure why it complains so. I will try retriggering the test post rebasing to PR#44813

@soumyakoduri soumyakoduri force-pushed the wip-skoduri-dbstore-tests branch 3 times, most recently from 8258cc7 to 75e756c Compare February 9, 2022 06:41
Include and run dbstore-tests as part of `make check` target

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
@soumyakoduri
Copy link
Contributor Author

jenkins test api

@soumyakoduri
Copy link
Contributor Author

@dang @cbodley .. 'make check' succeeds now. Please review the changes.

Also noticed that with this change the dbstore test binary is no longer generated in $build/bin/ path (in vstart build). Could you please let me know if there is any cmd to run only this particular unittest (on local dev vstart cluster) without having to run entire 'make check'.

@dang
Copy link
Contributor

dang commented Feb 9, 2022

Unit tests aren't built in the default targets. You can run "make tests" to build the unit tests, but not run them. Then you can run the individual test.

@cbodley
Copy link
Contributor

cbodley commented Feb 9, 2022

Also noticed that with this change the dbstore test binary is no longer generated in $build/bin/ path (in vstart build). Could you please let me know if there is any cmd to run only this particular unittest (on local dev vstart cluster) without having to run entire 'make check'.

from the jenkins build log, i do see it under bin/:

[2244/2502] Linking CXX executable bin/unittest_dbstore_tests

@soumyakoduri
Copy link
Contributor Author

Unit tests aren't built in the default targets. You can run "make tests" to build the unit tests, but not run them. Then you can run the individual test.

Also noticed that with this change the dbstore test binary is no longer generated in $build/bin/ path (in vstart build). Could you please let me know if there is any cmd to run only this particular unittest (on local dev vstart cluster) without having to run entire 'make check'.

from the jenkins build log, i do see it under bin/:

[2244/2502] Linking CXX executable bin/unittest_dbstore_tests

Oh. But it wasn't generated as part of just "ninja vstart" build

@soumyakoduri
Copy link
Contributor Author

Unit tests aren't built in the default targets. You can run "make tests" to build the unit tests, but not run them. Then you can run the individual test.

okay. Thanks!

@cbodley
Copy link
Contributor

cbodley commented Feb 9, 2022

you can also build individual targets with make unittest_dbstore_tests or ninja unittest_dbstore_tests. cmake --build . --target unittest_dbstore_tests works with both

@cbodley cbodley merged commit 2f6f32b into ceph:master Feb 9, 2022
@soumyakoduri
Copy link
Contributor Author

you can also build individual targets with make unittest_dbstore_tests or ninja unittest_dbstore_tests. cmake --build . --target unittest_dbstore_tests works with both

cool thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants