Skip to content

Separate test functions in Makefile and bump no-op SDK dependency#1262

Open
aravindtga wants to merge 1 commit into
kptdev:mainfrom
Nordix:separate-test-functions-makefile
Open

Separate test functions in Makefile and bump no-op SDK dependency#1262
aravindtga wants to merge 1 commit into
kptdev:mainfrom
Nordix:separate-test-functions-makefile

Conversation

@aravindtga

Copy link
Copy Markdown
Contributor

Description

  • What changed: Split the FUNCTIONS variable in functions/go/Makefile into FUNCTIONS (catalog functions) and TEST_FUNCTIONS (test/example functions: bar, drop-comments, foo, no-op, printenv, sleep). Also bumped krm-functions-sdk/go/fn from v1.0.3 to v1.0.4 in the no-op function.
  • Why it's needed: Separating test functions from catalog functions improves readability and makes it clear which functions are part of the catalog vs. used for testing/development purposes.
  • How it works: TEST_FUNCTIONS is defined separately and appended to FUNCTIONS via +=, so all targets (build, test, push, etc.) still apply to both sets.

Type of Change

  • Bug fix
  • New feature
  • Enhancement
  • Refactor
  • Documentation
  • Tests
  • Other: ________

Checklist

  • Code follows project style guidelines
  • Self-reviewed changes
  • Tests added/updated
  • Documentation added/updated
  • All tests and gating checks pass

AI Disclosure

  • I have used AI in the creation of this PR.

If so, please describe how:
- Kiro to split the Makefile variables and prepare the PR message.

@netlify

netlify Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy Preview for krm-function-catalog canceled.

Name Link
🔨 Latest commit 6bb2a8d
🔍 Latest deploy log https://app.netlify.com/projects/krm-function-catalog/deploys/6a3cd6f9db99e20008da8eaf

@aravindtga aravindtga requested a review from Copilot June 17, 2026 14:35
@aravindtga aravindtga self-assigned this Jun 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Go “no-op” function’s dependencies and refactors the Go functions Makefile to separate “test/example” functions into a dedicated list.

Changes:

  • Bump github.com/kptdev/krm-functions-sdk/go/fn from v1.0.3 to v1.0.4 in functions/go/no-op.
  • Add new module checksums (including pgregory.net/rapid) to go.sum.
  • Split function lists in functions/go/Makefile into FUNCTIONS and TEST_FUNCTIONS, then combine them.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
functions/go/no-op/go.mod Updates the KRM functions SDK dependency version.
functions/go/no-op/go.sum Refreshes checksums for the updated dependency and newly pulled modules.
functions/go/Makefile Separates test/example functions into TEST_FUNCTIONS and appends them to FUNCTIONS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aravindtga aravindtga marked this pull request as ready for review June 17, 2026 15:15
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 17, 2026
@aravindtga aravindtga force-pushed the separate-test-functions-makefile branch from a778ed8 to 07cf2a3 Compare June 25, 2026 07:21
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jun 25, 2026
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@aravindtga aravindtga force-pushed the separate-test-functions-makefile branch from 07cf2a3 to 6bb2a8d Compare June 25, 2026 07:21
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jun 25, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants