-
Notifications
You must be signed in to change notification settings - Fork 700
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 two reproducible build issues #12696
base: master
Are you sure you want to change the base?
Conversation
Hi @msmeissn. Thanks for your PR. I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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.
Thanks for the PR.
Please review my comment and please address PEP8 issues identified by Code Climate.
Fixed two reproducible builds issues found by Bernhard Wiedemann. Signed-off-by: Marcus Meissner <[email protected]>
Code Climate has analyzed commit d843e3d and detected 3 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 50.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 60.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.
Thanks for the PR.
Just some minor issues with PEP8 findings.
@@ -741,7 +742,7 @@ def _create_benchmark_xml_skeleton(self, env_yaml): | |||
root.set('xml:lang', 'en-US') | |||
|
|||
status = ET.SubElement(root, '{%s}status' % XCCDF12_NS) | |||
status.set('date', datetime.date.today().strftime("%Y-%m-%d")) | |||
status.set('date', time.strftime( "%Y-%m-%d", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))) |
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.
Please review the PEP8 finding on this line.
Fixed two reproducible builds issues found by Bernhard Wiedemann.
Description:
Rationale:
Review Hints: