Closed mrniranjan closed 9 months ago
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jmencak, mrniranjan
The full list of commands accepted by this bot can be found here.
The pull request process is described here
The only concern I have is a potential null-pointer dereference, but if you're sure this cannot happen: /lgtm
The only concern I have is a potential null-pointer dereference, but if you're sure this cannot happen: /lgtm
@jmencak If for some reason profile is nil, it will fail very early in the test.
The only concern I have is a potential null-pointer dereference, but if you're sure this cannot happen: /lgtm
@jmencak If for some reason profile is nil, it will fail very early in the test.
I'm not worried about profile == nil. Can profile.Spec.RealTimeKernel
be nil though?
func main() {
var profile PerformanceProfile
fmt.Printf("PoC=%v\n", profile.Spec.RealTimeKernel.Enabled)
}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x47c75e]
goroutine 1 [running]:
main.main()
/home/mencak/work/programs/golang/mine/index/index.go:229 +0x3e
/hold please unhold when we're sure this cannot happen ^
@jmencak
Profile.Spec.RealTimeKernel cannot be nil because , realTimeKernel attribute of Performance Profile is a mandatory field to be given, It take 2 values true or false. without which Profile cannot be applied
@mrniranjan: This pull request references Jira Issue OCPBUGS-29594, which is invalid:
Comment /jira refresh
to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
/jira refresh
@mrniranjan: This pull request references Jira Issue OCPBUGS-29594, which is invalid:
Comment /jira refresh
to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
/jira refresh
@mrniranjan: This pull request references Jira Issue OCPBUGS-29594, which is valid. The bug has been moved to the POST state.
Requesting review from QA contact: /cc @gsr-shanks
/unhold
/retest-required
Remaining retests: 0 against base HEAD d7c3111b261fb58963a1bf184ca1c014a1f4fcd6 and 2 for PR HEAD 1ae4a1426ea97a57f5f5a09aa103b1ae7bf77de4 in total
@mrniranjan: all tests passed!
Full PR test history. Your PR dashboard.
@mrniranjan: Jira Issue OCPBUGS-29594: Some pull requests linked via external trackers have merged:
The following pull requests linked via external trackers have not merged:
These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh
.
Jira Issue OCPBUGS-29594 has not been moved to the MODIFIED state.
[ART PR BUILD NOTIFIER]
This PR has been included in build cluster-node-tuning-operator-container-v4.16.0-202402161440.p0.gabfe492.assembly.stream.el9 for distgit cluster-node-tuning-operator. All builds following this will include this PR.
/cherry-pick release-4.15
@mrniranjan: #957 failed to apply on top of branch "release-4.15":
Applying: e2e: fix comparing incompatible types
Using index info to reconstruct a base tree...
M test/e2e/performanceprofile/functests/8_performance_workloadhints/workloadhints.go
Falling back to patching base and 3-way merge...
Auto-merging test/e2e/performanceprofile/functests/8_performance_workloadhints/workloadhints.go
CONFLICT (content): Merge conflict in test/e2e/performanceprofile/functests/8_performance_workloadhints/workloadhints.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 e2e: fix comparing incompatible types
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Fix included in accepted release 4.16.0-0.nightly-2024-03-23-173230
This patch fixes comparing incompatible types, profile.Spec.RealTimeKernel.Enabled == pointer.Bool(false)
Instead of using pointer.Bool, directly compare the boolean value.