Skip to content

Stop one project's tree file name from protecting another's stale file - #2982

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:stale-tree-files-exclude-list
Open

vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:stale-tree-files-exclude-list

Conversation

@vogella

@vogella vogella commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

During a workspace save, removeUnusedTreeFiles deletes outdated tree files of the workspace root and every project, but it carried a single exclude list across all of them. When a project had no tree file on disk, its file name stayed in that list, and because tree files are named by a per resource sequence number it could match an outdated tree file of a later project, which was then never cleaned up. The exclude list is now built per resource, so each project only protects its own current tree file.

Contributes to #2887

removeUnusedTreeFiles shared one exclude list across all projects.
removeFiles drops a name from it once it sees the matching file, but when a
project had no tree file on disk its name stayed in the list. Tree files are
named by a per resource sequence number, so that leftover name can match an
outdated tree file of a later project and keep it from being deleted.

Build the exclude list per resource instead.

Contributes to eclipse-platform#2887

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

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   55m 38s ⏱️ - 1m 1s
 4 849 tests ±0   4 827 ✅ ±0   22 💤 ±0  0 ❌ ±0 
12 438 runs  ±0  12 284 ✅ ±0  154 💤 ±0  0 ❌ ±0 

Results for commit 277eb2a. ± Comparison against base commit 8fa7d88.

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