Repository navigation
Introduce a new plugin API - #1610
Conversation
aea432d to
1d96859
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1610 +/- ##
==========================================
+ Coverage 78.68% 78.71% +0.02%
==========================================
Files 128 130 +2
Lines 8445 8681 +236
==========================================
+ Hits 6645 6833 +188
- Misses 1800 1848 +48
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
01f76e3 to
2242961
Compare
|
@edan-bainglass, I completed the five plugin migration reviews and the integrated API/panel checks. Manual Safari tests passed for Fast Si2 bands, PP charge density and the SiO2 Vibroscopy results, including the three INS views and a recalculated Q-plane map. HP, Muon and Wannier90 checks covered API integration and configuration/resource panels. The Vibroscopy test exposed obsolete ARM setup downgrades. The fix is in aiidalab/aiidalab-qe-vibroscopy#194, with green CI and your review requested. Activation and INS loading now pass with the default catalog. Before release, please coordinate the migrated plugin releases and store references. The store still pins Muon v1.3.0, whose legacy registration passes the activation check while the plugin disappears from the new catalog. I also found follow-up issues with the older Silicon example archive and standalone Raman imports. The standalone Raman issue can be handled as a non-blocking follow-up. Review and testing performed with the assistance of Codex. |
Good! Especially regarding the INS views. Important to check all plugin features, as we saw recently 👍
Left a comment there. It is a bit confusing that the same code that is giving you issues on ARM was apparently working on ARM, as confirmed by you. Let's discuss on that PR.
This is a bit of a chicken and egg problem, as some plugins need this PR for testing. In the end, we just need to release all simultaneously and tag.
Can you clarify what were the isssues? 🙏
🙏 |
|
@edan-bainglass, I repeated the manual Safari tests in the isolated ARM demo today, using QE
I reproduced three archive-related crashes through the normal Examples → Import → History route.
With AiiDA 2.9.4 and aiida-pythonjob 0.5.2, the affected legacy For the standalone Raman issue, the existing The feature-import and configuration/resource-panel checks pass for all five migrated plugins, and 21 focused API/post-install/Phonopy unit tests pass. Fresh scientific submissions covered bands and PP. HP and Vibroscopy result checks used imported examples. Muon and Wannier90 result checks stop at the crashes above. I also clarified the mocked-test scope of my earlier #190 approval and the current numerical-stack findings in the #194 discussion. Clarification Testing and review performed with the assistance of Codex. |
|
@cpignedoli I take it then that all is well with this PR then? All other matters are unrelated and are to be resolved in follow-up PRs in the appropriate repos. Please confirm (and if so, approve 🙂🙏). |
|
Hi @edan-bainglass yes correct. I approve now |
There was a problem hiding this comment.
Tested ad discussed with Edan
|
Tested on 12–13 November in the isolated ARM64 AiiDAlab environment with Python 3.12, aiida-core 2.9.4 and aiida-quantumespresso 5.1.0. @edan-bainglass, the requested fresh-calculation follow-up is complete. Bands, PP charge density, PDOS, PtO Bader, LiCoO2 HP, Si/SiO2 Vibroscopy, C8H6 XPS, Li2CO3 XAS, GaAs Wannier90 and LiF Muon results were calculated and their result viewers checked manually in Safari. PDOS succeeded as the property workflow from the initial combined PDOS/Bader submission. Bader was subsequently validated with the separate successful PtO app workflow. The Muon parent was rebuilt successfully using standard AiiDA caching of our newly completed calculations after recovery problems. Details, input differences and linked companion fixes are documented in the individual plugin PR reports. The Muon convergence-formula finding is tracked separately in aiidalab/aiidalab-qe-muon#93, following your review-scope clarification. The failed-workflow status display was also corrected and manually verified in #1612. The overnight SQLite session/lock problem is reported with a standalone reproducer in aiidateam/aiida-core#7789. For release, please coordinate the host API, companion fixes and published plugin/backend versions, including aiida-muon and UNDI, then update the catalog references. Testing and review performed with Codex assistance. |
2242961 to
311b0d9
Compare
|
Thanks @cpignedoli. All plugins are now updated w.r.t this PR. This can now proceed. I've bumped the minimum versions in the registry. Can you test against the registry versions? 🙏 |
|
@edan-bainglass, I am checking the published plugin artifacts against One candidate-alignment question: at head Will the candidate version be bumped before these tests, or is there another 26.11.1 candidate you would like me to use? |
|
@cpignedoli blocker removed. Kindly retry 🙏 |
|
@edan-bainglass I retried after your update on I reproduced one actionable defect in Xspec 0.4.2. From a fresh GUI session, open the saved Li₂CO₃ C K-edge result and click Duplicate. The original tab raises I suggest a separate PR in |
Thanks @cpignedoli . Indeed, let's open a issue in xspec for this. |
94f69b6 to
513160a
Compare
This PR introduces a plugin API contract in the form of a
QeAppPluginabstract class for plugins to implement, injecting their various components as methods, with, and this is the key to this change, imports embedded in the method body. This effectively defers all plugin imports until they are absolutely needed! Since these are now so cheap to load, the app now loads and caches instances ofQeAppPluginfrom all installed apps. The rest of the app fetches what it needs, when it needs it, from the cache. The change is implemented on the builtin plugins. The contract is documented. PRs have been opened on all plugins to switch to this API. The entry point group for plugins is also changed toaiidalab_qe.plugins, for clarity.A few other minor modifications were made to the plugin manager to improve its plugin compatibility checks. Mostly, both here and in the app's step 2, we NEED to run these checks to validate that a plugin is useable. This PR makes these run in parallel, on threads, to reduce the overall time. To improve UX on top, the message is made a bit clearer, and rendering occurs as checks complete.