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

Fix FKDTree unit test #31379

Merged
merged 1 commit into from Sep 7, 2020
Merged

Fix FKDTree unit test #31379

merged 1 commit into from Sep 7, 2020

Conversation

silviodonato
Copy link
Contributor

PR description:

Small fix in FKDTree unit test. After the fix, the points generated outside the box (numberOfPointsOutsideTheBox) cannot stay on the box faces anymore.
Solve #28841

PR validation:

Run 1000 times ../tmp/slc7_amd64_gcc820/src/CommonTools/RecoAlgos/test/FKDTree_t/FKDTree_t with no error.
Previously, I got 2 errors in plain CMSSW_11_2_X_2020-09-06-2300.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31379/18201

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

A new Pull Request was created by @silviodonato (Silvio Donato) for master.

It involves the following packages:

CommonTools/RecoAlgos

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @jdolen, @ahinzmann, @riga, @abbiendi, @jhgoh, @makortel, @gkasieczka, @hatakeyamak, @clelange this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@silviodonato
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

The tests are being triggered in jenkins.

@@ -46,9 +46,11 @@ void TestFKDTree::test2D() {
for (unsigned int i = 0; i < numberOfPointsOutsideTheBox; ++i) {
float x = static_cast<float>(rand()) / (static_cast<float>(RAND_MAX));
float y;
Copy link
Contributor

@perrotta perrotta Sep 7, 2020

Choose a reason for hiding this comment

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

It is probably irrelevant in the context of this unit test, but the y remains undefined if x is outside minX and maxX...

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

+1
Tested at: b04abe7
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-730279/9162/summary.html
CMSSW: CMSSW_11_2_X_2020-09-06-2300
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-730279/9162/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2609667
  • DQMHistoTests: Total failures: 5
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2609639
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.004 KiB( 34 files compared)
  • DQMHistoSizes: changed ( 10224.0 ): 0.004 KiB MessageLogger/Warnings
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@perrotta
Copy link
Contributor

perrotta commented Sep 7, 2020

+1

  • Technical, it makes the unit test succeed
  • I would personally further assign an initialization value to the y variable, so that it cannot remain unitialized (see Fix FKDTree unit test #31379 (review)): I agree anyhow that this would not change the results of the test, though

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2020

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@silviodonato
Copy link
Contributor Author

+1

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.

None yet

3 participants