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

Fix rendering big (>4MB) packages with function-runner #142

Merged
merged 6 commits into from
Nov 25, 2024

Conversation

kispaljr
Copy link
Collaborator

@kispaljr kispaljr commented Nov 24, 2024

Fixes nephio-project/nephio#823

PR #121 successfully solved the issue of creating/updating/querying big packages via the porch API. However if a big package has a non-empty pipeline, the rendering of those large packages fail with an error message mentioning grpc max message size (see the issue referenced above). This PR fixes that.

(It also contains some minor refactoring that eliminates some unnecessarily long argument lists in function-runner.)

Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

/approve

// Parameters of ExecEvaluator
exec internal.ExecutableEvaluatorOptions
// Parameters of PodEvaluator
pod internal.PodEvaluatorOptions
Copy link
Contributor

Choose a reason for hiding this comment

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

Pedantic, so your call if you fix it, but o.pod.wrapperServerImage below were a bit confusing whtether this is actual pod info, or something else. Maybe podeval?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am fine with renaming it. Would "WrapperServerConatinerImageName" sound better? Should we also rename the WRAPPER_SERVER_IMAGE envvar where the actual name coming from? The later is a breaking change so probably not. Btw., there is a comment next to the field in the PodEvaluatorOptions struct (that IDEs will find and display) that tries to explain the semantics of the field.

func/server/server.go Show resolved Hide resolved
pkg/cmd/server/start.go Show resolved Hide resolved
test/e2e/e2e_test.go Outdated Show resolved Hide resolved
Copy link
Member

@liamfallon liamfallon left a comment

Choose a reason for hiding this comment

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

/approve

@efiacor
Copy link
Collaborator

efiacor commented Nov 25, 2024

/approve

@Catalin-Stratulat-Ericsson
Copy link
Contributor

/approve
looks good to me.
Thank you for the cleanup code on the arguments.

@nagygergo
Copy link
Contributor

/approve

@liamfallon
Copy link
Member

/lgtm

@liamfallon
Copy link
Member

/lgtm cancel
Waiting for the "draft" flag to be removed.

@nephio-prow nephio-prow bot removed the lgtm label Nov 25, 2024
@kispaljr kispaljr marked this pull request as ready for review November 25, 2024 13:32
@nephio-prow nephio-prow bot requested a review from s3wong November 25, 2024 13:32
@kispaljr
Copy link
Collaborator Author

Sorry @liamfallon for adding the draft flag last-minute. I made a last-minute test, but everything seems fine, so I removed the draft flag again

@liamfallon
Copy link
Member

Sorry @liamfallon for adding the draft flag last-minute. I made a last-minute test, but everything seems fine, so I removed the draft flag again

Perfect.

@liamfallon
Copy link
Member

/approve
/lgtm

@nephio-prow nephio-prow bot added the lgtm label Nov 25, 2024
Copy link
Contributor

nephio-prow bot commented Nov 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Catalin-Stratulat-Ericsson, efiacor, kispaljr, liamfallon, nagygergo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [efiacor,kispaljr,liamfallon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nephio-prow nephio-prow bot merged commit f732f02 into nephio-project:main Nov 25, 2024
5 checks passed
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.

Porch cannot handle big (>4MB) packages with a non-empty pipeline
5 participants