Skip to content

Let Project > Clean not hold the workspace root as job rule - #4600

Draft
anydoby wants to merge 1 commit into
eclipse-platform:masterfrom
anydoby:clean-job-without-rule
Draft

anydoby wants to merge 1 commit into
eclipse-platform:masterfrom
anydoby:clean-job-without-rule

Conversation

@anydoby

@anydoby anydoby commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Project > Clean ran its job with the workspace root as job rule. While selected projects were cleaned, all jobs that change resources waited, and launches in other projects too.

Each project clean takes the rules that its builders need, so the job needs no rule. BuildAction already runs builds this way. A builder with a project rule now lets other projects work during the clean. Builders with the default rule, and "Clean all", still take the root. The job stays one workspace operation, so the auto-build still starts after the clean.

Trade-off: with root-rule builders, an auto-build that is already scheduled can run between two project cleans. The result is correct, but some work repeats.

This is part of work I've been doing on refactoring eclipse's build locking mechanism to fix a very old platform problem (at least for me): a build or a refresh in one unrelated project locks the whole workspace leaving you with frozen IDE for a very long time. I tended to just kill eclipse and start it over, but after a refactoring (this little PR is part of it) I can have hundreds of projects in single workspace without problems of this kind.

Tested in Eclipse 4.41: a clean of a project with a project-rule builder no longer delays Ctrl+F11 in another project.

🤖 Generated with Claude Code

The clean job had the workspace root as job rule. So while a project was
cleaned, no other job could change any resource, and launches waited.

Each project clean takes the rules that its builders need, as the build
in BuildAction does without a job rule. A builder with a smaller rule
than the root (for example a project rule) now lets other projects work
during a clean of selected projects. "Clean all" still takes the root.
The job is still one workspace operation, so the auto-build starts after
the clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   867 files  ±0     867 suites  ±0   44m 18s ⏱️ + 3m 8s
 8 572 tests ±0   8 332 ✅ ±0  240 💤 ±0  0 ❌ ±0 
21 588 runs  ±0  20 915 ✅ ±0  673 💤 ±0  0 ❌ ±0 

Results for commit 6af54d5. ± Comparison against base commit 6cf7aae.

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.

1 participant