Skip to content

feat: enable dockerfile check for hermetic builds#1404

Merged
tisutisu merged 2 commits into
konflux-ci:mainfrom
chmeliik:dont-leave-dockerfile-modified
Sep 27, 2024
Merged

feat: enable dockerfile check for hermetic builds#1404
tisutisu merged 2 commits into
konflux-ci:mainfrom
chmeliik:dont-leave-dockerfile-modified

Conversation

@chmeliik

@chmeliik chmeliik commented Sep 24, 2024

Copy link
Copy Markdown
Contributor

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)

@openshift-ci

openshift-ci Bot commented Sep 24, 2024

Copy link
Copy Markdown

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
Copy Markdown
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 <acmiel@redhat.com>
@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 <acmiel@redhat.com>
@chmeliik chmeliik force-pushed the dont-leave-dockerfile-modified branch from 48d560a to d73dae2 Compare September 27, 2024 08:13
@chmeliik

chmeliik commented Sep 27, 2024

Copy link
Copy Markdown
Contributor Author

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

@tnevrlka tnevrlka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@chmeliik

Copy link
Copy Markdown
Contributor Author

/hold

until the build-definitions counterpart is merged

@chmeliik

Copy link
Copy Markdown
Contributor Author

/hold cancel

@tisutisu

Copy link
Copy Markdown
Contributor

/approve

@openshift-ci

openshift-ci Bot commented Sep 27, 2024

Copy link
Copy Markdown

[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

Details 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
@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