GeezerVison is showing github.com — fix(ci): retry the cordon claim when an unrelated Node write breaks its CAS test by devantler · Pull Request #2977 · devantler-tech/platform
Conversation
🤖 Generated by the Agentic Engineer
Why
The production deploy has been failing intermittently and evicting PRs from the merge queue — 4 evictions today alone, interleaved with 8 clean runs on unchanged code. The cause is a safety check that is stricter than it needs to be: before draining a node, the deploy claims it with a patch that asserts nothing at all has changed on that node since it was read. But a Kubernetes node is written by several background controllers, so a routine kubelet heartbeat — nothing to do with whether the node is safe to drain — was enough to abort the whole deploy.
Because the trigger is unrelated background activity, re-queuing an evicted PR is a coin flip rather than a fix.
What
The claim now retries against a fresh read instead of giving up on the first conflict — but only while every fact it originally relied on still holds. A genuine conflict (someone else cordoning the node, taking ownership, changing its taints, or the node being replaced) still refuses to drain, exactly as before, and running out of retries still fails closed with the same refusal.
Fixes #2976
⚠️ This touches the path that drains production nodes, so the safety behaviour is pinned by tests in both directions: a benign conflict must now succeed, and a persistent or genuine conflict must still refuse.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ts CAS test
The atomic cordon claim tests /metadata/resourceVersion, which asserts that
nothing at all changed on the Node since the capturing read. A Node has several
independent writers - kubelet status heartbeats, kube-controller-manager, the
hcloud CCM, cilium-operator - so a routine heartbeat rejected the claim and
failed the whole prod deploy, evicting the PR from the merge queue.
Retry the claim against a re-read resourceVersion, but only while every fact the
caller captured still holds: same UID, not being deleted, still unowned by this
bridge, and unchanged cordon/taint intent. A concurrent cordon, ownership grab,
taint edit, or node replacement still refuses instead of retrying, and an
exhausted retry budget fails closed with the same refusal.
Fixes #2976
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
🤖 Generated by the Agentic Engineer
Validation evidence at 4568409b
RED/GREEN, proven in both directions. The new tests were run against the unfixed scripts first by restoring both from HEAD and confirming a zero diff before the run:
TestUnrelatedNodeWriteBeforeAtomicClaimIsRetried — RED on unfixed:
command exit = 1, want 0 / ::error::Could not atomically claim and cordon Talos node prod-worker-1 / cordon-claim: resourceVersion test failed. GREEN after the fix.
TestRetriedClaimStillRefusesWhenTheRetryBudgetIsExhausted — passes both before and after, deliberately. It is the fail-closed negative control, not a regression test; a change that made it newly pass would mean the safety property had been weakened.
Full suite: GREEN, 116.3s, including the pre-existing TestConcurrentCordonBeforeAtomicClaimStopsTheRoll, which is the second negative control — a genuine concurrent cordon must still refuse. It does, and it now refuses faster: the re-read sees spec.unschedulable=true ≠ was_cordoned, so the precondition check bails immediately rather than burning the retry budget.
Diagnosis was measured, not assumed. Read live from the failing node's managedFields (kubectl --context admin@prod, read-only): five independent writers, with kubelet having updated status ~3 minutes before sampling. That is what makes a whole-object resourceVersion test unstable in a way unrelated to drain safety.
Lint — shfmt -i 2 -ci -d and shellcheck -x clean on both changed shell files; gofmt -l clean. An untouched repo script was run as a control to confirm the linters were actually exercising repo settings rather than silently no-opping.
Reviewed my own diff for the seams that matter
((attempt >= max_attempts)) returns exit 1 when false, which under set -e would abort the script — it is inside an if condition, where set -e is suspended, so it is safe. The green suite corroborates this.
CORDON_CLAIM_MAX_ATTEMPTS only bounds the retry count. It cannot disable the refusal; setting it to 1 reproduces exactly the old behaviour.
build_and_apply_cordon_claim is referenced before its definition in file order, which is fine because both are defined at source time, well before any invocation.
- The retry re-reads into the same
cordon_state_file the caller already re-reads via revalidate_node_scheduling_guard, so no caller observes a staler view than before.
Not verified here
The fix is proven against the fake kubectl harness, not against a live 422 from a real API server. The harness models the CAS by comparing the patch's test value to the stored resourceVersion, which is the same mechanism the real server enforces — but the end-to-end proof will be this PR's own merge_group deploy actually completing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️ BASH / bash-exec - 5 errors
Results of bash-exec linter (version 5.3.9)
See documentation on https://megalinter.io/9.6.0/descriptors/bash_bash_exec/
-----------------------------------------------
✅ [SUCCESS] scripts/dr-rebuild-supersession-guard.sh
❌ [ERROR] scripts/ghcr-auth-lib.sh
Error: File:[scripts/ghcr-auth-lib.sh] is not executable
✅ [SUCCESS] scripts/guard-cilium-homogeneous-device-rollout.sh
✅ [SUCCESS] scripts/megalinter-scan-counts.sh
✅ [SUCCESS] scripts/normalize-sarif-paths.sh
❌ [ERROR] scripts/refresh-flux-ghcr-auth-safety.sh
Error: File:[scripts/refresh-flux-ghcr-auth-safety.sh] is not executable
✅ [SUCCESS] scripts/refresh-flux-ghcr-auth.sh
✅ [SUCCESS] scripts/report-cilium-rollout-gate-suppression.sh
✅ [SUCCESS] scripts/run-ksail-prod-with-pull-auth.sh
✅ [SUCCESS] scripts/summarize-sarif-findings.sh
✅ [SUCCESS] scripts/tests/test-cilium-bandwidth-manager-component.sh
✅ [SUCCESS] scripts/tests/test-cilium-homogeneous-devices-activation.sh
✅ [SUCCESS] scripts/tests/test-cilium-homogeneous-devices-autoscaler-gate.sh
✅ [SUCCESS] scripts/tests/test-cilium-homogeneous-devices-flux-wait.sh
✅ [SUCCESS] scripts/tests/test-cilium-mutual-auth-policy-regressions.sh
✅ [SUCCESS] scripts/tests/test-cilium-mutual-auth-policy.sh
✅ [SUCCESS] scripts/tests/test-cilium-rollout-gate-suppression-signal.sh
✅ [SUCCESS] scripts/tests/test-dr-rebuild-supersession-guard.sh
✅ [SUCCESS] scripts/tests/test-kyverno-admission-vpa.sh
❌ [ERROR] scripts/tests/test-normalize-sarif-paths.sh
Error: File:[scripts/tests/test-normalize-sarif-paths.sh] is not executable
✅ [SUCCESS] scripts/tests/test-openbao-oidc-role.sh
❌ [ERROR] scripts/tests/test-opencost-usage-scraper.sh
Error: File:[scripts/tests/test-opencost-usage-scraper.sh] is not executable
❌ [ERROR] scripts/tests/test-refresh-flux-ghcr-auth-safety.sh
Error: File:[scripts/tests/test-refresh-flux-ghcr-auth-safety.sh] is not executable
✅ [SUCCESS] scripts/tests/test-restrict-tenant-secret-stores.sh
✅ [SUCCESS] scripts/tests/test-summarize-sarif-findings.sh
✅ [SUCCESS] scripts/tests/test-verify-published-evidence.sh
✅ [SUCCESS] scripts/update-vendored-operators.sh
✅ [SUCCESS] scripts/validate-alert-coverage.sh
✅ [SUCCESS] scripts/verify-published-evidence.sh
✅ [SUCCESS] scripts/wait-for-platform-flux-revision.sh
⚠️ REPOSITORY / checkov - 17 errors
ernetes-policy-index/bc-k8s-22
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_11: "CPU limits should be set"
FAILED for resource: Deployment.kube-system.coredns
File: /k8s/providers/docker/infrastructure/controllers/coredns/deployment.yaml:2-137
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-10
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
FAILED for resource: Deployment.kube-system.coredns
File: /k8s/providers/docker/infrastructure/controllers/coredns/deployment.yaml:2-137
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
FAILED for resource: Job.userns-longhorn-smoke.userns-longhorn-smoke
File: /k8s/providers/hetzner/apps/userns-longhorn-smoke/job.yaml:5-154
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_9: "Readiness Probe Should be Configured"
FAILED for resource: PodTemplate.overprovisioning.overprovisioning
File: /k8s/providers/hetzner/infrastructure/overprovisioning/pod-template.yaml:29-86
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-8
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_8: "Liveness Probe Should be Configured"
FAILED for resource: PodTemplate.overprovisioning.overprovisioning
File: /k8s/providers/hetzner/infrastructure/overprovisioning/pod-template.yaml:29-86
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-7
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_49: "Minimize wildcard use in Roles and ClusterRoles"
FAILED for resource: Role.github-config.github-config-managed-resources
File: /k8s/bases/apps/github-config/role.yaml:20-55
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/ensure-minimized-wildcard-use-in-roles-and-clusterroles
20 | apiVersion: rbac.authorization.k8s.io/v1
21 | kind: Role
22 | metadata:
23 | name: github-config-managed-resources
24 | namespace: github-config
25 | labels:
26 | app.kubernetes.io/managed-by: ksail
27 | rules:
28 | - apiGroups:
29 | - repo.github.m.upbound.io
30 | - team.github.m.upbound.io
31 | - actions.github.m.upbound.io
32 | - enterprise.github.m.upbound.io
33 | - github.m.upbound.io
34 | resources:
35 | - "*"
36 | verbs:
37 | - get
38 | - list
39 | - watch
40 | - create
41 | - update
42 | - patch
43 | - delete
44 | - apiGroups:
45 | - external-secrets.io
46 | resources:
47 | - externalsecrets
48 | verbs:
49 | - get
50 | - list
51 | - watch
52 | - create
53 | - update
54 | - patch
55 | - delete
Check: CKV_K8S_35: "Prefer using secrets as files over secrets as environment variables"
FAILED for resource: CronJob.umami.umami-provision-tenants
File: /k8s/bases/apps/umami/cron-job.yaml:44-318
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-33
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_22: "Use read-only filesystem for containers where possible"
FAILED for resource: CronJob.umami.umami-provision-tenants
File: /k8s/bases/apps/umami/cron-job.yaml:44-318
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-21
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
FAILED for resource: Job.openbao.vault-config
File: /k8s/bases/infrastructure/vault-config/job.yaml:36-1200
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
FAILED for resource: CronJob.openbao.vault-snapshot
File: /k8s/bases/infrastructure/vault-backup/cron-job.yaml:23-197
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_40: "Containers should run as a high UID to avoid host conflict"
FAILED for resource: Job.openbao.vault-snapshot-init
File: /k8s/bases/infrastructure/vault-backup/job.yaml:23-191
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-37
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_9: "Readiness Probe Should be Configured"
FAILED for resource: Deployment.opencost.opencost-usage-scraper
File: /k8s/bases/infrastructure/opencost/components/usage-scraper/deployment.yaml:1-78
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-8
Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_K8S_8: "Liveness Probe Should be Configured"
FAILED for resource: Deployment.opencost.opencost-usage-scraper
File: /k8s/bases/infrastructure/opencost/components/usage-scraper/deployment.yaml:1-78
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-7
Code lines for this resource are too many. Please use IDE of your choice to review the file.
github_actions scan results:
Passed checks: 100, Failed checks: 0, Skipped checks: 0
(Truncated to last 6666 characters out of 8775)
⚠️ SPELL / cspell - 2993 errors
"cutset",
"cyclonedx",
"daemonset",
"datapath",
"datreeio",
"dbname",
"dedupe",
"deletecollection",
"deploymentruntimeconfigs",
"descheduler",
"descheduling",
"desynchronising",
"devantler",
"diffable",
"dispositioned",
"dockerconfigjson",
"docstrings",
"dorny",
"dpkg",
"drainable",
"emptydir",
"endgroup",
"entrys",
"envsubst",
"esac",
"etcdctl",
"evictable",
"extensionless",
"externalsecret",
"externalsecrets",
"fanout",
"featureflagsource",
"fleetdm",
"fromdateiso",
"gatewayapi",
"generatable",
"generatingpolicies",
"genkey",
"gethomepage",
"gocritic's",
"golangci",
"gosec",
"grjtvs",
"growfs",
"growpart",
"healthchecks",
"healthz",
"helmrelease",
"helmreleases",
"helmv",
"homelab",
"hostnames",
"httproute",
"idempotently",
"imagetools",
"imagevalidatingpolicy",
"imranismail",
"injective",
"inspectable",
"iscsi",
"italicise",
"ivpol",
"keylessly",
"keypair",
"kprobes",
"kptr",
"krew",
"ksail",
"ksail's",
"ksailcd",
"kubeconfig",
"kubeconform",
"kubeconform's",
"kubelet",
"kubelet's",
"kubelets",
"kubelogin",
"kubescape",
"kubespan",
"kubevirt",
"kubevuln",
"kustomization",
"kustomizations",
"kyverno",
"letsencrypt",
"libc",
"libgnutls",
"lintable",
"livez",
"loadtester",
"locationless",
"luks",
"lycheeignore",
"machineconfig",
"materialise",
"materialised",
"materialises",
"maxage",
"maxbackup",
"maxsize",
"maxx",
"microtime",
"misconfig",
"misconfigs",
"misordered",
"mktemp",
"mlock",
"mutatingpolicies",
"mutatingwebhookconfigurations",
"myapp",
"najsk",
"neighbour",
"nenv",
"netlink",
"netpol",
"netpols",
"neutralises",
"neutralising",
"nextjs",
"nftables",
"nilnil",
"nobuckets",
"nodepod",
"nodeport",
"nolint",
"nonroot",
"normalisation",
"normalised",
"normalises",
"normalising",
"nosec",
"nullglob",
"ocirepository",
"openbao",
"opencost",
"openfeature",
"overprovisioning",
"parallelised",
"pasteable",
"permissioning",
"pipefail",
"policyignore",
"policyreports",
"portforward",
"preemptible",
"preservingly",
"prioritisable",
"prioritisation",
"prioritised",
"privesc",
"providerconfigs",
"pseudonymization",
"pseudonymized",
"pseudonymizes",
"publishapp",
"publishprovider",
"pushsecret",
"pushsecrets",
"pycache",
"randomises",
"rdqwpktr",
"readyz",
"reassertions",
"recognisably",
"recognise",
"recognised",
"recolour",
"reconverges",
"refreshfluxghcrauth",
"regenerable",
"releaserc",
"rematerialise",
"rematerialised",
"replicaset",
"repoint",
"repointed",
"repoints",
"repositoryrulesets",
"resizer",
"restrictor",
"retabbed",
"retarget",
"rmem",
"rolebindings",
"rollouts",
"rshared",
"sanitised",
"sanitiser",
"sanitising",
"sarif",
"scheckov",
"schedulability",
"schedulable",
"scopeable",
"scopeless",
"seccomp",
"secretbox",
"secretstore",
"seedable",
"serialised",
"serverside",
"serviceaccount",
"serviceaccounts",
"sgdisk",
"shellcheck",
"shfmt",
"shopt",
"siderolabs",
"siderolink",
"sigstore",
"skmde",
"slurpfile",
"sngle",
"specnull",
"spiffe",
"srole",
"startswith",
"statefulset",
"statemanager",
"stdlib",
"storageclass",
"subtest",
"summarised",
"surfaceless",
"syft",
"syscall",
"sysctls",
"talosconfig",
"talosctl",
"tanzu",
"templatesyncignore",
"thresholded",
"tlsv",
"tmpl",
"tostring",
"tracepoints",
"trixie",
"trueish",
"trustd",
"ture",
"uids",
"umami",
"umami's",
"unablated",
"unclickable",
"uncompilable",
"uncordon",
"uncordoned",
"undecoded",
"undercounts",
"undispositioned",
"unevidenced",
"unexcepted",
"unfiled",
"ungated",
"ungenerated",
"unifi",
"uninvoked",
"unmarshalling",
"unmarshals",
"unmodelled",
"unparseable",
"unprovisioned",
"unrecognisable",
"unrecognised",
"unrepresentable",
"unreviewed",
"unroutable",
"unrun",
"unshippable",
"unskipped",
"untrackable",
"unwired",
"upbound",
"updatekeys",
"upjet",
"upstreaming",
"urlencode",
"userinfo",
"userns",
"ushfn",
"validatable",
"validatealertcoverage",
"validatingwebhookconfigurations",
"vcunav",
"velero",
"virt",
"volumesnapshot",
"vpas",
"vulnerabilitymanifests",
"vulnerabilitymanifestsummary",
"vulns",
"vxlan",
"wffc",
"wgpolicyk",
"wildcarded",
"wlid",
"wmem",
"workloadconfigurationscans",
"workloadconfigurationscansummary",
"worktrees",
"yannh",
"yubikey",
"yzwvjjmcyfnl",
"zizmor"
]
}
You can also copy-paste megalinter-reports/.cspell.json at the root of your repository
(Truncated to last 6666 characters out of 531336)
⚠️ COPYPASTE / jscpd - 181 errors
:3 - 292:37]
Clone found (go)
- scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [370:69 - 379:5] (10 lines, 57 tokens)
scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [384:83 - 393:5]
Clone found (go)
- scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [422:68 - 430:5] (9 lines, 51 tokens)
scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [435:83 - 443:5]
Clone found (go)
- scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [447:52 - 464:5] (18 lines, 123 tokens)
scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [468:57 - 485:5]
Clone found (go)
- scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [492:77 - 508:11] (17 lines, 118 tokens)
scripts/tests/refresh-flux-ghcr-auth/rollout_safety_test.go [519:110 - 535:11]
Clone found (bash)
- scripts/tests/test-cilium-bandwidth-manager-component.sh [9:1 - 54:2] (46 lines, 202 tokens)
scripts/tests/test-cilium-homogeneous-devices-activation.sh [9:1 - 54:2]
Clone found (bash)
- scripts/tests/test-cilium-bandwidth-manager-component.sh [52:5 - 72:2] (21 lines, 67 tokens)
scripts/tests/test-cilium-homogeneous-devices-activation.sh [80:23 - 100:2]
Clone found (bash)
- scripts/tests/test-cilium-bandwidth-manager-component.sh [54:1 - 72:2] (19 lines, 65 tokens)
scripts/tests/test-opencost-usage-scraper.sh [15:1 - 33:2]
Clone found (bash)
- scripts/tests/test-cilium-mutual-auth-policy.sh [28:29 - 41:10] (14 lines, 78 tokens)
scripts/tests/test-cilium-mutual-auth-policy.sh [79:33 - 92:10]
Clone found (bash)
- scripts/tests/test-cilium-mutual-auth-policy.sh [98:33 - 107:54] (10 lines, 57 tokens)
scripts/tests/test-cilium-mutual-auth-policy.sh [118:32 - 127:54]
Clone found (bash)
- scripts/tests/test-refresh-flux-ghcr-auth-safety.sh [177:5 - 185:51] (9 lines, 76 tokens)
scripts/tests/test-refresh-flux-ghcr-auth-safety.sh [186:5 - 194:51]
Clone found (python)
- scripts/tests/test_validate_homepage_bookmarks.py [46:57 - 54:54] (9 lines, 58 tokens)
scripts/tests/test_validate_homepage_bookmarks.py [100:53 - 109:54]
Clone found (go)
- scripts/validate-dr-signing/main.go [920:21 - 952:5] (33 lines, 145 tokens)
scripts/validate-merge-group-heal/main.go [77:40 - 109:5]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [244:50 - 249:24] (6 lines, 103 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [756:31 - 761:24]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [276:14 - 282:4] (7 lines, 115 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [603:43 - 609:4]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [302:13 - 311:7] (10 lines, 158 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [828:18 - 837:7]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [311:1 - 316:8] (6 lines, 93 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [838:1 - 843:8]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [388:5 - 393:2] (6 lines, 82 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [574:8 - 579:9]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [389:1 - 399:23] (11 lines, 220 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [666:60 - 677:3]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [393:15 - 404:2] (12 lines, 185 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [494:17 - 505:2]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [440:15 - 451:12] (12 lines, 264 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [649:1 - 662:3]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [503:2 - 509:19] (7 lines, 89 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [688:7 - 694:19]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [503:2 - 509:33] (7 lines, 103 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [1013:58 - 1019:33]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [503:2 - 509:4] (7 lines, 74 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [1126:5 - 1132:4]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [596:30 - 601:8] (6 lines, 50 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [623:44 - 628:8]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [710:22 - 716:2] (7 lines, 135 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [1212:22 - 1218:2]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [951:33 - 959:11] (9 lines, 118 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [963:130 - 971:11]
Clone found (go)
- scripts/validate-eks-ci-role-policy/main_test.go [1158:47 - 1163:2] (6 lines, 166 tokens)
scripts/validate-eks-ci-role-policy/main_test.go [1238:46 - 1243:2]
Clone found (python)
- scripts/validate-naming.py [126:52 - 132:25] (7 lines, 53 tokens)
scripts/validate-naming.py [171:82 - 177:29]
┌────────┬────────────────┬─────────────┬──────────────┬──────────────┬──────────────────┬───────────────────┐
│ Format │ Files analyzed │ Total lines │ Total tokens │ Clones found │ Duplicated lines │ Duplicated tokens │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ bash │ 33 │ 10646 │ 41954 │ 19 │ 233 (2.19%) │ 1459 (3.48%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ go │ 34 │ 27587 │ 172172 │ 96 │ 784 (2.84%) │ 7524 (4.37%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ python │ 4 │ 807 │ 5606 │ 2 │ 14 (1.73%) │ 111 (1.98%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ txt │ 57 │ 3378 │ 109125 │ 64 │ 2417 (71.55%) │ 80219 (73.51%) │
├────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ Total: │ 128 │ 42418 │ 328857 │ 181 │ 3448 (8.13%) │ 89313 (27.16%) │
└────────┴────────────────┴─────────────┴──────────────┴──────────────┴──────────────────┴───────────────────┘
Found 181 clones.
HTML report saved to megalinter-reports/copy-paste/jscpd-report.html
ERROR: jscpd found too many duplicates (8.1%) over threshold (0.0%)
time: 960.540ms
(Truncated to last 6666 characters out of 38630)
⚠️ MARKDOWN / markdownlint - 63 errors
hould have a language specified [Context: "```"]
AGENTS.md:101:401 error MD013/line-length Line length [Expected: 400; Actual: 1769]
AGENTS.md:105:401 error MD013/line-length Line length [Expected: 400; Actual: 1126]
AGENTS.md:106:401 error MD013/line-length Line length [Expected: 400; Actual: 1447]
AGENTS.md:159:401 error MD013/line-length Line length [Expected: 400; Actual: 649]
AGENTS.md:161:401 error MD013/line-length Line length [Expected: 400; Actual: 971]
AGENTS.md:188:401 error MD013/line-length Line length [Expected: 400; Actual: 970]
AGENTS.md:191:401 error MD013/line-length Line length [Expected: 400; Actual: 453]
AGENTS.md:210:401 error MD013/line-length Line length [Expected: 400; Actual: 846]
AGENTS.md:279:401 error MD013/line-length Line length [Expected: 400; Actual: 491]
AGENTS.md:280:401 error MD013/line-length Line length [Expected: 400; Actual: 468]
AGENTS.md:286:401 error MD013/line-length Line length [Expected: 400; Actual: 532]
AGENTS.md:288:401 error MD013/line-length Line length [Expected: 400; Actual: 523]
AGENTS.md:291:401 error MD013/line-length Line length [Expected: 400; Actual: 613]
AGENTS.md:292:401 error MD013/line-length Line length [Expected: 400; Actual: 714]
AGENTS.md:296:401 error MD013/line-length Line length [Expected: 400; Actual: 502]
AGENTS.md:300:401 error MD013/line-length Line length [Expected: 400; Actual: 441]
AGENTS.md:305:401 error MD013/line-length Line length [Expected: 400; Actual: 427]
AGENTS.md:408:401 error MD013/line-length Line length [Expected: 400; Actual: 1139]
AGENTS.md:410:401 error MD013/line-length Line length [Expected: 400; Actual: 1240]
AGENTS.md:415:401 error MD013/line-length Line length [Expected: 400; Actual: 430]
AGENTS.md:426:401 error MD013/line-length Line length [Expected: 400; Actual: 1137]
AGENTS.md:437:401 error MD013/line-length Line length [Expected: 400; Actual: 790]
AGENTS.md:442:401 error MD013/line-length Line length [Expected: 400; Actual: 515]
CLAUDE.md:1 error MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "@AGENTS.md"]
docs/dr/alerting.md:213:28 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:22:389 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:23:264 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:27:35 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:27:161 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:27:239 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/crypto-custody.md:114 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Custody recommendations"]
docs/dr/crypto-custody.md:245 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Custody recommendations"]
docs/dr/crypto-custody.md:251 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "What to do if it leaks"]
docs/dr/crypto-custody.md:258 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "What to do if it is *lost* (no..."]
docs/dr/restore-drill.md:42 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:23:102 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/runbook.md:23:487 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/runbook.md:34 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:41 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:50 error MD028/no-blanks-blockquote Blank line inside blockquote
docs/dr/runbook.md:489:92 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/spire-server-ha.md:93 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/dr/velero-cnpg.md:11 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/dr/velero-cnpg.md:56:78 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:56:166 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:57:78 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:57:227 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:58:78 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/dr/velero-cnpg.md:58:166 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
docs/github-management.md:38:401 error MD013/line-length Line length [Expected: 400; Actual: 419]
docs/github-management.md:40:401 error MD013/line-length Line length [Expected: 400; Actual: 522]
docs/node-autoscaling.md:14 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/oidc-kubectl.md:95 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/runtime-security.md:114 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/rwx-storage.md:9 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/unifi-management.md:14 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
docs/unifi-management.md:62 error MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
README.md:116:401 error MD013/line-length Line length [Expected: 400; Actual: 540]
README.md:237:32 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
README.md:237:36 error MD060/table-column-style Table column style [Table pipe does not align with header for style "aligned"]
(Truncated to last 6666 characters out of 6992)
⚠️ REPOSITORY / trivy - 1 error
er/infrastructure/vertical-pod-autoscalers/spire-agent.yaml:9-13
────────────────────────────────────────
9 ┌ spec:
10 │ targetRef:
11 │ apiVersion: apps/v1
12 │ kind: DaemonSet
13 └ name: spire-agent
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/spire-server.yaml (kubernetes)
============================================================================================
Tests: 118 (SUCCESSES: 116, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
KSV-0037 (MEDIUM): VerticalPodAutoscaler 'spire-server' should not be set with 'kube-system' namespace
════════════════════════════════════════
ensure that user resources are not placed in kube-system namespace
See https://avd.aquasec.com/misconfig/ksv-0037
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/spire-server.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: StatefulSet
11 └ name: spire-server
────────────────────────────────────────
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/spire-server.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: StatefulSet
11 └ name: spire-server
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon-operator.yaml (kubernetes)
=================================================================================================
Tests: 118 (SUCCESSES: 116, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
KSV-0037 (MEDIUM): VerticalPodAutoscaler 'tetragon-operator' should not be set with 'kube-system' namespace
════════════════════════════════════════
ensure that user resources are not placed in kube-system namespace
See https://avd.aquasec.com/misconfig/ksv-0037
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon-operator.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: Deployment
11 └ name: tetragon-operator
────────────────────────────────────────
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon-operator.yaml:7-11
────────────────────────────────────────
7 ┌ spec:
8 │ targetRef:
9 │ apiVersion: apps/v1
10 │ kind: Deployment
11 └ name: tetragon-operator
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon.yaml (kubernetes)
========================================================================================
Tests: 118 (SUCCESSES: 116, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 1, HIGH: 0, CRITICAL: 0)
KSV-0037 (MEDIUM): VerticalPodAutoscaler 'tetragon' should not be set with 'kube-system' namespace
════════════════════════════════════════
ensure that user resources are not placed in kube-system namespace
See https://avd.aquasec.com/misconfig/ksv-0037
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon.yaml:9-13
────────────────────────────────────────
9 ┌ spec:
10 │ targetRef:
11 │ apiVersion: apps/v1
12 │ kind: DaemonSet
13 └ name: tetragon
────────────────────────────────────────
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
k8s/providers/hetzner/infrastructure/vertical-pod-autoscalers/tetragon.yaml:9-13
────────────────────────────────────────
9 ┌ spec:
10 │ targetRef:
11 │ apiVersion: apps/v1
12 │ kind: DaemonSet
13 └ name: tetragon
────────────────────────────────────────
ksail.prod.yaml (kubernetes)
============================
Tests: 118 (SUCCESSES: 117, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
ksail.prod.yaml:7-270
────────────────────────────────────────
7 ┌ name: prod
8 │ spec:
9 │ cluster:
10 │ distributionConfig: talos
11 │ connection:
12 │ context: admin@prod
13 │ timeout: 30m
14 │ distribution: Talos
15 └ provider: Hetzner
..
────────────────────────────────────────
ksail.yaml (kubernetes)
=======================
Tests: 118 (SUCCESSES: 117, FAILURES: 1)
Failures: 1 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
KSV-0039 (LOW): A LimitRange policy with a default requests and limits for each container should be configured
════════════════════════════════════════
Ensure that a LimitRange policy is configured to limit resource usage for namespaces or nodes
See https://avd.aquasec.com/misconfig/ksv-0039
────────────────────────────────────────
ksail.yaml:7-55
────────────────────────────────────────
7 ┌ name: local
8 │ spec:
9 │ cluster:
10 │ distributionConfig: talos-local
11 │ connection:
12 │ context: admin@local
13 │ timeout: 40m
14 │ distribution: Talos
15 └ provider: Docker
..
────────────────────────────────────────
📣 Notices:
- Version 0.73.0 of Trivy is now available, current version is 0.71.2
To suppress version checks, run Trivy scans with the --skip-version-check flag
(Truncated to last 6666 characters out of 796878)
✅ Linters with no issues
actionlint, betterleaks, git_diff, golangci-lint, grype, jsonlint, lychee, osv-scanner, prettier, prettier, revive, secretlint, shellcheck, shfmt, syft, trivy-sbom, trufflehog, v8r, v8r, yamllint, zizmor
Notices
📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)
See detailed reports in MegaLinter artifacts

Show us your support by starring ⭐ the repository
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
@devantler I will review the changes in #2977.
✅ Action performed
Review finished.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

📝 Walkthrough
Walkthrough
The node cordon claim now validates captured node preconditions after atomic claim conflicts. It retries eligible conflicts with a refreshed node and rebuilt patch. Bootstrap and normal synchronization pass the captured cordon state and taints. Tests cover recovery from an unrelated write and failure after exhausting retries.
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name |
Status |
Explanation |
Resolution |
| Docstring Coverage |
⚠️ Warning |
Docstring coverage is 54.55% which is insufficient. The required threshold is 80.00%. |
Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name |
Status |
Explanation |
| Linked Issues check |
✅ Passed |
The changes implement bounded retries, invariant revalidation, fail-closed behavior, and tests required by issue #2976. |
| Out of Scope Changes check |
✅ Passed |
The changes remain within the requested scripts and fake-kubectl tests for safe cordon-claim retries. |
| Title check |
✅ Passed |
The title clearly summarizes the main change: retrying cordon claims after unrelated Node writes cause CAS conflicts. |
| Description check |
✅ Passed |
The description explains the cause, retry behavior, safety invariants, failure behavior, tests, and linked issue. |
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Readiness re-verified independently at 4568409b
I re-ran the proof myself in a clean clone rather than relying on the earlier evidence note.
1. Programmatically tested. Full package green at head: ok … 114.440s, whole suite.
2. RED/GREEN by ablation — reverted only the two shell scripts to base and kept the new tests, so the mechanism moved rather than being deleted:
TestUnrelatedNodeWriteBeforeAtomicClaimIsRetried → FAILS, with exactly the production symptom:
::error::Could not atomically claim and cordon Talos node prod-worker-1; refusing to drain it. / cordon-claim: resourceVersion test failed
TestRetriedClaimStillRefusesWhenTheRetryBudgetIsExhausted → passes in both arms, which is correct: base always refuses, so only the benign-conflict arm should move. The refusal direction is genuinely still pinned.
- Control restored → both green again, tree clean.
3. Tried as a user. The exercised behaviour is the one the deploy actually hits: a benign concurrent Node write during a cordon claim. It now proceeds, while a genuine conflict (another cordoner, ownership/taint change, node replacement) and an exhausted retry budget still fail closed. That is the merge-queue eviction cause this repo has been losing deploys to.
Review gate: cr@4568409b51 — CodeRabbit completed at head (status Review completed 16:25:13Z; summary comment updated 16:25:12Z after the 16:23:13Z request, No actionable comments were generated), 0 unresolved threads, 0 finding sections.
Promoting and merging.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
CodeRabbit completed at this head without producing a gate-satisfying artifact — zero review objects on the PR, and its auto-generated summary does not name the head. Per the review-lane ladder that is a completed no-gate outcome, not a finding to fix, so this advances to the next lane rather than re-spending CodeRabbit.
@codex review
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
🤖 Generated by the Agentic Engineer
Codex reported a usage limit for code reviews at 19:22:41Z with no retry window, so that lane will not deliver at this head. Advancing to the third lane.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Bugbot couldn't run - usage limit reached
Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.
A user or team admin can review and increase usage limits in the Cursor dashboard.
(requestId: serverGenReqId_207fc212-6bd3-481a-89e2-e82a86391089)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 5, 2026
🤖 Generated by the Agentic Engineer
Self-review (fallback — CodeRabbit, Codex and Cursor Bugbot unavailable)
Reviewed commit: 4568409b511269eec209abf8c3580d0819fbf8d6
Per-lane evidence, each checked directly on this PR at this exact head:
| Lane |
Outcome |
Evidence |
| CodeRabbit |
completed, no gate-satisfying artifact |
request marker 16:23:13Z; head status success :: Review completed but zero review objects on the PR, and the auto-generated summary does not name this head. Status proves a run completed, not that a review was produced. |
| Codex |
usage limit |
chatgpt-codex-connector[bot] 19:22:41Z — usage limits reached for code reviews, no retry window |
| Cursor Bugbot |
usage limit |
check-run Cursor Bugbot conclusion=neutral / output.title=Error (run never started), plus cursor[bot] 19:26:10Z "usage limit reached — an admin must raise the Cursor cap" |
Findings
P2 (Minor) — a refused claim can report no cause. The retry re-reads the Node to decide whether a rejected claim is still safe to retry, and points that read's stderr at the same result_file holding the conflict output. A successful read writes nothing, truncating it, and emit_safe_operation_output returns early on an empty file — so the "preconditions no longer hold" break emits a bare refusal with no reason, in the concurrent-actor case that most needs one.
Verified, not inferred: reproduced by assertion, with the mechanism moved rather than the test deleted — restoring the shared sink fails expected document to contain "cordon-claim: ", and the fix passes. The exhausted-budget and failed-re-read paths are unaffected and still report correctly.
Not fixed in place: this PR is at merge-queue position 3, so its branch rejects pushes (protected branch hook declined). Dequeuing a CLEAN queued PR to improve an error message is disproportionate, so the fix is #2983, gated to land after this merges. Issue: #2982.
What I checked and found sound
- The retry budget is correct: the apply runs on attempts 1–5, and exhaustion still refuses without leaving an owner marker.
node_claim_preconditions_still_hold is a genuinely conservative precondition set — identity, deletion, both ownership annotations, scheduling intent, and taints excluding the unschedulable taint. A concurrent cordon, ownership grab, taint edit or node replacement all still refuse rather than retry.
- The fakes exercise both a clearing conflict and a permanent one, and assert the claim precedes the drain.
Verdict: no P0/P1 findings (1 × P2, addressed in #2983).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 10, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|