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
fix(e2e): add SinceSeconds support to pod log helpers
The GetPodLog, GetControllerLogByName, RegexpMatchingInControllerLog,
RegexpMatchingInPodLog, and GoldenPodLog functions now accept an
optional sinceSeconds parameter, which maps to the Kubernetes
PodLogOptions.SinceSeconds field.
When kubelet rotates CRI container logs (e.g. containerd splitting
0.log into 0.log.<timestamp> and a new 0.log), the TailLines option
may only read from the current log file, causing regexp assertions
to miss matching lines that landed in the rotated segment. This was
observed in TestGithubGHEPullRequestGitCloneTask where the
"fetched git-clone task" message was written at 06:30:09, CRI
rotation occurred at 06:30:13, and the test checked at 06:30:21
finding only 2 lines in the new 0.log.
SinceSeconds uses timestamps rather than byte offsets, so it reads
across rotated CRI log files reliably. Callers that do not need
time-based filtering pass nil to preserve existing behaviour.
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
Assisted-by: Claude Opus 4.6 (via Claude Code)
"I am the most Kawaī params\nSHHHHHHH\nFollow me on my ig #nofilter\n{{ no_match }}\nHey I show up from a payload match\n{{ secret_nothere }}\n{{ no_initial_value }}"), "", 2))
491
+
"I am the most Kawaī params\nSHHHHHHH\nFollow me on my ig #nofilter\n{{ no_match }}\nHey I show up from a payload match\n{{ secret_nothere }}\n{{ no_initial_value }}"), "", 2, nil))
488
492
}
489
493
490
494
// TestGiteaParamsBodyHeadersCEL Test that we can access the pull request body and headers in params
0 commit comments