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

RegexSD: change ddsim interface to use a dictionary instead of a list, fix infinite loop #1317

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

andresailer
Copy link
Member

Too much hassle to ensure that the list was not duplicating the entries in the list

The original implementation also caused infinite loop by appending to the list that was iterated over causing ddsim to use up all the memory and not do anything

Added a test with an example ddsim steering file

@SanghyunKo @lopezzot: please note, but this time actually tested to run

BEGINRELEASENOTES

  • DDSim: regexSD fix infinite loop, but change the interface from assignment to dictionary entries. Have to ensure only a single entry of a detector is given to the RegexSD

ENDRELEASENOTES

Copy link

github-actions bot commented Aug 23, 2024

Test Results

   14 files     14 suites   7h 51m 17s ⏱️
  366 tests   167 ✅ 0 💤 199 ❌
2 517 runs  2 317 ✅ 0 💤 200 ❌

For more details on these failures, see this check.

Results for commit 6a80e91.

♻️ This comment has been updated with latest results.

@andresailer
Copy link
Member Author

There is an issue in the LCG nightly builds, hopefully fixed over the weekend.
I want to do some more tests, because the BoxOfStraws isn't behaving as I expected it to behave.

@@ -632,4 +632,18 @@ if (DD4HEP_USE_GEANT4)
REGEX_PASS "ResourcesAfterConstruction ConstructSD: VmRSS"
REGEX_FAIL "Error;ERROR; Exception"
)

dd4hep_add_test_reg(ClientTests_ddsim_setup_BoxOfStraws
Copy link
Member Author

Choose a reason for hiding this comment

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

The test should only run when DDG4 and LCIO are used for building.
Also currently gets no hits. Not sure if shooting in a bad direction, or SD not working.

@andresailer andresailer force-pushed the DDSIM_regexSDFixes branch 2 times, most recently from 6e0f7ea to 6135977 Compare August 24, 2024 15:12
Too much hassle to ensure that the list was not duplicating the entries in the list

The original implementation also caused infinite loop by appending to the list that was iterated over causing ddsim to use up all the memory and not do anything

Added a test with an example ddsim steering file
@andresailer
Copy link
Member Author

Will merge this, so it shows up in the nightlies, and fix the things that still need fixing in next PR.

@andresailer andresailer merged commit 9c6040c into AIDASoft:master Aug 25, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant