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

Cleanup Rust http example #1798

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

saschagrunert
Copy link
Contributor

Changes

  • Using a more opinionated release profile to optimize binary
  • Removing not required dependencies
  • Updating the rest of the dependencies
  • Switch to Rust edition 2021
  • Cleanup imports by importing the concrete types
  • Avoid unnecessary type assertions
  • Do not unwrap port

/kind cleanup

Release Note

Updated Rust http example.

Docs

None

@knative-prow knative-prow bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 8, 2023
@knative-prow knative-prow bot requested a review from jrangelramos June 8, 2023 09:07
@knative-prow
Copy link

knative-prow bot commented Jun 8, 2023

Welcome @saschagrunert! It looks like this is your first PR to knative/func 🎉

@knative-prow knative-prow bot requested a review from navidshaikh June 8, 2023 09:07
@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Patch coverage has no change and project coverage change: +1.01 🎉

Comparison is base (6b97fb5) 62.55% compared to head (774a3de) 63.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1798      +/-   ##
==========================================
+ Coverage   62.55%   63.57%   +1.01%     
==========================================
  Files         106      106              
  Lines       13417    13418       +1     
==========================================
+ Hits         8393     8530     +137     
+ Misses       4237     4078     -159     
- Partials      787      810      +23     
Flag Coverage Δ
e2e-test 37.71% <ø> (-0.01%) ⬇️
e2e-test-oncluster 33.40% <ø> (+0.11%) ⬆️
e2e-test-oncluster-runtime 28.60% <ø> (?)
e2e-test-runtime-go 27.33% <ø> (?)
e2e-test-runtime-node 28.40% <ø> (?)
e2e-test-runtime-python 28.40% <ø> (?)
e2e-test-runtime-quarkus 28.43% <ø> (?)
e2e-test-runtime-springboot 27.48% <ø> (?)
e2e-test-runtime-typescript 28.52% <ø> (?)
integration-tests 52.10% <ø> (+3.59%) ⬆️
unit-tests-macos-latest 49.87% <ø> (-0.01%) ⬇️
unit-tests-ubuntu-latest 50.67% <ø> (-0.01%) ⬇️
unit-tests-windows-latest 49.94% <ø> (+0.02%) ⬆️

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

see 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@matejvasek
Copy link
Contributor

When modifying templates the generate/zz_filesystem_generated.go file has to be updated too (make generate/zz_filesystem_generated.go).

By:

- Using a more opinionated release profile to optimize binary
- Removing not required dependencies
- Updating the rest of the dependencies
- Cleanup imports by importing the concrete types
- Avoid unnecessary type assertions
- Do not unwrap port

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Contributor Author

Thank you for the hint @matejvasek, updated the generated file.

@matejvasek
Copy link
Contributor

/approve
/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 9, 2023
@knative-prow
Copy link

knative-prow bot commented Jun 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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 Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 9, 2023
@knative-prow knative-prow bot merged commit 4497897 into knative:main Jun 9, 2023
38 checks passed
@saschagrunert saschagrunert deleted the rust-http-cleanup branch June 9, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants