Skip to content

Do checks inside the job and compute the classpath entries#1897

Merged
laeubi merged 1 commit intoeclipse-pde:masterfrom
laeubi:do_more_in_the_job
Jul 25, 2025
Merged

Do checks inside the job and compute the classpath entries#1897
laeubi merged 1 commit intoeclipse-pde:masterfrom
laeubi:do_more_in_the_job

Conversation

@laeubi
Copy link
Copy Markdown
Contributor

@laeubi laeubi commented Jul 25, 2025

Currently some checks are performed outside the update job, for example the model is fetched and the javanature. These values can change between submit the data to the job and it actually pick it up.

This now moves these check into the job itself and uses a concurrent queue to prevent the need for synchronized. Also results are collected inside a Map so if new update request are received in the meanwhile we discard the previous computed values.

Beside that, entries are now eagerly computed as they are required anyways when we set the classpath and we can catch problems that occur here instead of just swallow them.

Also the job now react to cancel request much better than before.

Currently some checks are performed outside the update job, for example
the model is fetched and the javanature. These values can change between
submit the data to the job and it actually pick it up.

This now moves these check into the job itself and uses a concurrent
queue to prevent the need for synchronized. Also results are collected
inside a Map so if new update request are received in the meanwhile we
discard the previous computed values.

Beside that, entries are now eagerly computed as they are required
anyways when we set the classpath and we can catch problems that occur
here instead of just swallow them.

Also the job now react to cancel request much better than before.
@laeubi laeubi force-pushed the do_more_in_the_job branch from 686e11f to b6976f9 Compare July 25, 2025 14:54
@github-actions
Copy link
Copy Markdown

Test Results

   765 files     765 suites   48m 41s ⏱️
 3 611 tests  3 557 ✅  54 💤 0 ❌
10 834 runs  10 671 ✅ 163 💤 0 ❌

Results for commit b6976f9.

@laeubi laeubi merged commit 000260f into eclipse-pde:master Jul 25, 2025
19 checks passed
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