Skip to content

Modified integtests to make use of new utility functions for setting trigger config params#325

Open
bieryAtFnal wants to merge 5 commits into
developfrom
kbiery/integtest_trigger_choices
Open

Modified integtests to make use of new utility functions for setting trigger config params#325
bieryAtFnal wants to merge 5 commits into
developfrom
kbiery/integtest_trigger_choices

Conversation

@bieryAtFnal

Copy link
Copy Markdown
Contributor

Description

These changes make use of the changes made in the integrationtest repo to provide utility functions that set various trigger parameters for integration tests (DUNE-DAQ/integrationtest#161).

There are instructions for testing these changes in DUNE-DAQ/integrationtest#161, and these changes need to be tested and merged together the with changes in the integrationtest repo.

Type of change

  • Optimization (non-breaking change that improves code/performance)

Testing checklist

  • Full set of integration tests pass (dunedaq_integtest_bundle.sh)

@MRiganSUSX MRiganSUSX left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Few small comments here

Comment thread integtest/trigger_bitwords_test.py Outdated
Comment on lines +203 to +208
utility_functions.set_RTCM_trigger_params(coincidence_bitword_conf, trigger_rate=40,
readout_window_backshift_ticks=0, readout_window_before_ticks=62500,
readout_window_after_ticks=62500)
utility_functions.set_fake_hsi_trigger_params(coincidence_bitword_conf, trigger_rate=30,
readout_window_before_ticks=62500,
readout_window_after_ticks=62500)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The 62500-tick readout window for kRandom triggers in coincidence_bitword_conf is now set only on RandomTCMakerConf via set_RTCM_trigger_params. The TCReadoutMap entry def-random-readout — which exists in the template XML — is left at its defaults of 1000/1001 ticks. This is safe today because def-random-readout is not currently referenced in the MLT tc_readout_map relation. But if it ever is added there, TCReadoutMap supersedes, and the test's readout window would silently collapse from 62500 to 1000 ticks.

TLDR, this is one of those places where things work atm, but are relying on assumptions and choices made in the default base config but can break.
(not sure what to do about that, I'm just thinking out loud here)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. There are other integtests that have this same feature, such as the long_window_readout_test. As you say, if something in the underlying configuration or code changes, then the tests will need to change also.

Comment thread integtest/readout_type_scan_test.py Outdated
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.

3 participants