-
Notifications
You must be signed in to change notification settings - Fork 17
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
OCPBUGS-24595: Cloudeventproxy 2 Card WPC not able to handle multiple dependency and multiple ts2phcs #270
OCPBUGS-24595: Cloudeventproxy 2 Card WPC not able to handle multiple dependency and multiple ts2phcs #270
Conversation
6390bd5
to
f22a6fa
Compare
@aneeshkp: This pull request references Jira Issue OCPBUGS-24595, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this: 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. |
/jira refresh |
@aneeshkp: This pull request references Jira Issue OCPBUGS-24595, which is invalid:
Comment In response to this:
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. |
f22a6fa
to
f0dee65
Compare
return -1, nil | ||
} | ||
|
||
func (dt *DependingClockState) hasMetric() map[string]*PMetric { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this return Metric based on specific iface similar to hasClockState
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is based on dependent type, metrics is common for all interface based on type, so you are checking is there is metrics object already define. You can't register same metrics twice
} | ||
return nil | ||
} | ||
func (dt *DependingClockState) hasMetricHelp() map[string]string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, should return MetricHelp based on specific iface similar to hasClockState
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is based on dependent type, metrics is common for all interface based on type, so you are checking is there is metrics object already define. You can't register same metrics twice
@@ -135,22 +176,24 @@ func (p *PTPEventState) UpdateCurrentEventState(c ClockState) ptp.SyncState { | |||
"node": clockState.NodeName, "iface": alias}).Set(float64(v)) | |||
} | |||
clockState.Metric = metrics | |||
p.DependsOn[c.Process] = clockState | |||
p.DependsOn[c.Process] = []*ClockState{clockState} | |||
} | |||
|
|||
// if all locked then its locked | |||
// if anyone HOLDOVER then holdover | |||
// if anyone FREERUN then freerun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments not clear. What the currentState should be if DependsOn states are a mix of HOLDVER and FREERUN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if anyone is HOLDOVER then holdover comment 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
priority
97325a0
to
c7daa31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
c7daa31
to
8340b41
Compare
8340b41
to
bf7a3c3
Compare
if alias == "" { | ||
masterAlias, _ = ptp4lCfg.GetUnknownAlias() | ||
masterResource := fmt.Sprintf("%s/%s", alias, MasterClockType) | ||
if !p.mock { /// to enable unit testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this, the unit test expects the event to be sent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed it,
bf7a3c3
to
41f4a3c
Compare
Signed-off-by: Aneesh Puttur <[email protected]>
41f4a3c
to
36c3b28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aneeshkp, jzding 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 |
@aneeshkp: The following tests failed, say
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. |
/jira refresh |
@aneeshkp: This pull request references Jira Issue OCPBUGS-24595, which is invalid:
Comment In response to this:
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. |
/jira refresh |
@aneeshkp: This pull request references Jira Issue OCPBUGS-24595, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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. |
@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: yliu127. Note that only redhat-cne members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
/test e2e-aws |
14de4f8
into
redhat-cne:main
@aneeshkp: Jira Issue OCPBUGS-24595: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-24595 has been moved to the MODIFIED state. In response to this: 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. |
[ART PR BUILD NOTIFIER] This PR has been included in build cloud-event-proxy-container-v4.16.0-202312141333.p0.g14de4f8.assembly.stream for distgit cloud-event-proxy. |
/cherry-pick release-4.15 |
@aneeshkp: new pull request created: #276 In response to this:
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. |
No description provided.