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

Remove sampler #27960

Merged
merged 1 commit into from Jul 14, 2023
Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented May 31, 2023

Remove the sampler and replace with observing the beginning and end. It eliminates extraneous events and makes it possible to have maps inside of the intervals themselves, which for annotations feels very natural. Without this, conditions cannot have map[string]string annotations.

@openshift-ci openshift-ci bot requested review from csrwng and spadgett May 31, 2023 19:12
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 31, 2023
@deads2k
Copy link
Contributor Author

deads2k commented Jun 1, 2023

/hold

not working rigth yet.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 1, 2023
@openshift-trt-bot
Copy link

@openshift-trt-bot
Copy link

@deads2k
Copy link
Contributor Author

deads2k commented Jun 22, 2023

node lifecycle looks right. pending pods with starting open timeframes look wrong.

@deads2k
Copy link
Contributor Author

deads2k commented Jul 7, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 7, 2023
@deads2k
Copy link
Contributor Author

deads2k commented Jul 10, 2023

/retest

openInterval(state, "Reboot", event.From)
intervals = append(intervals, nodeStateTracker.closeInterval(nodeLocator, drainState, simpleCondition(monitorapi.Info, monitorapi.NodeUpdateReason, fmt.Sprintf(msgPhaseDrain, roles)), event.From)...)
intervals = append(intervals, nodeStateTracker.closeInterval(nodeLocator, osUpdateState, simpleCondition(monitorapi.Info, monitorapi.NodeUpdateReason, fmt.Sprintf(msgPhaseOSUpdate, roles)), event.From)...)
nodeStateTracker.openInterval(nodeLocator, rebootState, event.From)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to have this embedded logic about one reason implying closing intervals for other reasons? Any changes in the product and we're immediately broken. Could we instead just close any matching open interval?


"github.com/openshift/origin/pkg/monitor/monitorapi"
"k8s.io/apimachinery/pkg/util/sets"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Unit tests might be good here, I know it's getting tested at a higher level but are we certain it's enough coverage?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 10, 2023

@deads2k: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-openstack-ovn cf696a7 link false /test e2e-openstack-ovn
ci/prow/e2e-aws-ovn-single-node-serial cf696a7 link false /test e2e-aws-ovn-single-node-serial
ci/prow/e2e-aws-ovn-cgroupsv2 cf696a7 link false /test e2e-aws-ovn-cgroupsv2
ci/prow/e2e-aws-ovn-single-node-upgrade cf696a7 link false /test e2e-aws-ovn-single-node-upgrade

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-trt-bot
Copy link

Job Failure Risk Analysis for sha: cf696a7

Job Name Failure Risk
pull-ci-openshift-origin-master-e2e-aws-ovn-single-node-serial Medium
pull-ci-openshift-origin-master-e2e-aws-ovn-cgroupsv2 Medium

@dgoodwin
Copy link
Contributor

/lgtm

Looks to be working well enough. We can refine if needed but this will unblock #27947

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 14, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, dgoodwin

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

@openshift-merge-robot openshift-merge-robot merged commit b864965 into openshift:master Jul 14, 2023
18 of 22 checks passed
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants