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

Alignment/MillePedeAlignmentAlgorithm/test_CreateFileLists: give a better error message in case of failure #38271

Merged
merged 1 commit into from Jun 8, 2022

Conversation

iarspider
Copy link
Contributor

PR description:

test_CreateFileLists failed in CMSSW_12_5_ASAN_X_2022-06-06-1100 IB: log


Traceback (most recent call last):
  File "/cvmfs/cms-ib.cern.ch/week0/el8_amd64_gcc10/cms/cmssw/CMSSW_12_5_ASAN_X_2022-06-06-1100/bin/el8_amd64_gcc10/mps_create_file_lists.py", line 12, in <module>
    exec(open(subprocess.check_output(["which", "tkal_create_file_lists.py"], universal_newlines=True).rstrip()).read())
  File "<string>", line 1174, in <module>
  File "<string>", line 44, in main
  File "<string>", line 120, in create
  File "<string>", line 375, in _request_dataset_information
  File "/cvmfs/cms-ib.cern.ch/week0/el8_amd64_gcc10/external/python3/3.9.6-67e5cf5b4952101922f1d4c8474baa39/lib/python3.9/multiprocessing/pool.py", line 771, in get
    raise self._value
UnboundLocalError: local variable 'das_data' referenced before assignment

This PR fixes the error by initializing das_data with some generic state before running DAS query. Also, the PR updates test definition to use tkal_create_file_lists.py instead of mps_create_file_lists.py as indicated in mps_create_file_lists.py:

=======================================
This script is moved to its new home in
tkal_create_file_lists.py              
(in Alignment/CommonAlignment/scripts).
=======================================

PR validation:

Test ran locally without errors

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38271/30422

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2022

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

It involves the following packages:

  • Alignment/CommonAlignment (alca)
  • Alignment/MillePedeAlignmentAlgorithm (alca)

@cmsbuild, @malbouis, @tvami, @yuanchao, @francescobrivio can you please review it and eventually sign? Thanks.
@pakhotin, @mmusich, @adewit, @tocheng, @tlampen 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

@iarspider
Copy link
Contributor Author

please test

@tvami
Copy link
Contributor

tvami commented Jun 7, 2022

@cmsbuild , please test for CMSSW_12_5_ASAN_X

@tvami
Copy link
Contributor

tvami commented Jun 7, 2022

type bugfix,trk

@@ -9,7 +9,7 @@
</library>
<test name="test_PrepareInputDb" command="mps_prepare_input_db.py -g auto:run2_data -r 1 -o ${LOCALTOP}/tmp/test_input.db"/>
<test name="test_MpsWorkFlow" command="test_mps-workflow.sh"/>
<test name="test_CreateFileLists" command="mps_create_file_lists.py --test-mode --force -i /OVERRIDDEN/IN/TESTMODE -o ${LOCALTOP}/tmp/mps_create_file_lists -n 200000 --iov 42 --iov 174"/>
<test name="test_CreateFileLists" command="tkal_create_file_lists.py --test-mode --force -i /OVERRIDDEN/IN/TESTMODE -o ${LOCALTOP}/tmp/mps_create_file_lists -n 200000 --iov 42 --iov 174"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we move this unit tests to Alignment/CommonAlignment as tkal_create_file_lists.py exists in that package. Any change in this script will then allow its automatic testing

@smuzaffar
Copy link
Contributor

I think this is not going to fix the unit test but it should give a proper error message. I think test randomly fails for ASAN IBs e.g. kibana shows that it works some time.

@iarspider
Copy link
Contributor Author

I think this is not going to fix the unit test but it should give a proper error message.

Exactly. I will update the PR title.

@iarspider iarspider changed the title Fix failure of test Alignment/MillePedeAlignmentAlgorithm/test_CreateFileLists Alignment/MillePedeAlignmentAlgorithm/test_CreateFileLists: give a better error message in case of failure Jun 7, 2022
@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2022

-1

Failed Tests: UnitTests
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-66f74b/25342/summary.html
COMMIT: 60f2be1
CMSSW: CMSSW_12_5_ASAN_X_2022-06-06-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38271/25342/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-66f74b/25342/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-66f74b/25342/git-merge-result

Unit Tests

I found errors in the following unit tests:

---> test test_MpsWorkFlow had ERRORS

@tvami
Copy link
Contributor

tvami commented Jun 7, 2022

I understand that this #38271 (comment) is expected. Shall this change #38271 (comment) be done before approving?

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-66f74b/25339/summary.html
COMMIT: 60f2be1
CMSSW: CMSSW_12_5_X_2022-06-07-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38271/25339/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: 50
  • DQMHistoTests: Total histograms compared: 3652078
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3652054
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@smuzaffar
Copy link
Contributor

I understand that this #38271 (comment) is expected.

yes

Shall this change #38271 (comment) be done before approving?

yes, this change be done in a separate PR

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 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)

@qliphy
Copy link
Contributor

qliphy commented Jun 8, 2022

+1

@cmsbuild cmsbuild merged commit 09a3567 into cms-sw:master Jun 8, 2022
@iarspider iarspider deleted the fix-test_CreateFileLists branch June 8, 2022 18:49
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