Replies: 3 comments 3 replies
-
Not sure if this sort of check already exists, but I think it would be useful to include a small database to ensure backwards compatibility with the most recent tag. E.g., on CI for each PR we could run db = databaseFactory(pathToH5, "r")
with db:
r = db.load(0, 0, allowMissing=True) |
Beta Was this translation helpful? Give feedback.
-
I realized that we have several tests that already have an ARMI DB for testing, they build it on the fly from the test reactor: armi/armi/bookkeeping/db/tests/test_database3.py Lines 255 to 267 in 2dab122 I don't really love the idea of having a static binary file in the repo that can just go stale and bad at any time. I think whoever wrote all these DB tests had the right idea. |
Beta Was this translation helpful? Give feedback.
-
Late to the party. I like the idea. the main reason people don't like this sort of idea is database could be big and make git more bulky. i trust folks to make it small enough. even if its only 3 assemblies its at least something to do more tests on. it also might help us see backwards compatibly problems sooner. |
Beta Was this translation helpful? Give feedback.
-
In this PR, @john-science brought up the fact that a small DB could improve testing for CLI endpoints.
But I think having a DB might be beneficial for simplifying/improving many tests, or even adding new ones.
Is this a worthwhile effort? How small can we make this and have it still be useful? Feelings aren't hurt if this is shot down, just didn't want to lose the thought in a merged PR.
@keckler @albeanth @mgjarrett @onufer
Beta Was this translation helpful? Give feedback.
All reactions