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

fixed the assignment of the token count in several integration tests #280

Merged
merged 3 commits into from
Apr 3, 2023

Conversation

bieryAtFnal
Copy link
Collaborator

I recently noticed that the multi_output_file_test occasionally generates "trigger inhibit" warnings when running the SWTPG part of its testing. As part of investigating this, I noticed that the token count that is being requested in the integtest script was not being taken into account. The problem was that the location of the token_count parameter in the dataflow daqconf schema tree changed, but the integtests were not correspondingly updated I fixed that problem and tweaked a couple of the token_count calculations. With these changes, the multi_output_file_test integtest runs more reliably without trigger inhibit warnings. To test these changes, I ran each of the 5 modified integtests from the develop branch and then from the kbiery/integtest_token_count_fix branch and compared the generated configurations under /tmp/pytest_of_/pytest_N/jsonX and /tmp/pytest_of_/pytest_N-1/jsonX to confirm that values for the DFO busy and free parameters were different from the default values (which were being used before the changes).

@bieryAtFnal bieryAtFnal added the bug Something isn't working label Apr 2, 2023
@plasorak
Copy link
Contributor

plasorak commented Apr 2, 2023

That's weird, daqconf shouldn't in principle let you do that, the configuration generation should fail if the key doesn't exist in the schema

Copy link
Member

@eflumerf eflumerf left a comment

Choose a reason for hiding this comment

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

lgtm, tests behave normally

@bieryAtFnal bieryAtFnal merged commit bd40439 into develop Apr 3, 2023
@bieryAtFnal bieryAtFnal deleted the kbiery/integtest_token_count_fixes branch April 3, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants