You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "michaelsembwever (via GitHub)" <gi...@apache.org> on 2026/10/21 07:41:44 UTC
Re: [PR] CASSANDRA-21764 Improve Jenkins job defaults and run-ci build monitoring [cassandra]
michaelsembwever commented on code in PR #5265:
URL: https://github.com/apache/cassandra/pull/5265#discussion_r4334232595
##########
.build/run-ci:
##########
@@ -768,8 +1042,22 @@ def node_cleaner(k8s_client: client.CoreV1Api, kubeconfig: Optional[str], kubeco
Env variables (per cloud provider): AWS_REGION, GCP_PROJECT_ID, GCP_ZONE
"""
+ stopped = threading.Event()
+ stop_lock = threading.Lock()
+
def keep_running() -> bool:
- return bool(globals().get("IS_RUNNING", True))
+ return not stopped.is_set() and bool(globals().get("IS_RUNNING", True))
+
+ def stop_on_error(error):
Review Comment:
Yes.
The stop-on-error behaviour is deliberate: e.g failed credential refreshes previously kept spawning workers and repeating errors. Stopping the cleaner also prevents subsequent deletion steps after an inspection or Kubernetes API failure. Jenkins monitoring continues.
The tradeoff is as described: transient errors also stop cleanup, and so it must be restarted with `--only-node-cleaner` after access recovers.
The existing TestNodeCleanerAccess tests cover this policy; I have clarified the documentation locally to state that transient errors are included.
##########
.build/run-ci:
##########
@@ -1245,6 +1644,13 @@ def main():
"dtest_branch": args.dtest_branch or ""
}
+ args.job = base_job_name(args)
+ running = matching_running_build(server, ip, args.job, build_params)
+ if running is not None and confirm_attachment(args.job, running):
+ args.attach = running
+ attach_build(k8s_client, ip, server, args)
Review Comment:
Fixed.
Now honours --tear-down after attach_build returns, plus regression tests for teardown after downloads and no teardown on interruption. An explicit --attach still rejects teardown.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org