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 legacy tests #510

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Fix legacy tests #510

merged 3 commits into from
Nov 6, 2023

Conversation

jmcarcell
Copy link
Member

@jmcarcell jmcarcell commented Nov 5, 2023

BEGINRELEASENOTES

  • Fix legacy tests; an extra argument was being passed and default in the .cpp file example_frame.root was being used which (almost) always exists (because there is a another test creating it) so it was hard to notice.
    ENDRELEASENOTES

Maybe this default should be changed so as to be more explicit so this can't happen but it would make the implementation in the CMakeLists in root_io a bit less clean.

Copy link
Collaborator

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

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

Good catch. Not sure I understand the diff though or why it worked before. Previously it got 3 arguments, so how did it end up reading the default example_frame.root?

@jmcarcell
Copy link
Member Author

It's the default value and it's changed based on the number of arguments:
https://github.com/AIDASoft/podio/blob/master/tests/root_io/read_frame_root.cpp#L10
And since there is another test creating it with the current version of podio, reading that will never fail. I only noticed it because when running the tests in parallel it didn't work which makes no sense; it was reading the file that was just being created in all the legacy tests and that wasn't working.

@tmadlener
Copy link
Collaborator

Ah, its a argc == 2. Then the fix that would at least have caught this issue would be to also have an additional check for > 2 in the executable, right?

@jmcarcell
Copy link
Member Author

Yep, I added the check

Copy link
Collaborator

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

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

Thanks.

@tmadlener
Copy link
Collaborator

closing and re-opening to trigger actions, which seem to have gone missing somehow for the last commit.

@tmadlener tmadlener closed this Nov 6, 2023
@tmadlener tmadlener reopened this Nov 6, 2023
@tmadlener tmadlener merged commit 9ad574a into AIDASoft:master Nov 6, 2023
17 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.

2 participants