-
Notifications
You must be signed in to change notification settings - Fork 714
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 timestamps for data-stream composition #12625
Conversation
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.
@ggbecker What do you think about the date
attribute of the status
element within the Benchmark
element? I think this one should be changed as well because it depends on the current date. See build_yaml.py
line 426.
@ggbecker What is your opinion on the comment above? |
This got fixed in this commit: d561c6a But I believe we could still use the |
c6da20a
to
e39298d
Compare
Yes, the format seems to be a problem, because the schema validation fails. The |
Unify and use the constant timestamp across the whole code. Previously oscap info command would print null for such cases. Stream: scap_org.open-scap_datastream_from_xccdf_ssg-fedora-xccdf.xml Generated: (null)
This constant derives from the same timestamp used across everywhere but uses a slightly different format YYYY-mm-dd so it passes XCCDF validation.
e39298d
to
ca6a49d
Compare
It should be now resolved, let's see how the CI goes. |
Code Climate has analyzed commit ca6a49d and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 66.6% (50% is the threshold). This pull request will bring the total coverage in the repository to 61.9% (0.0% change). View more on Code Climate. |
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 have reviewed the timestamp attributes in the built data stream both in with and without the SOURCE_DATE_EPOCH variable.
Description:
Unify and use the constant timestamp across the whole code.
Previously oscap info command would print null for such cases. Stream: scap_org.open-scap_datastream_from_xccdf_ssg-fedora-xccdf.xml Generated: (null)
Review Hints:
Previous:
~ 0 $ oscap info "/usr/share/xml/scap/ssg/content/ssg-fedora-ds.xml"
Document type: Source Data Stream
Imported: 2024-08-12T02:00:00
Stream: scap_org.open-scap_datastream_from_xccdf_ssg-fedora-xccdf.xml
Generated: (null)
Version: 1.3
Checklists:
Current:
oscap info build/ssg-rhel9-ds.xml
Document type: Source Data Stream
Imported: 2024-11-21T14:20:20
Stream: scap_org.open-scap_datastream_from_xccdf_ssg-rhel9-xccdf.xml
Generated: 2024-11-21T13:20:19
Version: 1.3
Checklists: