Repository navigation
Luapmartin/10510 - #10518
Luapmartin/10510#10518luapmartin wants to merge 41 commits into
Conversation
4272398 to
66ff24f
Compare
d562e1e to
d98a4ee
Compare
7ba6755 to
629f1f4
Compare
…ke it default), add title
531171b to
3030754
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
CMakeLists.txt (1)
100-116:⚠️ Potential issue | 🟠 Major
AU_BUILD_APPSHELL_TESTSdoes not currently disable the supporting workspace tests.
MUSE_MODULE_WORKSPACE_TESTSis forced on before the new option is even declared, so a build with-DAU_BUILD_APPSHELL_TESTS=OFFstill keeps the framework workspace test surface enabled. That makes the new toggle incomplete and can break “tests-off” build profiles.💡 Suggested fix
-set(MUSE_MODULE_WORKSPACE_TESTS ON) +set(MUSE_MODULE_WORKSPACE_TESTS OFF) ... option(AU_BUILD_APPSHELL_MODULE "Build appshell module" ON) +option(AU_BUILD_APPSHELL_TESTS "Build appshell tests" ON) option(AU_BUILD_AUTOMATION_TESTS "Build automation tests" ON) option(AU_BUILD_CLOUD_AUDIOCOM "Build cloud audiocom module" ON) ... -option(AU_BUILD_APPSHELL_TESTS "Build appshell tests" ON) +if (MUSE_ENABLE_UNIT_TESTS AND AU_BUILD_APPSHELL_TESTS) + set(MUSE_MODULE_WORKSPACE_TESTS ON) +endif()
♻️ Duplicate comments (1)
src/au3cloud/au3cloudmodule.cpp (1)
37-39:⚠️ Potential issue | 🟠 MajorMove the cloud DB teardown out of the per-context deinit path.
Au3CloudContext::onDeinit()runs once per IOC context, but the database you are closing inIAu3AudioComService::deinit()is process-wide (CloudProjectsDatabase::Get()). In a multi-window session, destroying one context can tear down the shared DB while other contexts are still alive. This belongs inAu3CloudModule::onDeinit()or behind a “last context shutting down” guard instead.Also applies to: 80-85
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: b767054d-111e-4931-a43e-5de9d3c1c50f
📥 Commits
Reviewing files that changed from the base of the PR and between f088e9c0b098c2241ac1fb4403c9f69c4b97eba9 and b6dfd74.
📒 Files selected for processing (31)
CMakeLists.txtau3/libraries/au3-cloud-audiocom/sync/CloudProjectsDatabase.cppau3/libraries/au3-cloud-audiocom/sync/CloudProjectsDatabase.hau3/libraries/au3-cloud-audiocom/sync/CloudSyncHousekeeper.cppmuse_frameworksrc/app/app.cppsrc/app/commandlineparser.cppsrc/app/commandlineparser.hsrc/app/guiapp.cppsrc/appshell/CMakeLists.txtsrc/appshell/iappshellconfiguration.hsrc/appshell/internal/applicationactioncontroller.cppsrc/appshell/internal/applicationactioncontroller.hsrc/appshell/internal/appshellconfiguration.cppsrc/appshell/internal/appshellconfiguration.hsrc/appshell/tests/CMakeLists.txtsrc/appshell/tests/factoryreset_actioncontroller_tests.cppsrc/appshell/tests/mocks/appshellconfigurationmock.hsrc/au3cloud/CMakeLists.txtsrc/au3cloud/au3cloudmodule.cppsrc/au3cloud/au3cloudmodule.hsrc/au3cloud/iau3audiocomservice.hsrc/au3cloud/internal/au3audiocomservice.cppsrc/au3cloud/internal/au3audiocomservice.hsrc/effects/effects_base/effectsmodule.cppsrc/effects/effects_base/effectsmodule.hsrc/importexport/export/CMakeLists.txtsrc/project/internal/projectactionscontroller.cppsrc/project/tests/mocks/projectfilescontrollermock.hsrc/stubs/au3cloud/au3audiocomservicestub.cppsrc/stubs/au3cloud/au3audiocomservicestub.h
💤 Files with no reviewable changes (4)
- src/effects/effects_base/effectsmodule.h
- src/effects/effects_base/effectsmodule.cpp
- src/au3cloud/CMakeLists.txt
- src/importexport/export/CMakeLists.txt
| if (options.app.factoryReset) { | ||
| appshellConfiguration()->revertToFactorySettings(); |
There was a problem hiding this comment.
Defer the CLI factory reset until after module init.
applyCommandLineOptions() runs from GuiApp::setup() before module onInit() (Line 78 vs. Line 90-93), but the new pre-reset cleanup is wired from src/au3cloud/internal/au3audiocomservice.cpp::init(). In the --factory-settings path, aboutToRevertToFactorySettings() therefore fires with no listeners, so the DB-close hook added by this PR is skipped. Please move this reset branch to a post-init phase, or invoke the same cleanup explicitly before resetting here.
| set(MODULE_TEST_INCLUDE | ||
| ${MUSE_FRAMEWORK_PATH}/framework/multiwindows | ||
| ${MUSE_FRAMEWORK_PATH}/framework/actions | ||
| ${MUSE_FRAMEWORK_PATH}/framework/interactive | ||
| ${MUSE_FRAMEWORK_PATH}/framework/global | ||
| ${CMAKE_SOURCE_DIR}/src/appshell | ||
| ${CMAKE_SOURCE_DIR}/src/record | ||
| ) |
There was a problem hiding this comment.
The include roots do not match the new test's #include prefixes.
The test source includes both actions/tests/...-style mock headers and framework/... headers pulled in by applicationactioncontroller.h. With the current paths, the compiler looks under .../framework/actions/actions/tests/... and .../framework/global/framework/..., which is wrong. project/... and record/... also need the src root, not per-module subdirectories.
💡 Suggested fix
set(MODULE_TEST_INCLUDE
- ${MUSE_FRAMEWORK_PATH}/framework/multiwindows
- ${MUSE_FRAMEWORK_PATH}/framework/actions
- ${MUSE_FRAMEWORK_PATH}/framework/interactive
- ${MUSE_FRAMEWORK_PATH}/framework/global
+ ${MUSE_FRAMEWORK_PATH}
+ ${MUSE_FRAMEWORK_PATH}/framework
+ ${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/appshell
- ${CMAKE_SOURCE_DIR}/src/record
)|
replaced by #10794 |
Resolves: Revert to factory setting crash #10510 copy update #9677 - Unify factory-reset entry points via FactoryResetMode; close CloudProjectsDatabase before wiping config - Multi-window restart-confirmation handling; cancel is default - Add single- and multi-window action-controller tests; drop unused -R CLI flag this PR replaces #10518 <!-- Use "x" to fill the checkboxes below like [x] --> - [x] I signed [CLA](https://www.audacityteam.org/cla/) - [x] The title of the pull request describes an issue it addresses - [x] If changes are extensive, then there is a sequence of easily reviewable commits - [x] Each commit's message describes its purpose and effects - [x] There are no behavior changes unnecessary for the stated purpose of the PR Recommended: - [x] Each commit compiles and runs on my machine without known undesirable changes of behavior QA: - [ ] Testflow test cases have been run
Resolves: Revert to factory setting crash #10510
might fix: #10519
(short description of the changes and the motivation to make the changes)
Recommended:
QA: