Skip to content

CASSANDRA-21596: Remove the unused timeout pre-condition from the docker build scripts - #5052

Closed
aviau wants to merge 1 commit into
apache:trunkfrom
aviau:aviau/CASSANDRA-21596/cassandra-5.0
Closed

CASSANDRA-21596: Remove the unused timeout pre-condition from the docker build scripts#5052
aviau wants to merge 1 commit into
apache:trunkfrom
aviau:aviau/CASSANDRA-21596/cassandra-5.0

Conversation

@aviau

@aviau aviau commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

.build/docker scripts refuse to run without timeout, which they never invoke.

patch by Alexandre Viau; reviewed by TBD for CASSANDRA-21596

Neither script ever invokes timeout(1).  The container deadline is enforced by
docker itself, `docker run ... sleep ${docker_timeout_hours}h`, and
.build/run-tests.sh's _timeout_for only greps an ant property out of build.xml
to pass as -Dtest.timeout.  macOS ships no timeout(1), so both scripts exit 1
on a stock macOS checkout over a tool they never use.  The neighbouring docker
and bc checks stay, as those tools are genuinely invoked.

patch by Alexandre Viau; reviewed by TBD for CASSANDRA-21596
@aviau aviau changed the title Remove the unused timeout pre-condition from the docker build scripts CASSANDRA-21596: Remove the unused timeout pre-condition from the docker build scripts Aug 22, 2026

@michaelsembwever michaelsembwever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great and simple catch, thanks @aviau !

Maybe you would be interested in reviewing (at any level and any amount) the PR that's in review that strengthens and adds tests around all this…
#4951

We are see AI agents really hammering the use of these scripts and that's smoking out a few bugs!

@michaelsembwever

Copy link
Copy Markdown
Member

committed with cf64b6f

@aviau

aviau commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks!

@aviau
aviau deleted the aviau/CASSANDRA-21596/cassandra-5.0 branch August 26, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants