Repository navigation
chores: fix debug artifacts collection lost after migration on praktika - #417
Conversation
|
Workflow [PR], commit [f02272d] Summary: ✅ Code ReviewResult: ❌ Blocking issues What changed: The PR stops Security
Investigation: 5/13 rounds, 32 tool calls. |
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: e2e-report-openshift-compat | ||
| path: "**/report/*" |
There was a problem hiding this comment.
[P1] Do not upload unredacted Kubernetes secrets
This wildcard uploads the failure diagnostics produced by DumpNamespaceDiagnostics. Its resources-*.log file serializes a corev1.SecretList in full, including every Secret's .data. On OpenShift that can include service-account/image-pull credentials, so a failed test would persist live cluster credentials as a downloadable GitHub artifact. Please redact/omit Secret data in the diagnostic dump (including the Praktika archive path) before uploading these files.
There was a problem hiding this comment.
DumpNamespaceDiagnostics dumps Secrets generated by the operator during the test, nothing really secret can be leaked
AI review gate — auto-approved
History (latest 5 heads, newest first)
|
Why
Failed CI e2e jobs don't contain the diagnostics dumps that were added in #383.
testutil.Runcallsos.Chdirto the project root. After the first command, every relativereport/path resolves to<root>/report/. This covers the Ginkgo reports and theDumpNamespaceDiagnosticsresources, pod logs and events.test/<suite>/report, so the copy fails withcp: cannot stat 'test/deploy/report'. As a resultfailure-diagnostics.tgzhas only kind logs and cluster events, and the e2e job never attachesginkgo-report.json.openshift-compat: the test report step has noif, so it is skipped whenever the tests fail. The report dir also isn't uploaded anymore since the move to praktika.What
os.Chdirfromtestutil.Run. It already setscmd.Dirto the project root, so commands with relative paths behave the same. Reports and dumps now land intest/<suite>/report, where CI looks for them.openshift-compat: upload**/report/*as an artifact and publish the test report unless the run is cancelled. The JUnit parser now only gets*.xml, because the dumps are in the same dir now.Note
Low Risk
Changes only affect test harness cwd behavior and GitHub Actions artifact/report steps, not runtime operator logic.
Overview
Restores e2e debug artifacts and reports after the Praktika CI migration by fixing where suite output is written and how OpenShift compat CI collects it.
testutil.Runno longer callsos.Chdirto the repo root. Commands still run withcmd.Dirset to the project root, but the test process working directory stays intest/<suite>/, so Ginkgo/JUnit output and failure dumps land undertest/<suite>/report/where CI expects them (instead of a single top-levelreport/).OpenShift compat workflow adds an artifact upload for
**/report/*, runs the test reporter unless the job is cancelled (so failed runs still publish results), and scopes the JUnit reporter to**/report/*.xmlso diagnostic files in the same directory are not parsed as tests.Reviewed by Cursor Bugbot for commit f02272d. Bugbot is set up for automated code reviews on this repo. Configure here.
Workflow [PR]