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

Fix plugin framework tests #1088

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Apr 14, 2023

Overview

  • Ensure PluginFramework tests do not run in concurrently: associates a resource lock called ctkPluginStorage with each test, this ensures different processes do no attempt to update the database at the same time.

  • Consistently name the PluginFramework performance test. The table below summarized the test names before and after for both PluginFramework test and performance test.

    org_commontk_pluginfwtest org_commontk_pluginfwtest_perf
    Before CTKPluginFramework org_commontk_pluginfwtest_perf
    After CTKPluginFramework CTKPluginFrameworkTests.perf

The following tests will now pass independently of the test concurrency level:

  • CTKPluginFramework
  • CTKPluginFramework.perf

Remaining failure

The test CTKPluginFrameworkAppTests is exiting with the following warning:

QThreadStorage: Thread 0x9994b0 exited after QThreadStorage 5 destroyed

Since the test is set to run with he environment variable QT_FATAL_WARNINGS=1, it is failing.

Failure observed on the following systems:

QT_FATAL_WARNINGS Linux macOS Windows
1
0 ✔️

@jcfr jcfr force-pushed the fix-PluginFramework-tests branch from 75d873c to e19d44f Compare April 17, 2023 05:16
jcfr added 2 commits June 13, 2023 00:13
The table below summarized the test names before and after for both
PluginFramework test and performance test.

|        | org_commontk_pluginfwtest | org_commontk_pluginfwtest_perf |
|--------|---------------------------|--------------------------------|
| Before | CTKPluginFramework        | org_commontk_pluginfwtest_perf |
| After  | CTKPluginFramework        | CTKPluginFrameworkTests.perf   |
This commit associates a resource lock called "ctkPluginStorage" with
each test, this ensures different processes do no attempt to update the
database at the same time.
@jcfr jcfr force-pushed the fix-PluginFramework-tests branch from e19d44f to f7c0e53 Compare June 13, 2023 04:14
@jcfr jcfr merged commit 3119697 into commontk:master Jun 13, 2023
@jcfr jcfr deleted the fix-PluginFramework-tests branch June 13, 2023 04:22
@jcfr jcfr mentioned this pull request Jun 15, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant