wip: no-op#31246
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
WalkthroughRefactor TLS observed-config test to centralize nested-field validation, extract and verify servingInfo.minTLSVersion and cipherSuites (converting OpenSSL names to IANA), and extend expected-profile helper to return cipher suites alongside minTLSVersion and profile type. ChangesObserved-config TLS test updates
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test tls-observed-config |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test tls-observed-config |
|
/test ci/prow/tls-observed-config |
|
Maybe there's just too many jobs already running? I don't see |
|
/test pull-ci-openshift-origin-main-tls-observed-config |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
test/extended/tls/tls_observed_config.go (1)
1749-1758: 💤 Low valueConsider truncating large values in debug logs.
The helper logs the full value via
e2e.Logf("Found %v at %s", value, path). For large cipher suite arrays or config maps, this could produce verbose output. Consider truncating or summarizing large values.♻️ Optional refinement for log verbosity
func validateNestedField(value interface{}, found bool, err error, fields ...string) { path := strings.Join(fields, ".") o.Expect(err).NotTo(o.HaveOccurred(), "failed to extract %s", path) o.Expect(found).To(o.BeTrue(), "expected %s to exist", path) o.Expect(value).NotTo(o.BeEmpty(), "expected %s to be non-empty", path) - e2e.Logf("Found %v at %s", value, path) + summary := fmt.Sprintf("%v", value) + if len(summary) > 100 { + summary = summary[:100] + "..." + } + e2e.Logf("Found %s at %s", summary, path) }🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@test/extended/tls/tls_observed_config.go` around lines 1749 - 1758, The e2e.Logf in validateNestedField currently prints the entire value which can be huge; change the logging to produce a summarized/truncated representation: convert value to a string (e.g., via fmt.Sprintf("%v", value)), and if the string length exceeds a threshold (e.g., 200 chars) truncate it and append an indicator like "...(truncated, len=<fullLen>)" so logs remain readable; update the log call in validateNestedField to use this truncated summary while preserving the path and full length info.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@test/extended/tls/tls_observed_config.go`:
- Around line 1749-1758: The e2e.Logf in validateNestedField currently prints
the entire value which can be huge; change the logging to produce a
summarized/truncated representation: convert value to a string (e.g., via
fmt.Sprintf("%v", value)), and if the string length exceeds a threshold (e.g.,
200 chars) truncate it and append an indicator like "...(truncated,
len=<fullLen>)" so logs remain readable; update the log call in
validateNestedField to use this truncated summary while preserving the path and
full length info.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 645ada33-5648-4ada-9eed-a955b7eb3cc7
📒 Files selected for processing (1)
test/extended/tls/tls_observed_config.go
|
Scheduling required tests: |
|
@ingvagabund: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
/hold
For the moment just for experimenting
Summary by CodeRabbit