Skip to content

Test#236

Merged
JulianKimmig merged 9 commits intomainfrom
test
Dec 23, 2025
Merged

Test#236
JulianKimmig merged 9 commits intomainfrom
test

Conversation

@JulianKimmig
Copy link
Member

No description provided.

Updated the setup_module function to enhance error logging by using mod_data.name instead of mod.__name__. Commented out the module entry point check and shelf handling for clarity, while ensuring that entry points are now managed with a _LazyEntryDict for better performance. This refactor aims to streamline the setup process for funcnodes modules.
Updated the _LazyEntryDict and InstalledModule classes to improve module loading logic. The changes include setting the installed module directly within the entry points and refining the set_module method to enforce module integrity. Additionally, removed print statements for cleaner code and better performance during module operations.
Updated the write_json_secure function to properly handle the cleanup of the temporary file in case of an exception. Introduced a check for temp_file_path before attempting to remove the file, enhancing error handling and preventing potential issues with undefined variables.
…ation

Updated the wait_for_trigger_finish method to use a bounded wait for the 'triggerdone' event, preventing potential deadlocks. In the plugins module, refined entry point validation to ensure proper handling of EntryPoint instances and updated the module loading logic to enhance clarity and functionality.
Implemented the _repr_json_ method in the InstalledModule class to provide a JSON-compatible representation of the module's data. This addition enhances the usability of the InstalledModule for serialization and debugging purposes.
…est cases

Introduced a new `yappicontext` fixture in `conftest.py` for profiling test performance using the yappi library. Updated existing tests in `test_nodeutils.py` and `test_triggering.py` to utilize this fixture, enhancing performance measurement capabilities and ensuring consistent profiling across tests.
Added a new _trigger_task attribute to the Node class for better management of asynchronous trigger tasks. Updated the wait_for_trigger_finish method to directly await the trigger task, improving responsiveness and reducing the risk of missing event pulses. Implemented a callback to clear the task reference upon completion, ensuring proper cleanup and state management.
@JulianKimmig JulianKimmig merged commit 1af50e4 into main Dec 23, 2025
9 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