Skip to content

Bound resource deletion in tests and drop fixed auto-build delay - #1649

Merged
ptziegler merged 1 commit into
masterfrom
bound-test-resource-deletion
Sep 29, 2026
Merged

ptziegler merged 1 commit into
masterfrom
bound-test-resource-deletion

Conversation

@vogella

@vogella vogella commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

The force-delete helpers in AbstractJavaProjectTest retried forever when a resource could not be deleted, and tearDown wrapped them in up to 5000 more retries, so a single locked file could hang the test run until the CI job timeout. They now fail after 30 seconds with an error naming the resource, which turns a silent hang into a diagnosable test failure. The fixed 25 ms sleep in waitForAutoBuild() is also removed, since the auto-build job is joined right afterwards anyway. The full test suite passed twice locally with the change.

The force-delete helpers of AbstractJavaProjectTest looped forever when a
resource could not be deleted, and tearDown wrapped them in up to 5000
more retries, so a locked file hung the build until the CI job timeout.
The helpers now fail after 30 seconds with an error naming the resource,
and the redundant outer retry is removed.

waitForAutoBuild() also no longer sleeps 25 ms before joining the
auto-build job.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

Copy link
Copy Markdown

Test Results

     4 files  +    1       4 suites  +1   2h 21m 6s ⏱️ + 56m 46s
 7 022 tests ±    0   6 992 ✅ ±    0  30 💤 ± 0  0 ❌ ±0 
23 684 runs  +5 921  23 588 ✅ +5 900  96 💤 +21  0 ❌ ±0 

Results for commit 8ad277c. ± Comparison against base commit d047ba5.

@ptziegler ptziegler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think I've ever seen the CI builds get stuck due to file removal. But producing a meaningful error is definitely a good idea!

@ptziegler ptziegler added this to the 1.26.0 milestone Sep 29, 2026
@ptziegler
ptziegler merged commit 85bc62a into master Sep 29, 2026
8 checks passed
@ptziegler
ptziegler deleted the bound-test-resource-deletion branch September 29, 2026 19:00
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