Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msmeissn
Copy link
Contributor

Fixed two reproducible builds issues found by Bernhard Wiedemann.

Description:

  • there were two date injections which caused reproducible build issues
  • I replaced by use SOURCE_DATE_EPOCH Method

Rationale:

  • we want reproducbible biuilds

Review Hints:

@openshift-ci openshift-ci bot added the needs-ok-to-test Used by openshift-ci bot. label Dec 10, 2024
Copy link

openshift-ci bot commented Dec 10, 2024

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@Mab879 Mab879 self-assigned this Dec 10, 2024
@Mab879 Mab879 added this to the 0.1.76 milestone Dec 10, 2024
Copy link
Member

@Mab879 Mab879 left a 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.

utils/create_scap_delta_tailoring.py Outdated Show resolved Hide resolved
Fixed two reproducible builds issues found by Bernhard Wiedemann.

Signed-off-by: Marcus Meissner <[email protected]>
Copy link

codeclimate bot commented Dec 11, 2024

Code Climate has analyzed commit d843e3d and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 3

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.

Copy link
Member

@Mab879 Mab879 left a 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())))))
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Used by openshift-ci bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants