Reorganize Schemas to allow for better schema reviews#586
Conversation
50862f3 to
eaa2976
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #586 +/- ##
==========================================
- Coverage 96.69% 96.17% -0.52%
==========================================
Files 4 8 +4
Lines 272 445 +173
==========================================
+ Hits 263 428 +165
- Misses 9 17 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
271c821 to
cd730a7
Compare
braingram
left a comment
There was a problem hiding this comment.
Thanks for putting this together. I left a few comments and have a few general questions/suggestions.
The added versioning tests will be a welcome improvement. Are they (and the other test reorganization) required for this PR? If not would you split those off into a different PR(s)?
Is there any reason to include the latest files in the wheel/distribution? I can't think of one since if everything is configured as expected they are duplicates of the latest schemas/manifests. They are being included with the current PR but perhaps some pyproject.toml modification could exclude them or alternatively they could be moved outside of the src directory.
Finally, what are your thoughts on exluding the fps and tvac files from latest? It's my understanding these should never change.
The "latest" tests are by definition part of this PR as they are literally testing that the files in the reorganization follow the scheme we intend them to follow. Technically the versioning tests can be separated and merged before these changes, though I based the tests off the changes in made for the latest tests which means it will be annoying to sort the history out. In either case, I think the versioning tests are rather important to keep us consistent with the schema versioning principles.
The |
5152f5d to
d76e9c9
Compare
RTB has discussed possibly updating these schemas, so it is probably good to include them in this versioned remodel. |
5fcdddb to
4478e0a
Compare
|
@WilliamJamieson is it no longer the plan to pull the non-latest test reorganization out into a separate PR(s)? |
@PaulHuwe what is your opinion? |
4478e0a to
c840e63
Compare
@braingram see #592. The changes here have been rebased on top of that PR. |
Thanks. I will take a look at that PR. |
c840e63 to
a13949b
Compare
This works for me. I'll close #592. |
4db69b4 to
e1adcc6
Compare
braingram
left a comment
There was a problem hiding this comment.
Thanks again for putting this together. I left a couple comments/suggestions. The flattening during across version comparisons is losing some items. I left a comment/suggestion for fixing this and using an asdf method.
ca78445 to
0be880b
Compare
Co-authored-by: Brett Graham <brettgraham@gmail.com>
Apply suggestions from code review Co-authored-by: Brett Graham <brettgraham@gmail.com>
Instead only compair the current state to all the former versions.
Co-authored-by: Brett Graham <brettgraham@gmail.com>
This way the local tags will be up to date
6fecdeb to
e0a892b
Compare
|
For completeness, the regression tests pass just fine immediately post merge: https://github.com/spacetelescope/RegressionTests/actions/runs/14845873819/job/41679620194 |
Closes #577
This PR Is the full version of PR #578, incorporating all current schema files.
This PR also adds unit tests which check that previously published (to PyPi designated by a tag) are not altered. These tests along with the tests on the latest schemas for keeping URIs within the latest schemas up to date should guide developers through the process of deciding if schemas need to be bumped and handling the cascade of related changes throughout RAD.
Tasks
radtests.docs/page.no-changelog-entry-needed.)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see below for change types).romancalregression test (https://github.com/spacetelescope/RegressionTests/actions/workflows/romancal.yml) with this branch installed ("git+https://github.com/<fork>/rad@<branch>").roman_datamodelsutilities and tests.News fragment change types:
changes/<PR#>.feature.rst: new featurechanges/<PR#>.bugfix.rst: fixes an issuechanges/<PR#>.doc.rst: documentation changechanges/<PR#>.removal.rst: deprecation or removal of public APIchanges/<PR#>.misc.rst: infrastructure or miscellaneous change