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 testRandomService.sh unit test #22231

Merged
merged 1 commit into from Feb 15, 2018

Conversation

makortel
Copy link
Contributor

If the multistream test doesn't run any event on stream 2, the file StashStateStream.data_2 is not created. The logic in the test script looks like it should fall back to StashStateStream.data_1 (and ..._0), but the subsequent tests are done agains StashStateFork.data_1 (and ..._0). This PR fixes the unit test by replacing all StashStateFork with StashStateStream. I tested that the fix works by manually removing the ..._2/1/0 files (within the script).

I can only wonder why we haven't seen this case before the PR tests #22069 (where it has failed twice; or maybe we have seen it and it has just been though transient and ignored).

Tested in CMSSW_10_1_X_2018-02-08-2300, no changes expected.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

IOMC/RandomEngine

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@wddgit this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 15, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/26084/console Started: 2018/02/15 10:30

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 27
  • DQMHistoTests: Total histograms compared: 2465360
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2465190
  • DQMHistoTests: Total skipped: 169
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.05999999982 KiB( 22 files compared)
  • Checked 111 log files, 9 edm output root files, 27 DQM output files

@Dr15Jones
Copy link
Contributor

@wddgit please take a look.

@wddgit
Copy link
Contributor

wddgit commented Feb 15, 2018

This bug fix looks good. The problem was a bug in the test that I put in back in 2013 when I converted the service to support multithreading. Probably I made a mistake when I cut and pasted some test code used for the forking case and did not modify it properly for the multithreading case. The bug was only hit when stream 2 did not process any events. I suppose we never noticed because that did not happen often. It must have been almost never, because I do not remember seeing this unit test ever fail. I'm not sure why stream 2 was not getting events in the new PR test ... Thanks for fixing the bug.

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit c452143 into cms-sw:master Feb 15, 2018
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

5 participants