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

Update & fix to SeedingHitSet #36819

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Conversation

AdrianoDee
Copy link
Contributor

@AdrianoDee AdrianoDee commented Jan 27, 2022

PR description:

Updating SeedingHitSet:

PR validation:

  1. The tests run.
  2. Tested wfs 1030.0 and 1040.0with CMSSW_12_3_ASAN_X_2022-01-26-2300 (that was highlighting the failures) + this PR and it's running.

FYI: @makortel, @dan131riley, @Dr15Jones

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36819/27978

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @AdrianoDee for master.

It involves the following packages:

  • RecoTracker/TkSeedingLayers (reconstruction)

@jpata, @cmsbuild, @clacaputo, @slava77 can you please review it and eventually sign? Thanks.
@felicepantaleo, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @ebrondol, @gpetruc, @mmusich, @mtosi, @dgulhan this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@AdrianoDee
Copy link
Contributor Author

AdrianoDee commented Jan 27, 2022

test parameters:

  • workflows = 1030.0,1040.0
  • enable_test = threading,profiling

@AdrianoDee
Copy link
Contributor Author

please test

@AdrianoDee
Copy link
Contributor Author

type bug-fix

@@ -0,0 +1,80 @@
#include "RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Great to see a unit test! Please consider using catch2 system as it provides a richer set of testing abilities: https://github.com/catchorg/Catch2

We make use of Catch2 throughout the framework for our unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! I see, thanks. Sure, let me have a look at it to restructure the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've mimicked some other tests around the framework. Should be fine.

Comment on lines 37 to 38
std::copy_n(
hits.begin(), std::find(hits.begin(), hits.end(), nullPtr()) - hits.begin(), std::back_inserter(theRecHits));
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be implemented also

Suggested change
std::copy_n(
hits.begin(), std::find(hits.begin(), hits.end(), nullPtr()) - hits.begin(), std::back_inserter(theRecHits));
std::copy(
hits.begin(), std::find(hits.begin(), hits.end(), nullPtr()), std::back_inserter(theRecHits));

? (genuinely asking, I'd think so)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, actually it could: moving to it together with the suggestion below.

theRecHits.reserve(hits.size());
std::copy_n(
hits.begin(), std::find(hits.begin(), hits.end(), nullPtr()) - hits.begin(), std::back_inserter(theRecHits));
theSize = theRecHits.size() > 1 ? theRecHits.size() : 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

How about

Suggested change
theSize = theRecHits.size() > 1 ? theRecHits.size() : 0;
if (theRecHits.size() == 1) theRecHits.clear()

and in size() return theRecHits.size()?

Or something along

auto end = std::find(hits.begin(), hits.end(), nullPtr());
auto size = std::distance(hits.begin(), end);
if (size >= 2) {
  theRecHits.reserve(size);
  std::copy(hits.begin, end, std::back_inserter(theRecHits));
}

?

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-afa21f/22048/summary.html
COMMIT: 7299be6
CMSSW: CMSSW_12_3_ASAN_X_2022-01-26-2300/slc7_amd64_gcc11
Additional Tests: THREADING,PROFILING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36819/22048/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-afa21f/1030.0_RunHLTPhy2017B+RunHLTPhy2017B+TIER0EXPHPBS+ALCASPLITHPBS+ALCAHARVDHPBS+ALCAHARVDHPBSLOWPU
  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-afa21f/1040.0_RunZeroBias2017F+RunZeroBias2017F+TIER0RAWSIPIXELCAL+ALCASPLITSIPIXELCAL+ALCAHARVDSIPIXELCAL

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • Reco comparison had 73 failed jobs
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3449324
  • DQMHistoTests: Total failures: 1049328
  • DQMHistoTests: Total nulls: 65
  • DQMHistoTests: Total successes: 2399909
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.186 KiB( 42 files compared)
  • DQMHistoSizes: changed ( 10224.0 ): -0.117 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 11834.0 ): -0.352 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 250202.181 ): 0.533 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 25202.0 ): -0.246 KiB SiStrip/MechanicalView
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 181 log files, 42 edm output root files, 43 DQM output files

@clacaputo
Copy link
Contributor

@smuzaffar in the test there are 73 RECO comparisons jobs failing with this error

==23339==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.

Is it something that we should expect from ASAN builds?

@smuzaffar
Copy link
Contributor

please test
@clacaputo , comparison jobs are not working for ASAN IBs (I am thinking to disable the comparison for ASAN PR tests). The ASAN tests show that failing workflows are now running fine. I have started the tests for normal IBs now

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-afa21f/22056/summary.html
COMMIT: 7299be6
CMSSW: CMSSW_12_3_X_2022-01-27-2300/slc7_amd64_gcc10
Additional Tests: THREADING,PROFILING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36819/22056/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-afa21f/1030.0_RunHLTPhy2017B+RunHLTPhy2017B+TIER0EXPHPBS+ALCASPLITHPBS+ALCAHARVDHPBS+ALCAHARVDHPBSLOWPU
  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-afa21f/1040.0_RunZeroBias2017F+RunZeroBias2017F+TIER0RAWSIPIXELCAL+ALCASPLITSIPIXELCAL+ALCAHARVDSIPIXELCAL

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3449612
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3449590
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 42 files compared)
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36819/28036

  • This PR adds an extra 12KB to repository

  • Found files with invalid states:

    • RecoTracker/TkSeedingLayers/test/SeedingHitSet_t.cpp:

@cmsbuild
Copy link
Contributor

Pull request #36819 was updated. @jpata, @cmsbuild, @clacaputo, @slava77 can you please check and sign again.

@AdrianoDee
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-afa21f/22102/summary.html
COMMIT: d0ac3c6
CMSSW: CMSSW_12_3_X_2022-01-30-2300/slc7_amd64_gcc10
Additional Tests: THREADING,PROFILING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36819/22102/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-afa21f/1030.0_RunHLTPhy2017B+RunHLTPhy2017B+TIER0EXPHPBS+ALCASPLITHPBS+ALCAHARVDHPBS+ALCAHARVDHPBSLOWPU
  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-afa21f/1040.0_RunZeroBias2017F+RunZeroBias2017F+TIER0RAWSIPIXELCAL+ALCASPLITSIPIXELCAL+ALCAHARVDSIPIXELCAL

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3449612
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3449584
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 42 files compared)
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@clacaputo
Copy link
Contributor

+reconstruction

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 1, 2022

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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@mmusich
Copy link
Contributor

mmusich commented Feb 1, 2022

ping @cms-sw/orp-l2 it would be great to have this in, in order to test #36852 cleanly.

@perrotta
Copy link
Contributor

perrotta commented Feb 1, 2022

+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.

8 participants