Skip to content

Conversation

@gauron99
Copy link
Contributor

@gauron99 gauron99 commented Jan 21, 2026

  • instanced go functions as default
  • as instanced signature defaults to "OK" response, change this accordingly in tests (instead of echo response)
  • edit tests to now use instanced function instead of the static one
  • echo templates part of templates
  • add specific tests for Static go-signature
  • some tests preserve the echo testing & use specific func template instead

http templates now return: "OK" string
cloudevents templates now return: json {"message":"OK"}

@knative-prow
Copy link

knative-prow bot commented Jan 21, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 21, 2026
@gauron99 gauron99 changed the title Instanced go functions templates set as default [DNM][WIP]Instanced go functions templates set as default Jan 21, 2026
@gauron99 gauron99 changed the title [DNM][WIP]Instanced go functions templates set as default [DNM][WIP]Instanced go functions template default Jan 21, 2026
@gauron99 gauron99 force-pushed the instanced-funcs branch 2 times, most recently from f9d335e to 73387d9 Compare January 21, 2026 10:00
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.61%. Comparing base (550be32) to head (53c2160).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/deployer/testing/integration_test_helper.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3378   +/-   ##
=======================================
  Coverage   54.60%   54.61%           
=======================================
  Files         173      173           
  Lines       19807    19814    +7     
=======================================
+ Hits        10816    10821    +5     
- Misses       7860     7861    +1     
- Partials     1131     1132    +1     
Flag Coverage Δ
e2e 39.30% <ø> (+0.02%) ⬆️
e2e go 33.41% <ø> (+<0.01%) ⬆️
e2e node 29.09% <ø> (-0.02%) ⬇️
e2e python 32.93% <ø> (+0.03%) ⬆️
e2e quarkus 29.24% <ø> (-0.02%) ⬇️
e2e rust 28.65% <ø> (-0.02%) ⬇️
e2e springboot 27.08% <ø> (-0.01%) ⬇️
e2e typescript 29.21% <ø> (-0.02%) ⬇️
integration 16.57% <0.00%> (+0.01%) ⬆️
unit macos-14 43.14% <0.00%> (+0.01%) ⬆️
unit macos-latest 43.14% <0.00%> (+0.01%) ⬆️
unit ubuntu-24.04-arm 43.47% <0.00%> (+0.01%) ⬆️
unit ubuntu-latest 44.05% <0.00%> (+0.01%) ⬆️
unit windows-latest 43.16% <0.00%> (+0.01%) ⬆️

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.

@gauron99 gauron99 force-pushed the instanced-funcs branch 4 times, most recently from 3fbf389 to 4556925 Compare January 21, 2026 15:11
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 21, 2026
@gauron99 gauron99 changed the title [DNM][WIP]Instanced go functions template default [DNM][WIP] Update templates (instanced signature) Jan 21, 2026
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 22, 2026
@gauron99
Copy link
Contributor Author

/test all

@gauron99 gauron99 force-pushed the instanced-funcs branch 2 times, most recently from b3a6a98 to 9e8a5aa Compare January 22, 2026 18:08
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 22, 2026
@knative-prow knative-prow bot removed the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jan 23, 2026
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 23, 2026
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 26, 2026
@gauron99 gauron99 force-pushed the instanced-funcs branch 4 times, most recently from d842983 to e81e584 Compare January 27, 2026 08:49
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 27, 2026
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 27, 2026
@gauron99 gauron99 force-pushed the instanced-funcs branch 5 times, most recently from 389f658 to d85507b Compare January 27, 2026 11:18
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 27, 2026
@gauron99 gauron99 force-pushed the instanced-funcs branch 2 times, most recently from 9f35948 to 62cc5e5 Compare January 29, 2026 14:42
})
await send({
'type': 'http.response.body',
'body': url.encode(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Does encode make sense with a string that is not an url?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it does I don't know.

Copy link
Contributor Author

@gauron99 gauron99 Jan 29, 2026

Choose a reason for hiding this comment

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

This is string -> bytes conversion. thats whats required in the struct. I think this is equivalent to b"OK". You can specify what encoding you want "utf-8" "ascii" but we just use basic (no argument) which is utf-8

_ = fromCleanEnv(t, name)

if err := newCmd(t, "init", "-l=go").Run(); err != nil {
if err := newCmd(t, "init", "-l=go",
Copy link
Contributor

@matejvasek matejvasek Jan 29, 2026

Choose a reason for hiding this comment

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

Why now there is a git repo?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah that's a repo for templates, not func src code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes im keeping the "echo" functionality and using the template to do it

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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants