You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These changes where AI-Assisted (hence the AA tag),
then largely amended by a human (hence the HI tag - Human Intervention).
Finding manually all the instances:
```
git grep Infof test/e2e | cut -d: -f1 | uniq -c
```
Initial prompt:
```
Translate the calls to `klog.Infof` to `klog.InfoS`. Since the function signatures are different, rearrange the parameters to match the signature of the `InfoS` function. Modify only the file `test/e2e/tools/mkginkgolabelfilter_test.go`
```
Subsequent N prompts (roughly 15-25 calls to fix per prompt)
```
do the same for the files ...
```
files picked randomly by the user
Assisted-by: Cursor AI
Assisted-by-model: claude-4-sonnet
Signed-off-by: Francesco Romani <[email protected]>
klog.Infof("-v flag doesn't exist in container %q args managed by DaemonSet: %q", rteCnt.Name, ds.Name)
88
+
klog.InfoS("-v flag doesn't exist in container args managed by DaemonSet", "containerName", rteCnt.Name, "daemonsetName", ds.Name)
89
89
returnfalse
90
90
}
91
91
if!match {
92
-
klog.Infof("LogLevel %s doesn't match the existing -v flag in container: %q under DaemonSet: %q", nropObj.Spec.LogLevel, rteCnt.Name, ds.Name)
92
+
klog.InfoS("LogLevel doesn't match the existing -v flag in containerunder DaemonSet", "logLevel", nropObj.Spec.LogLevel, "containerName", rteCnt.Name, "daemonsetName", ds.Name)
93
93
returnfalse
94
94
}
95
95
}
@@ -114,7 +114,7 @@ var _ = ginkgo.Describe("with a running cluster with all the components", func()
114
114
returnfalse
115
115
}
116
116
iflen(rteDss) ==0 {
117
-
klog.Infof("expect the numaresourcesoperator to own at least one DaemonSet")
117
+
klog.InfoS("expect the numaresourcesoperator to own at least one DaemonSet")
118
118
returnfalse
119
119
}
120
120
@@ -124,12 +124,12 @@ var _ = ginkgo.Describe("with a running cluster with all the components", func()
klog.Infof("-v flag doesn't exist in container %q args under DaemonSet: %q", rteCnt.Name, ds.Name)
127
+
klog.InfoS("-v flag doesn't exist in container args under DaemonSet", "containerName", rteCnt.Name, "daemonsetName", ds.Name)
128
128
returnfalse
129
129
}
130
130
131
131
if!match {
132
-
klog.Infof("LogLevel %s doesn't match the existing -v flag in container: %q managed by DaemonSet: %q", nropObj.Spec.LogLevel, rteCnt.Name, ds.Name)
132
+
klog.InfoS("LogLevel doesn't match the existing -v flag in containermanaged by DaemonSet", "logLevel", nropObj.Spec.LogLevel, "containerName", rteCnt.Name, "daemonsetName", ds.Name)
133
133
returnfalse
134
134
}
135
135
}
@@ -147,17 +147,17 @@ var _ = ginkgo.Describe("with a running cluster with all the components", func()
0 commit comments