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

Test to catch Watchdog launch errors, and improved Watchdog behavior on Windows #2144

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

raph-luc
Copy link
Member

@raph-luc raph-luc commented Oct 13, 2023

  • New test that fails when Watchdog launch errors occur: test_watchdog_launch
  • Now using no file extension for the script of the Watchdog process (code script was simply moved from watchdog.py to watchdog_exec file, no significant changes, see below). Changing the file extension makes no difference on Linux, but can circumvent inappropriately configured user environments on Windows (e.g., when for some reason a Windows code editor is configured to interfere with the execution of .py files).
  • Few minor watchdog updates.
  • Added docstrings and a bit of code documentation (note this shouldn't show up anywhere in the online documentation to users).

Diff between original watchdog.py and new watchdog_exec (as of c427e2f):
image

@raph-luc raph-luc linked an issue Oct 13, 2023 that may be closed by this pull request
@raph-luc raph-luc merged commit 73fe5fc into main Oct 18, 2023
@raph-luc raph-luc deleted the fix/watchdog_updates branch October 18, 2023 17:49
raph-luc added a commit that referenced this pull request Oct 25, 2023
…on Windows (#2144)

* watchdog improvements, new test

* better error handling and message

* removing watchdog script extension

* always log error message

* adding to manifest for packaging, docstrings, reducing code repetition

* docformatter fix
raph-luc added a commit that referenced this pull request Oct 26, 2023
* Fix vale warnings (#2139)

* fix tensor type for displacement variable (#2145)

* Fix set_state implementation for command argument instance. (#2147)

* Update flobject.py (#2148)

* SVAR Doc (#1635)

* Test to catch Watchdog launch errors, and improved Watchdog behavior on Windows (#2144)

* Cavitation Model Example And Example Warning Fix (#2102)

* Add type annotations for some modules under services (#2108)

* More robust Windows launch command for Watchdog (#2167)

* Making h5py an optional dependency, not installed by default (#2171)

* Expose settings root like in pyconsole. (#2149)

* Remove timeout loop in FluentConnection (#2126)

* Fix SVAR doc (#2172)

---------

Co-authored-by: Mainak Kundu <[email protected]>
Co-authored-by: Oleg Chernukhin <[email protected]>
Co-authored-by: Prithwish Mukherjee <[email protected]>
Co-authored-by: Harshal Pohekar <[email protected]>
Co-authored-by: Aseem Jain <[email protected]>
Co-authored-by: Prithwish Mukherjee <[email protected]>
Co-authored-by: Adam Boutin <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

Missing a test to catch basic Watchdog launch errors
4 participants