Skip to content

Improve some HDF5 error handling#605

Merged
adamdempsey90 merged 9 commits intomainfrom
dempsey/hdf5
Feb 13, 2026
Merged

Improve some HDF5 error handling#605
adamdempsey90 merged 9 commits intomainfrom
dempsey/hdf5

Conversation

@adamdempsey90
Copy link
Collaborator

PR Summary

This hardens how the spiner EOS reads the hdf5 files, e.g., check the file exists, check groups exist, etc.

This could also be applied in Spiner when the databox reads from the file.

Partially address #592

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by using the make format command after configuring with cmake.
  • Document any new features, update documentation for changes made.
  • Make sure the copyright notice on any files you modified is up to date.
  • After creating a pull request, note it in the CHANGELOG.md file.
  • LANL employees: make sure tests pass both on the github CI and on the Darwin CI

If preparing for a new release, in addition please check the following:

  • Update the version in cmake.
  • Move the changes in the CHANGELOG.md file under a new header for the new release, and reset the categories.
  • Maintainers: ensure spackages are up to date:
    • LANL-internal team, update XCAP spackages
    • Current maintainer of upstream spackages, submit MR to spack

Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Good improvement. Will need to add a changelog and for tests to pass.

EOS_ERROR(msg);
}
return;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

we might want to move these to spiner instead of singularity-eos. But they're fine here for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I debated doing that, but convinced myself that singularity could use hdf5 irrespective of spiner. Maybe that's a philosophical distinction and not a real one in practice

Copy link
Collaborator

Choose a reason for hiding this comment

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

No that's a fair point... I was just thinking of code reuse. We can leave it here for now.

@Yurlungur
Copy link
Collaborator

@adamdempsey90 did tests pass on re-git? If so, I think this is good to go.

@adamdempsey90
Copy link
Collaborator Author

@adamdempsey90 did tests pass on re-git? If so, I think this is good to go.

They did not. Still investigating.

@adamdempsey90
Copy link
Collaborator Author

@adamdempsey90 did tests pass on re-git? If so, I think this is good to go.

They did not. Still investigating.

The issue was checking for the attributes in the wrong group. The check before trying to access an attribute is redundant, though. Now I just check the return status.

Tests pass now.

@adamdempsey90 adamdempsey90 merged commit 16dfc46 into main Feb 13, 2026
9 checks passed
@adamdempsey90 adamdempsey90 deleted the dempsey/hdf5 branch February 13, 2026 20:08
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

Comments