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

Utilities/StaticAnalyzer: Add check for func name in DiGraph before calling has_path. #33018

Merged
merged 3 commits into from Mar 3, 2021

Conversation

gartung
Copy link
Member

@gartung gartung commented Feb 28, 2021

Resolves cms-sw/framework-team#56

Fix for error in generating report from static analyzers:

+ ./create_statics_esd_reports.sh
Traceback (most recent call last):
  File "./data-class-funcs.py", line 95, in <module>
    for n,nbrdict in G.adjacency_iter():
AttributeError: 'DiGraph' object has no attribute 'adjacency_iter'
Traceback (most recent call last):
  File "./statics.py", line 43, in <module>
    if nx.has_path(G,tfunc,static): 
  File "/cvmfs/cms-ib.cern.ch/nweek-02669/slc7_amd64_gcc900/external/py2-networkx/2.2-ljfedo/lib/python2.7/site-packages/networkx/algorithms/shortest_paths/generic.py", line 40, in has_path
    nx.shortest_path(G, source, target)
  File "/cvmfs/cms-ib.cern.ch/nweek-02669/slc7_amd64_gcc900/external/py2-networkx/2.2-ljfedo/lib/python2.7/site-packages/networkx/algorithms/shortest_paths/generic.py", line 170, in shortest_path
    paths = nx.bidirectional_shortest_path(G, source, target)
  File "/cvmfs/cms-ib.cern.ch/nweek-02669/slc7_amd64_gcc900/external/py2-networkx/2.2-ljfedo/lib/python2.7/site-packages/networkx/algorithms/shortest_paths/unweighted.py", line 223, in bidirectional_shortest_path
    raise nx.NodeNotFound(msg.format(source, target))
networkx.exception.NodeNotFound: Either source edm::EventProcessor::beginRun(const edm::ProcessHistoryID &, edm::RunNumber_t, _Bool &, _Bool &) or target (anonymous namespace)::ChannelStatus is not in G
Traceback (most recent call last):
  File "/pool/condor/dir_27113/jenkins/workspace/ib-run-static-checks/CMSSW_11_3_X_2021-02-27-1100/bin/slc7_amd64_gcc900/edm-global-class.py", line 99, in <module>
    for n,nbrdict in G.adjacency_iter():
AttributeError: 'DiGraph' object has no attribute 'adjacency_iter'

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33018/21301

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @gartung (Patrick Gartung) for master.

It involves the following packages:

Utilities/StaticAnalyzers

@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @wddgit 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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33018/21302

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

Pull request #33018 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@gartung
Copy link
Member Author

gartung commented Mar 1, 2021

@smuzaffar

@gartung
Copy link
Member Author

gartung commented Mar 1, 2021

please test

@makortel
Copy link
Contributor

makortel commented Mar 1, 2021

Resolves makortel/framework#56

That should be put in the PR description for the automation.

@gartung
Copy link
Member Author

gartung commented Mar 1, 2021

@makortel Thanks!

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 1, 2021

-1

Failed Tests: RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-7f5e03/13169/summary.html
COMMIT: 95911c1
CMSSW: CMSSW_11_3_X_2021-03-01-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33018/13169/install.sh to create a dev area with all the needed externals and cmssw changes.

  • DAS Queries: The DAS query tests failed, see the summary page for details.

RelVals-INPUT

  • 11725.0DAS Error
  • 11925.0DAS Error

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 5 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2750983
  • DQMHistoTests: Total failures: 11
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2750950
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 156 log files, 37 edm output root files, 37 DQM output files

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33018/21338

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2021

Pull request #33018 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33018/21339

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2021

Pull request #33018 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again.

@gartung
Copy link
Member Author

gartung commented Mar 2, 2021

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 2, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-7f5e03/13211/summary.html
COMMIT: dab7f93
CMSSW: CMSSW_11_3_X_2021-03-02-1100/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/33018/13211/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 37
  • DQMHistoTests: Total histograms compared: 2750983
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2750960
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 36 files compared)
  • Checked 156 log files, 37 edm output root files, 37 DQM output files

@gartung
Copy link
Member Author

gartung commented Mar 3, 2021

@makortel

@makortel
Copy link
Contributor

makortel commented Mar 3, 2021

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 3, 2021

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)

@qliphy
Copy link
Contributor

qliphy commented Mar 3, 2021

+1

@cmsbuild cmsbuild merged commit 31994b9 into cms-sw:master Mar 3, 2021
@gartung gartung deleted the gartung-SA-has-path-fix branch March 3, 2021 13:45
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.

Report all Modules in IB workflows that call EventSetupRecord::get() and integrate with Jenkins
4 participants