Skip to content

feat: add labels to func describe #2882

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

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

lkingland
Copy link
Member

@lkingland lkingland commented Jun 24, 2025

Adds a "Labels" section to describe command's output.

/kind enhancement

Note that, as with the other func config ... commands, adding unit tests is not possible without a refactor. The forthcoming E2E tests do test these features, and unit tests will be added when these subcommands are refactored to match the testability of the other commands.

Function describe subcommand now includes labels.

@knative-prow knative-prow bot requested review from jrangelramos and nainaz June 24, 2025 09:09
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 24, 2025
@lkingland lkingland force-pushed the push-uotwmsmmztsv branch from b4a7423 to 220cc32 Compare June 25, 2025 02:45
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 25, 2025
@lkingland lkingland force-pushed the push-uotwmsmmztsv branch from 220cc32 to 02a8e80 Compare June 25, 2025 02:53
@lkingland lkingland marked this pull request as draft June 25, 2025 02:54
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 25, 2025
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

Attention: Patch coverage is 64.70588% with 6 lines in your changes missing coverage. Please review.

Project coverage is 61.50%. Comparing base (65de4ac) to head (4547baf).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
cmd/describe.go 58.33% 4 Missing and 1 partial ⚠️
pkg/functions/client.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2882      +/-   ##
==========================================
+ Coverage   59.70%   61.50%   +1.80%     
==========================================
  Files         129      129              
  Lines       16312    16328      +16     
==========================================
+ Hits         9739    10043     +304     
+ Misses       5673     5327     -346     
- Partials      900      958      +58     
Flag Coverage Δ
e2e-tests 42.34% <47.05%> (+7.93%) ⬆️
integration-tests 47.99% <41.17%> (+1.79%) ⬆️
unit-tests 48.11% <17.64%> (-0.03%) ⬇️

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.

@lkingland lkingland force-pushed the push-uotwmsmmztsv branch 5 times, most recently from 0fee7ce to 9024984 Compare June 27, 2025 03:47
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 27, 2025
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 28, 2025
@lkingland lkingland force-pushed the push-uotwmsmmztsv branch from 9024984 to e4ef665 Compare June 30, 2025 01:28
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 30, 2025
return typed error on describe of uninitialized Function

adds describe tests
@lkingland lkingland force-pushed the push-uotwmsmmztsv branch from e4ef665 to 4547baf Compare July 1, 2025 01:39
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 1, 2025
@lkingland lkingland marked this pull request as ready for review July 1, 2025 01:40
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 1, 2025
@knative-prow knative-prow bot requested a review from dsimansk July 1, 2025 01:40
Copy link
Contributor

@gauron99 gauron99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2025
Copy link

knative-prow bot commented Jul 1, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gauron99, lkingland

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 merged commit 58fb81a into knative:main Jul 1, 2025
39 checks passed
@lkingland lkingland deleted the push-uotwmsmmztsv branch July 3, 2025 00:39
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/enhancement lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants