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(inference): fix endpoint nil pointer create deployment #3922

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

Laure-di
Copy link
Contributor

@Laure-di Laure-di commented Jul 1, 2024

close #3921

@Laure-di Laure-di requested a review from remyleone as a code owner July 1, 2024 10:35
@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.24%. Comparing base (5bf53e0) to head (f9f8c57).
Report is 272 commits behind head on master.

Files with missing lines Patch % Lines
.../namespaces/inference/v1beta1/custom_deployment.go 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (5bf53e0) and HEAD (f9f8c57). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (5bf53e0) HEAD (f9f8c57)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3922      +/-   ##
==========================================
- Coverage   75.45%   69.24%   -6.21%     
==========================================
  Files         202      290      +88     
  Lines       44323    55121   +10798     
==========================================
+ Hits        33444    38169    +4725     
- Misses       9653    15380    +5727     
- Partials     1226     1572     +346     

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

@@ -96,7 +96,7 @@ func deploymentCreateBuilder(c *core.Command) *core.Command {
publicEndpoint = nil
}
privateNetwork := &inference.EndpointSpecPrivateNetwork{}
if endpoint.EndpointSpec == nil {
if endpoint.EndpointSpec.PrivateNetwork == nil {
Copy link
Member

Choose a reason for hiding this comment

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

What if endpoint.EndpointSpec is already nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It creates a public endpoint.

@remyleone remyleone enabled auto-merge July 1, 2024 15:56
@remyleone remyleone added this pull request to the merge queue Jul 1, 2024
Merged via the queue into scaleway:master with commit ab6ce91 Jul 1, 2024
12 checks passed
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.

inference invalid memory address or nil pointer dereference
3 participants