Skip to content

Use registry.localhost in e2e CI workflow#16669

Open
linkvt wants to merge 1 commit into
knative:mainfrom
linkvt:fix-e2e-ko-sbom-push
Open

Use registry.localhost in e2e CI workflow#16669
linkvt wants to merge 1 commit into
knative:mainfrom
linkvt:fix-e2e-ko-sbom-push

Conversation

@linkvt

@linkvt linkvt commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

go-containerregistry PR #2281 (in v0.21.6) narrowed the insecure HTTP fallback from *.local to *.localhost only. ko v0.19.0 picked this up, breaking the e2e workflow's local registry push:

Get "https://registry.local:5000/v2/": http: server gave HTTP response to HTTPS client

Renaming the registry from registry.local to registry.localhost fixes this.

Might need to cherry-pick this onto release branches in case they also use the latest ko version.

Changes

  • Update registry.local to registry.localhost in e2e workflow
  • Pass registry-authority to setup-kind to match

@knative-prow

knative-prow Bot commented Jul 22, 2026

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

@knative-prow knative-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 22, 2026
@knative-prow

knative-prow Bot commented Jul 22, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: linkvt
Once this PR has been reviewed and has the lgtm label, please assign skonto for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@knative-prow
knative-prow Bot requested review from dprotaso, dsimansk and skonto July 22, 2026 08:05
@knative-prow knative-prow Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 22, 2026
@linkvt
linkvt force-pushed the fix-e2e-ko-sbom-push branch from 8a6f35b to 68f9eb4 Compare July 22, 2026 08:13
@knative-prow knative-prow Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 22, 2026
@linkvt linkvt changed the title Disable SBOM generation in e2e CI workflow Use registry.localhost in e2e CI workflow Jul 22, 2026
@linkvt
linkvt force-pushed the fix-e2e-ko-sbom-push branch from 68f9eb4 to dfff8ed Compare July 22, 2026 08:15
go-containerregistry PR knative#2281 (included in v0.21.6) narrowed the
insecure HTTP fallback heuristic from *.local to *.localhost only.
ko v0.19.0 picked this up via its dependency bump, breaking the
e2e workflow's local registry push with:

  Get "https://registry.local:5000/v2/":
  http: server gave HTTP response to HTTPS client

Rename the registry from registry.local to registry.localhost to
match the new heuristic. This aligns with RFC 6761 (*.localhost is
the correct domain for loopback services; *.local is mDNS per
RFC 6762).

Also pass registry-authority to setup-kind so the test job's
registry uses the same hostname.

Signed-off-by: Vincent Link <vlink@redhat.com>
@linkvt
linkvt force-pushed the fix-e2e-ko-sbom-push branch from dfff8ed to 31eedf0 Compare July 22, 2026 08:45
@linkvt
linkvt marked this pull request as ready for review July 22, 2026 11:04
@knative-prow knative-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 22, 2026
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.35%. Comparing base (dbce551) to head (31eedf0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16669      +/-   ##
==========================================
+ Coverage   80.29%   80.35%   +0.05%     
==========================================
  Files         217      217              
  Lines       13568    13568              
==========================================
+ Hits        10895    10902       +7     
+ Misses       2308     2304       -4     
+ Partials      365      362       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant