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

Properly handle arrays where index can be negative #21151

Merged
merged 1 commit into from Nov 9, 2017

Conversation

Dr15Jones
Copy link
Contributor

Instead of relying on remembering to always adding an offset to the
index being passed to the array, we now use a helper class which
always does the offsetting for us. The helper also properly initializes
the size of the array to be able to contain the min and max bounds.

Instead of relying on remembering to always adding an offset to the
index being passed to the array, we now use a helper class which
always does the offsetting for us. The helper also properly initializes
the size of the array to be able to contain the min and max bounds.
@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

The code-checks are being triggered in jenkins.

@Dr15Jones
Copy link
Contributor Author

@davidlange6 @smuzaffar why does this show up as new-package-pending when the code I changed is already in the release?

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-21151/1800

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

L1Trigger/L1TTwinMux

The following packages do not have a category, yet:

L1Trigger/L1TTwinMux
Please create a PR for https://github.com/cms-sw/cms-bot/blob/master/categories.py to assign category

@cmsbuild can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @kreczko this is something you requested to watch as well.
@davidlange6, @slava77 you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

assign l1

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

New categories assigned: l1

@mulhearn,@rekovic you have been requested to review this Pull request/Issue and eventually sign? Thanks

@davidlt
Copy link
Contributor

davidlt commented Nov 3, 2017

The package was never added to https://github.com/cms-sw/cms-bot/blob/master/categories.py

smuzaffar added a commit to cms-sw/cms-bot that referenced this pull request Nov 3, 2017
add L1Trigger/L1TTwinMux under L1 category ( cms-sw/cmssw#21151 )
@smuzaffar
Copy link
Contributor

@Dr15Jones , L1Trigger/L1TTwinMux is now added under l1.

@davidlange6
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/24162/console Started: 2017/11/03 18:43

@Dr15Jones
Copy link
Contributor Author

@smuzaffar Thanks!

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 3, 2017

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2900266
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2900094
  • DQMHistoTests: Total skipped: 171
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 10 edm output root files, 26 DQM output files

@Dr15Jones
Copy link
Contributor Author

The only difference is in the number of MessageLogger Errors and Warnings (I think they decreased) in the workflow 10224.0.

@Dr15Jones
Copy link
Contributor Author

@davidlange6 this should fix the crashes in the aarch64 crashes in the IBs.

@@ -69,12 +93,12 @@ void RPCHitCleaner::run(const edm::EventSetup& c) {
for( auto chamber = m_inrpcDigis.begin(); chamber != m_inrpcDigis.end(); ++chamber ){
RPCDetId detid = (*chamber).first;
if(detid.region()!=0 ) continue; //Region = 0 Barrel
int strips[5] = {0};
BxToStrips strips;
Copy link
Contributor

Choose a reason for hiding this comment

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

hi @Dr15Jones @rekovic - so I guess the real bug here is that either strips[5] should have been strips[7] (3+3+1=7) or that fabs(digi->bx())>3 should have been >=3 (so that 2+2+1=5). @rekovic - can you confirm which one it is sometime today?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The first bug I found was this one
https://github.com/cms-sw/cmssw/pull/21151/files#diff-bb4facdb289f9efc85f12aad556325e7R124

It was a missing ‘+3’ in the array index calculation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ignore that, I shouldn’t reply to messages before having coffee in the morning.

Copy link
Contributor

Choose a reason for hiding this comment

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

seems @rekovic won't comment so we'll go forward here. (and push in 94x)

@mrodozov
Copy link
Contributor

mrodozov commented Nov 8, 2017

I ran the failing wf's on arm with this changes and I confirm this PR is fixing most of the fails (maybe all)

@davidlange6
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 4fa2511 into cms-sw:master Nov 9, 2017
@Dr15Jones Dr15Jones deleted the fixL1ArrayOverruns branch November 15, 2017 14:22
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

6 participants