Skip to content

test/encoding/check-generated: parallel testing by type - #55864

Merged
rosinL merged 1 commit into
ceph:mainfrom
rosinL:wip-speedup-check-generated
Mar 20, 2024
Merged

rosinL merged 1 commit into
ceph:mainfrom
rosinL:wip-speedup-check-generated

Conversation

@rosinL

@rosinL rosinL commented Mar 1, 2024 •

Copy link
Copy Markdown
Member

Fixes: https://tracker.ceph.com/issues/64210

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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
  • jenkins test windows
  • jenkins test rook e2e

@github-actions github-actions Bot added the tests label Mar 1, 2024
@rosinL

rosinL commented Mar 4, 2024

Copy link
Copy Markdown
Member Author

The omini* arm machines have poor single core, but many cores, the unittest check-generated.sh runs too slow. Parallel testing by type to use all the cores. After change, the unittest check-generated.sh time reduced from 7185.87 sec to 1220.25 sec, the Total Test time reduced from 7354.85 sec to 3596.27 sec, 2 times faster than before.
Before change on omini005:

284/290 Test #257: unittest-omap-manager .....................   Passed  1433.52 sec
285/290 Test #264: unittest-fltree-onode-manager .............   Passed  1511.33 sec
286/290 Test  #52: unittest_bufferlist .......................   Passed  2285.95 sec
287/290 Test  #32: run-rbd-unit-tests-61.sh ..................   Passed  2800.96 sec
288/290 Test #251: unittest-transaction-manager ..............   Passed  2658.07 sec
289/290 Test #148: readable.sh ...............................   Passed  3161.80 sec
290/290 Test #147: check-generated.sh ........................   Passed  7185.87 sec

99% tests passed, 3 tests failed out of 290

Total Test time (real) = 7354.85 sec

After change on omin005:

275/289 Test #147: check-generated.sh ........................   Passed  1220.25 sec
276/289 Test #257: unittest-seastore .........................   Passed  505.88 sec
277/289 Test #251: unittest-btree-lba-manager ................   Passed  706.17 sec
278/289 Test #254: unittest-object-data-handler ..............   Passed  802.35 sec
279/289 Test   #4: run-tox-mgr ...............................   Passed  1797.32 sec
        Start   3: teardown-venv-for-mgr
280/289 Test   #3: teardown-venv-for-mgr .....................   Passed    2.03 sec
281/289 Test  #34: run-rbd-unit-tests-127.sh .................   Passed  2084.72 sec
282/289 Test #167: unittest_erasure_code_shec_all ............   Passed  1916.94 sec
283/289 Test #256: unittest-omap-manager .....................   Passed  1477.49 sec
284/289 Test  #31: run-rbd-unit-tests-1.sh ...................   Passed  2349.84 sec
285/289 Test #263: unittest-fltree-onode-manager .............   Passed  1536.68 sec
286/289 Test  #52: unittest_bufferlist .......................   Passed  2558.27 sec
287/289 Test  #32: run-rbd-unit-tests-61.sh ..................   Passed  3036.44 sec
288/289 Test #250: unittest-transaction-manager ..............   Passed  2829.04 sec
289/289 Test #148: readable.sh ...............................   Passed  3431.07 sec

99% tests passed, 3 tests failed out of 289

Total Test time (real) = 3596.27 sec

@rosinL
rosinL requested review from idryomov and tchaikov March 4, 2024 01:51
@idryomov
idryomov requested review from a team and removed request for idryomov March 4, 2024 10:43
@rosinL
rosinL requested a review from ljflores March 6, 2024 08:57
@rosinL

rosinL commented Mar 7, 2024

Copy link
Copy Markdown
Member Author

@tchaikov @ljflores @rzarzynski would you help to take a review?

@rosinL
rosinL requested a review from Svelar March 8, 2024 01:14

@Svelar Svelar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@rzarzynski rzarzynski 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.

I very like this idea!

@NitzanMordhai, would you like to have a look?

Comment thread src/test/encoding/check-generated.sh Resolved
Comment thread src/test/encoding/check-generated.sh Resolved
Comment thread src/test/encoding/check-generated.sh Resolved

@NitzanMordhai NitzanMordhai 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.

I also like the idea! please see my comments

Comment thread src/test/encoding/check-generated.sh Resolved
Comment thread src/test/encoding/check-generated.sh Resolved
@rosinL
rosinL force-pushed the wip-speedup-check-generated branch from 92149aa to 4598116 Compare March 15, 2024 06:52
@rosinL
rosinL requested a review from NitzanMordhai March 15, 2024 07:02
@rosinL

rosinL commented Mar 18, 2024

Copy link
Copy Markdown
Member Author

jenkins test api

@rosinL

rosinL commented Mar 18, 2024

Copy link
Copy Markdown
Member Author

@NitzanMordhai please take a review

@NitzanMordhai NitzanMordhai 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.

LGTM! thanks

@rosinL rosinL added skip-teuthology For PRs whose changes do not have an effect on QA runs/changes are not being tested in Teuthology ready-to-merge labels Mar 20, 2024
@rosinL
rosinL merged commit 622068c into ceph:main Mar 20, 2024
@rosinL
rosinL deleted the wip-speedup-check-generated branch March 20, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge skip-teuthology For PRs whose changes do not have an effect on QA runs/changes are not being tested in Teuthology tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants