-
Notifications
You must be signed in to change notification settings - Fork 16
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
Test CCSDS header across all instrument packet definitions #184
Test CCSDS header across all instrument packet definitions #184
Conversation
Some open questions for discussion:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks like a nice approach and is also a good way to make sure we are consistent as a team too!
Those are all really good questions that I don't know the answer to :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Need to change the typo on a broader scale but that can be done in another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good as a first pass! Definitely a few outstanding questions but I don't think any that would prevent a merge.
…alue; marking idex test as expected fail
…e header. Fixed SEG_FLGS typo
Ok, I believe this is good to go and the tests should pass once SWE, Ultra, and GLOWS update their XTCE files with the fixes implemented in #185 |
Updated GLOWS XTCE to pass these tests in #244 |
… failures before invoking test
pre-commit.ci autofix |
I think we still need to update the packet definitions for SWE and Ultra with the changes from #185 to get these tests to pass. @tech3371 @laspsandoval Could you update those files for SWE and Ultra (respectively)? Or if it is straightforward, I am happy to do it as part of this PR if you could share the Excel spreadsheet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an FYI, but you can always xfail Ultra for now and update it later the same way you're doing with idex I think? Or do you want to update idex as well and remove all xfails altogether? Just giving you an out to get your tests passing so you can merge this in and then let others update and remove xfails later so the onus isn't on you to do that work.
imap_processing/swe/packet_definitions/swe_packet_definition.xml
Outdated
Show resolved
Hide resolved
…Ultra packet definitions
@@ -358,14 +358,14 @@ | |||
</xtce:ParameterSet> | |||
<!-- End metadata --> | |||
<xtce:ContainerSet> | |||
<xtce:SequenceContainer name="CCSDSPacket" abstract="true"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laspsandoval Do you know what abstract="true"
does here? I had to remove it in order to get these tests to pass, and the other instrument's packet definitions don't have it. I am thinking that it is not important?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now see that removing this caused test_decom_apid_88*.py
to fail, so I guess it is important afterall!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up just making my header tests a bit more generalized to allow for this abstract
parameter.
…inerSet from testing criteria to allow for parameters to be defined within them
It was an easy fix to get the Ultra packet definitions to pass, so I just did that. I think I will leave IDEX as |
…st-ccsds-header Test CCSDS header across all instrument packet definitions
Change Summary
Overview
This PR adds a new folder for storing tests that can be run on all instruments, and a new test that tests the existence and proper formatting of the CCSDS header in all packet definition XML files.
New Dependencies
None
New Files
imap_processing/tests/test_decom.py
Deleted Files
None
Updated Files
None
Testing
This test is currently failing on the
idex_packet_defintiion.xml
file (which currently doesn't contain a properly formatted header) and a handful of others (due to inconsistency with consideringSHCOARSE
as part of the header or not).