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

feat: enable dockerfile check for hermetic builds #1404

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

chmeliik
Copy link
Contributor

@chmeliik chmeliik commented Sep 24, 2024

STONEBLD-2795

Hermetic builds should now push the original dockerfile, not the modified one. Enable the check.

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue ticket number and link

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
  • I have updated labels (if needed)

Copy link

openshift-ci bot commented Sep 24, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@chmeliik
Copy link
Contributor Author

/test images

STONEBLD-2795

Hermetic builds should now push the original dockerfile, not the
modified one. Enable the check.

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from 2477cc9 to 48d560a Compare September 26, 2024 11:55
When the dockerfile image doesn't exist, print the expected image

Compare the content of the Dockerfile as a string, not as an array of
bytes. Otherwise the error message is not readable to humans.

Signed-off-by: Adam Cmiel <[email protected]>
@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from 48d560a to d73dae2 Compare September 27, 2024 08:13
@chmeliik
Copy link
Contributor Author

chmeliik commented Sep 27, 2024

pairs with konflux-ci/build-definitions#1462 (that one should be merged first)

@chmeliik chmeliik marked this pull request as ready for review September 27, 2024 08:44
@openshift-ci openshift-ci bot requested review from mmorhun and tnevrlka September 27, 2024 08:44
Copy link
Contributor

@tnevrlka tnevrlka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@chmeliik
Copy link
Contributor Author

/hold

until the build-definitions counterpart is merged

@chmeliik
Copy link
Contributor Author

/hold cancel

@tisutisu
Copy link
Contributor

/approve

Copy link

openshift-ci bot commented Sep 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mkosiarc, mmorhun, tisutisu, tkdchen, tnevrlka

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tisutisu tisutisu merged commit b3388c1 into konflux-ci:main Sep 27, 2024
10 checks passed
@chmeliik chmeliik deleted the dont-leave-dockerfile-modified branch September 27, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants