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

Turn on prefetch task and enable hermetic builds #1555

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

simonbaird
Copy link
Member

Not sure if this will work, but let's try it.

Ref: https://issues.redhat.com/browse/EC-360

Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.71%. Comparing base (7c41228) to head (3971134).

❗ Current head 3971134 differs from pull request most recent head 9fc77e3. Consider uploading reports for the commit 9fc77e3 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1555   +/-   ##
=======================================
  Coverage   80.71%   80.71%           
=======================================
  Files          66       66           
  Lines        4813     4813           
=======================================
  Hits         3885     3885           
  Misses        928      928           
Flag Coverage Δ
generative 80.71% <ø> (ø)
integration 80.71% <ø> (ø)
unit 80.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@simonbaird simonbaird marked this pull request as draft April 23, 2024 21:17
@simonbaird
Copy link
Member Author

Build pipeline still shows prefetch being skipped, so this patch is not sufficient..

@simonbaird simonbaird force-pushed the try-hermetic-build-in-main-ci branch from fb13bf4 to 22b0554 Compare April 23, 2024 21:26
@simonbaird
Copy link
Member Author

I was tricked by the key ordering. Also I didn't understand what prefetch-input was for. (Now it's set to gomod.)

Pushed a new revision.

Copy link
Member

@zregvart zregvart left a comment

Choose a reason for hiding this comment

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

Would it make sense to use the cosign binary from the RHTAS cosign image?

.tekton/cli-main-ci-pull-request.yaml Outdated Show resolved Hide resolved
@simonbaird
Copy link
Member Author

Pushed a POC DNM commit to use the downstream cosign image to get a copy of the cosign binary.

@simonbaird simonbaird force-pushed the try-hermetic-build-in-main-ci branch from 0fd35bf to 3971134 Compare April 24, 2024 15:55
@simonbaird
Copy link
Member Author

Currently still fails on the microdnf install command.

This will fail because we are still doing a curl fetch of cosign and
some microdnf install.

Ref: https://issues.redhat.com/browse/EC-360
@simonbaird simonbaird force-pushed the try-hermetic-build-in-main-ci branch from 3971134 to 9fc77e3 Compare April 24, 2024 21:55
@@ -82,8 +99,10 @@ LABEL \
com.redhat.component="ec-cli"

# Install cosign and other tools we want to use in the Tekton task
# Todo: How to prefetch these rpms in the prefetch-dependencies task??
Copy link
Member

Choose a reason for hiding this comment

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

Watch this space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants