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

feat: introduce the available probe and condition #8212

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

leon-inf
Copy link
Contributor

No description provided.

@leon-inf leon-inf requested review from Y-Rookie and a team as code owners September 26, 2024 07:00
@github-actions github-actions bot added the size/XL Denotes a PR that changes 500-999 lines. label Sep 26, 2024
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 22.00000% with 117 lines in your changes missing coverage. Please review.

Project coverage is 60.81%. Comparing base (b08ad51) to head (1f6a406).

Files with missing lines Patch % Lines
pkg/controller/component/available.go 0.00% 58 Missing ⚠️
pkg/kbagent/service/probe.go 22.80% 44 Missing ⚠️
controllers/apps/transformer_component_status.go 52.17% 11 Missing ⚠️
controllers/apps/transformer_cluster_status.go 0.00% 0 Missing and 2 partials ⚠️
pkg/controller/component/kbagent.go 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8212      +/-   ##
==========================================
- Coverage   60.84%   60.81%   -0.04%     
==========================================
  Files         350      351       +1     
  Lines       40571    40645      +74     
==========================================
+ Hits        24686    24717      +31     
- Misses      13639    13681      +42     
- Partials     2246     2247       +1     
Flag Coverage Δ
unittests 60.81% <22.00%> (-0.04%) ⬇️

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.

@leon-inf leon-inf force-pushed the feature/available-probe-and-conditions branch from 7df4c0f to c7faf48 Compare September 26, 2024 08:25
@leon-inf leon-inf marked this pull request as draft September 26, 2024 08:29
@leon-inf leon-inf force-pushed the feature/available-probe-and-conditions branch from c7faf48 to 173961c Compare September 26, 2024 10:07
@github-actions github-actions bot added size/XXL Denotes a PR that changes 1000+ lines. and removed size/XL Denotes a PR that changes 500-999 lines. labels Sep 26, 2024
break
}
}
if idx >= 0 && h.condEqual(comp.Status.Conditions[idx], newCond) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if latestEvent != nil {
r.logger.Info("send probe event periodically", "probe", latestEvent.Probe,
"code", latestEvent.Code, "output", outputPrefix(latestEvent.Output), "message", latestEvent.Message)
r.sendEvent(latestEvent)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why send the last event twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants