Skip to content

UPSTREAM-SYNC: Merge https://github.com/knative/func:main (c24bf20) into main - #47

Open
openshift-rebasebot[bot] wants to merge 39 commits into
mainfrom
rebase-bot-main
Open

UPSTREAM-SYNC: Merge https://github.com/knative/func:main (c24bf20) into main#47
openshift-rebasebot[bot] wants to merge 39 commits into
mainfrom
rebase-bot-main

Conversation

@openshift-rebasebot

@openshift-rebasebot openshift-rebasebot Bot commented Aug 26, 2026

Copy link
Copy Markdown

This is an automated rebase PR generated by RebaseBot.

Summary

  • Source: https://github.com/knative/func:main
  • Destination: https://github.com/openshift/functions:main
  • 4 new upstream commits

Logs

View job log

bumping k8s.io/apiserver 8e159d6...9e8ccaf:
  > 9e8ccaf Update dependencies to v0.35.8 tag
  > eed1f67 Merge pull request # 140558 from lalitc375/automated-cherry-pick-of-# 140419-origin-release-1.35
  > 8dc4f6e Merge pull request # 141225 from liggitt/golang-deps-1-35
  > ad1860f Fix linter warnings
  > 10557b6 Update golang.org/x deps
  > 8485020 Fix ObjectVal ConvertToNative for structpb and refine mutation tests
bumping k8s.io/apiextensions-apiserver 226e148...198da7e:
  > 198da7e Update dependencies to v0.35.8 tag
  > 97b0154 Merge pull request # 141225 from liggitt/golang-deps-1-35
  > a506cd6 Update golang.org/x deps
bumping knative.dev/pkg c9015f8...d2a153a:
  > d2a153a Bump the k8s group with 5 updates (# 3386)
bumping k8s.io/apimachinery 3e341b5...eb97e1c:
  > eb97e1c Merge pull request # 141225 from liggitt/golang-deps-1-35
  > b3ca310 Update golang.org/x deps
bumping k8s.io/api cfdecb5...b65ac35:
  > b65ac35 Update dependencies to v0.35.8 tag
  > 5066193 Merge pull request # 141225 from liggitt/golang-deps-1-35
  > 215d9ba Update golang.org/x deps
bumping k8s.io/client-go d2a9618...3614e2d:
  > 3614e2d Update dependencies to v0.35.8 tag
  > 7bd3cb5 Merge pull request # 141225 from liggitt/golang-deps-1-35
  > 0fab4f6 Update golang.org/x deps

Signed-off-by: Knative Automation <automation@knative.team>
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Aug 26, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@openshift-rebasebot[bot]: This pull request is an upstream sync and explicitly references no jira issue.

Details

In response to this:

This is an automated rebase PR generated by RebaseBot.

Summary

  • Source: https://github.com/knative/func:main
  • Destination: https://github.com/openshift/functions:main
  • 1 new upstream commit

Logs

View job log

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 26, 2026
@openshift-ci
openshift-ci Bot requested review from gauron99 and maschmid August 26, 2026 12:14
@openshift-ci

openshift-ci Bot commented Aug 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-rebasebot[bot]
Once this PR has been reviewed and has the lgtm label, please assign gauron99 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-automation and others added 3 commits August 27, 2026 03:38
bumping knative.dev/eventing ec5c1d1...973bbbc:
  > 973bbbc feat(delivery): add maximum backoff duration (# 9279)
bumping knative.dev/serving 98e5ef9...618b0c2:
  > 618b0c2 upgrade to latest dependencies (# 16682)

Signed-off-by: Knative Automation <automation@knative.team>
* feat(mcp): add logs tool for retrieving function logs

- Introduced a new 'logs' tool to fetch recent logs from deployed functions.
- Updated documentation to include usage instructions for the logs command.
- Added tests to ensure correct argument handling and mutual exclusivity between path and name parameters.

This enhancement allows users to diagnose function behavior by accessing logs, improving the overall usability of the MCP tools.

* fix(mcp): update logs tool description and error message for mutual exclusivity

- Revised the logs tool description to clarify the usage of the 'since' argument.
- Updated error message in logsHandler to indicate that 'path' and 'name' are mutually exclusive, allowing for at most one instead of exactly one.

These changes enhance the clarity of the tool's documentation and improve user feedback on input errors.

* refactor(mcp): enhance logs tool documentation and error handling

- Updated the logs tool description to clarify that it retrieves a finite snapshot of logs and does not stream them.
- Revised error handling to enforce that exactly one of 'path' or 'name' must be provided, improving user feedback on input errors.
- Adjusted tests to reflect changes in argument handling and output validation.

These modifications improve the clarity and usability of the logs tool, ensuring users have a better understanding of its functionality and constraints.

* refactor(mcp): enhance logs tool functionality and documentation

- Updated the logs tool to return a finite snapshot of logs, with improved handling for large outputs by introducing a truncation mechanism.
- Clarified the documentation regarding the usage of the 'namespace' parameter, ensuring it is only valid when used with 'name'.
- Added tests to validate the new truncation behavior, warning messages, and error handling for invalid parameter combinations.

These changes improve the usability and clarity of the logs tool, ensuring users receive accurate feedback and can effectively manage log outputs.

* refactor(mcp): enhance logs tool functionality and documentation

- Updated the logs tool to clarify that it returns a finite snapshot of logs, with a default of the most recent 1000 lines per pod.
- Improved handling of the 'namespace' parameter, ensuring it is only valid with 'name' and does not affect 'path' mode.
- Enhanced tests to validate new behaviors, including truncation of logs and bounding of warning messages.

These changes improve the usability and clarity of the logs tool, ensuring users receive accurate feedback and can effectively manage log outputs.
Co-authored-by: Knative Automation <automation@knative.team>
@openshift-rebasebot openshift-rebasebot Bot changed the title UPSTREAM-SYNC: Merge https://github.com/knative/func:main (c7ff584) into main UPSTREAM-SYNC: Merge https://github.com/knative/func:main (c24bf20) into main Aug 27, 2026
@openshift-ci openshift-ci Bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 27, 2026
openshift-rebasebot Bot and others added 15 commits August 28, 2026 12:11
Signed-off-by: red-hat-konflux-kflux-prd-rh02[bot] <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
# Conflicts:
#	.github/workflows/functions.yaml
Signed-off-by: red-hat-konflux-kflux-prd-rh02[bot] <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Image created from 'https://github.com/openshift/functions?rev=118c473d4638a1715b48e40a41bde05acbaf036d'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Image created from 'https://github.com/openshift/functions?rev=742703827838ea99d31ecc2620d4fd35594bfd09'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
gauron99 and others added 20 commits August 28, 2026 12:11
Image created from 'https://github.com/openshift/functions?rev=40da2bea5e098cfca6aa8639bc3812317f18aa4e'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Image created from 'https://github.com/openshift/functions?rev=5e01e567a732197e7c334aa9d32e030ef59898dd'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Update Dockerfiles and Tekton PipelineRun definitions to support
hermetic builds with cachi2 dependency prefetching.

Dockerfile changes (func and utils):
- Source /cachi2/cachi2.env before go build when available, setting
  GOPROXY and GOMODCACHE to use prefetched dependencies. The conditional
  check ensures non-hermetic builds continue to work unchanged.

Tekton pipeline changes (all 4 PipelineRuns):
- Add prefetch-input parameter with gomod type to prefetch Go module
  dependencies before the build.
- Set hermetic parameter to "true" to enable network-isolated builds.
- build-args with GO_BUILDER Brew image override was already present.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add rpms.in.yaml listing the socat and tar packages installed by
Dockerfile.utils.rhel9, along with the UBI 9 repo configuration
(redhat.repo) extracted from the ubi9/ubi-minimal base image and
the generated rpms.lock.yaml lockfile.

Update the prefetch-input in the functions-utils Tekton pipelines
(push and pull-request) to combine gomod and rpm prefetch types.
The functions-func pipelines are left unchanged as Dockerfile.func.rhel9
does not install any RPM packages.

The lockfile was generated with:
  rpm-lockfile-prototype --image registry.access.redhat.com/ubi9/ubi-minimal rpms.in.yaml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Image created from 'https://github.com/openshift/functions?rev=75af9b2ec178992c374e463176a31a108543d576'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Image created from 'https://github.com/openshift/functions?rev=7deb6aa61c203872320d2265fcbf2de263814b50'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Image created from 'https://github.com/openshift/functions?rev=1bdf89b1ec5c318cab9835839bfef9f2cc13df5a'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Image created from 'https://github.com/openshift/functions?rev=ac2363ba49eb0bdebf38ffe727160608349744cd'

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
@openshift-ci

openshift-ci Bot commented Aug 28, 2026

Copy link
Copy Markdown

@openshift-rebasebot[bot]: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants