Skip to content

Inform about time spent waiting resources to be ready in slog format#30696

Merged
robertsirc merged 4 commits intohelm:mainfrom
benoittgt:report-time-waited-v4
Mar 24, 2025
Merged

Inform about time spent waiting resources to be ready in slog format#30696
robertsirc merged 4 commits intohelm:mainfrom
benoittgt:report-time-waited-v4

Conversation

@benoittgt
Copy link
Copy Markdown
Contributor

@benoittgt benoittgt commented Mar 21, 2025

What this PR does / why we need it:

This is the version of #30689 (merged) but for main/helm-v4. As started in #30603, @robertsirc is migrating log to slog. I migrated this function to use slog and added debug reporting. Now, it logs how long we wait for resources to be ready. This helps us better understand how much of the helm upgrade time is due to waiting for resources.

I could change the remaning part in the file but I am not sure what are expected in terms of log level

Special notes for your reviewer:

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 21, 2025
@benoittgt benoittgt force-pushed the report-time-waited-v4 branch from 98c821c to 8448862 Compare March 21, 2025 09:36
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
@benoittgt benoittgt force-pushed the report-time-waited-v4 branch from 8448862 to 94cb21c Compare March 21, 2025 09:38
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
@benoittgt benoittgt force-pushed the report-time-waited-v4 branch from 821c74b to 4f4c858 Compare March 23, 2025 14:40
Copy link
Copy Markdown
Collaborator

@mattfarina mattfarina left a comment

Choose a reason for hiding this comment

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

lgtm

@mattfarina mattfarina added the Has One Approval This PR has one approval. It still needs a second approval to be merged. label Mar 24, 2025
Copy link
Copy Markdown
Member

@robertsirc robertsirc left a comment

Choose a reason for hiding this comment

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

LGTM

@robertsirc robertsirc merged commit 0199b74 into helm:main Mar 24, 2025
5 checks passed
@benoittgt benoittgt deleted the report-time-waited-v4 branch March 24, 2025 20:21
@scottrigby scottrigby added feature and removed Has One Approval This PR has one approval. It still needs a second approval to be merged. labels Apr 14, 2025
@scottrigby scottrigby added the v3 port complete For completed v2->v3 ports label Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature size/S Denotes a PR that changes 10-29 lines, ignoring generated files. v3 port complete For completed v2->v3 ports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants