Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary persistence of activity enablements #1084 #1085

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

HeikoKlare
Copy link
Contributor

The ActivityPersistenceHelper persists all activity enablements upon every notification about a changed activity enablement it receives. Persistence is, however, only done and thus necessary for activities that are not expression-controlled. So the current implementation performs unnecessary persistence operations.

With this change, the ActivityPersistenceHelper only persists the enablements when the enablement of a non-expression-controlled activity has changed. To this end, the received ActivityManagerEvent is extended by the information about whether such an activity was affected. This information is either directly passed to the event construction in case it has already been calculated in the calling context or is calculated lazily when accessing the value.

Contributes to #1084.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

Test Results

     852 files  ±0       852 suites  ±0   1h 49m 28s ⏱️ - 7m 29s
  7 327 tests ±0    7 175 ✔️ ±0  152 💤 ±0  0 ±0 
23 127 runs  ±0  22 624 ✔️ ±0  503 💤 ±0  0 ±0 

Results for commit d8bb0db. ± Comparison against base commit be6e2f9.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the issue-1084-startup branch 6 times, most recently from c377b17 to 29e9123 Compare September 11, 2023 07:57
@HeikoKlare
Copy link
Contributor Author

Failing test is documented: #926

@HeikoKlare HeikoKlare marked this pull request as ready for review September 11, 2023 09:03
@HeikoKlare HeikoKlare force-pushed the issue-1084-startup branch 6 times, most recently from 8b8742f to 60e445d Compare September 19, 2023 12:20
…m#1084

The ActivityPersistenceHelper persists all activity enablements upon
every notification about a changed activity enablement it receives.
Persistence is, however, only done and thus necessary for activities
that are not expression-controlled. So the current implementation
performs unnecessary persistence operations.

With this change, the ActivityPersistenceHelper only persists the
enablements when the enablement of a non-expression-controlled activity
has changed. To this end, the received ActivityManagerEvent is extended
by the information about whether such an activity was affected. This
information is either directly passed to the event construction in case
it has already been calculated in the calling context or is calculated
lazily when accessing the value.

Contributes to
eclipse-platform#1084.
@HeikoKlare HeikoKlare merged commit 21eecdc into eclipse-platform:master Sep 19, 2023
14 checks passed
@HeikoKlare HeikoKlare deleted the issue-1084-startup branch September 19, 2023 15:47
@akurtakov
Copy link
Member

@laeubi
Copy link
Contributor

laeubi commented Sep 20, 2023

Also reported here (search for javadoc:jar):

https://github.com/eclipse-platform/eclipse.platform.ui/runs/16931217956

@HeikoKlare
Copy link
Contributor Author

Sorry for that. I'll provide a fix in a moment.

Could we have those checks integrated into mandatory GH Actions checks to have them represented as actual errors of the PR? Or is there a (non-technical) reason for not dong so?

@HeikoKlare
Copy link
Contributor Author

Also reported here (search for javadoc:jar):

https://github.com/eclipse-platform/eclipse.platform.ui/runs/16931217956

I think the ones reported there are not related to this PR but pre-existing issues in Javadoc generation, as they appear in every Jenkins log. In particular, the warnings also occur in the build for the PR with the fixes for the broken Javadoc in this PR: https://github.com/eclipse-platform/eclipse.platform.ui/pull/1142/checks?check_run_id=16954953767

@akurtakov
Copy link
Member

The I-build javadoc generation cares about public API only while the GH action looks at all the sources. We never managed to get that to a clean state to even consider making it fail the build. It's an extra issue (not investigated yet AFAICT) that some javadoc errors are not catched in the Javadoc report but are only in the Maven one which is full with other issues and thus even less people notice these.
Long story short - it's a a web of issues so I kindly ask everyone to just try to not let warnings stay around when noticed, if enough people do that at some point we should be able to raise certain things to errors and make them more obvious. Help on the releng side to get better configs, improving tools and etc. is also highly appreciated.

@HeikoKlare
Copy link
Contributor Author

Thanks for clarification, @akurtakov! Good to know about that situation and have it in mind when looking at PR check results and logs.

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.

4 participants