Skip to content

Use correct describer in pipelines provider#3600

Merged
knative-prow[bot] merged 4 commits intoknative:mainfrom
creydr:use-correct-describer-in-pipelines-provider
Apr 10, 2026
Merged

Use correct describer in pipelines provider#3600
knative-prow[bot] merged 4 commits intoknative:mainfrom
creydr:use-correct-describer-in-pipelines-provider

Conversation

@creydr
Copy link
Copy Markdown
Member

@creydr creydr commented Apr 10, 2026

Currently the pipelines provider tries to get the function information from the Knative Service. As we have additional deploy methods (raw + keda), this does not work anymore in all cases.
This PR addresses it and gets the deployments information correctly based on the deployer.

@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos April 10, 2026 11:44
@knative-prow knative-prow Bot added the size/M 🤖 PR changes 30-99 lines, ignoring generated files. label Apr 10, 2026
@creydr
Copy link
Copy Markdown
Member Author

creydr commented Apr 10, 2026

/cc @gauron99 @matejvasek

@knative-prow knative-prow Bot requested review from gauron99 and matejvasek April 10, 2026 11:44
Comment thread pkg/functions/client.go
Subscriptions []Subscription `json:"subscriptions" yaml:"subscriptions"`
Labels map[string]string `json:"labels" yaml:"labels" xml:"-"`
Middleware Middleware `json:"middleware,omitempty" yaml:"middleware,omitempty"`
Generation int64 `json:"generation,omitempty" yaml:"generation,omitempty"`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is simply added, so we can say if some operations were an update or a create. See for example here:

if obj.Generation == 1 {
fmt.Fprintf(os.Stderr, "✅ Function deployed in namespace %q and exposed at URL: \n %s\n", obj.Namespace, obj.Route)
} else {
fmt.Fprintf(os.Stderr, "✅ Function updated in namespace %q and exposed at URL: \n %s\n", obj.Namespace, obj.Route)
}

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.30%. Comparing base (18e294f) to head (dbce57a).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
pkg/pipelines/tekton/pipelines_provider.go 75.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3600      +/-   ##
==========================================
+ Coverage   56.24%   56.30%   +0.05%     
==========================================
  Files         180      180              
  Lines       20479    20512      +33     
==========================================
+ Hits        11519    11549      +30     
- Misses       7759     7761       +2     
- Partials     1201     1202       +1     
Flag Coverage Δ
e2e 36.21% <60.00%> (+0.10%) ⬆️
e2e go 32.86% <62.50%> (+0.29%) ⬆️
e2e node 28.60% <62.50%> (+0.22%) ⬆️
e2e python 33.23% <62.50%> (+0.30%) ⬆️
e2e quarkus 28.74% <62.50%> (+0.24%) ⬆️
e2e rust 28.17% <62.50%> (+0.22%) ⬆️
e2e springboot 26.63% <62.50%> (+0.25%) ⬆️
e2e typescript 28.71% <62.50%> (+0.22%) ⬆️
e2e-config-ci 18.08% <0.00%> (-0.05%) ⬇️
integration 17.49% <87.50%> (+0.05%) ⬆️
unit macos-14 43.34% <0.00%> (-0.02%) ⬇️
unit macos-latest 43.34% <0.00%> (-0.02%) ⬇️
unit ubuntu-24.04-arm 43.53% <0.00%> (-0.03%) ⬇️
unit ubuntu-latest 44.22% <0.00%> (-0.03%) ⬇️
unit windows-latest 43.37% <0.00%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@matejvasek
Copy link
Copy Markdown
Contributor

/approve

@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented Apr 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, matejvasek

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

@knative-prow knative-prow Bot added the approved 🤖 PR has been approved by an approver from all required OWNERS files. label Apr 10, 2026
@matejvasek
Copy link
Copy Markdown
Contributor

Looks good but I am not sure if this would be all tested. Maybe modify TestInt_Remote_Default to run for each deployer?

@knative-prow knative-prow Bot added size/L 🤖 PR changes 100-499 lines, ignoring generated files. and removed size/M 🤖 PR changes 30-99 lines, ignoring generated files. labels Apr 10, 2026
@creydr creydr force-pushed the use-correct-describer-in-pipelines-provider branch from 3fda878 to f1d0438 Compare April 10, 2026 13:18
creydr and others added 2 commits April 10, 2026 16:10
The pipeline integration test was failing for raw and keda
deployers because their services are only reachable via
cluster-internal DNS (*.default.svc). The test used a plain
http.Get which can't resolve these names from the runner.

Use an in-cluster dialer (socat pod) for raw/keda, matching
the pattern already used in deployer integration tests.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@matejvasek
Copy link
Copy Markdown
Contributor

/lgtm

@knative-prow knative-prow Bot added the lgtm 🤖 PR is ready to be merged. label Apr 10, 2026
@knative-prow knative-prow Bot merged commit c45e172 into knative:main Apr 10, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved 🤖 PR has been approved by an approver from all required OWNERS files. lgtm 🤖 PR is ready to be merged. size/L 🤖 PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants