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: not showing instances on linux #3263

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Jul 10, 2024

Description

As the title.

Issue linked

NA

Checklist

@germa89 germa89 self-assigned this Jul 10, 2024
@germa89 germa89 requested a review from a team as a code owner July 10, 2024 10:50
@germa89 germa89 requested review from clatapie and pyansys-ci-bot and removed request for a team July 10, 2024 10:50
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@github-actions github-actions bot added the bug Issue, problem or error in PyMAPDL label Jul 10, 2024
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 62.98%. Comparing base (f06db96) to head (f0d41fa).
Report is 1 commits behind head on fix/pool-issues.

❗ There is a different number of reports uploaded between BASE (f06db96) and HEAD (f0d41fa). Click for more details.

HEAD has 107 uploads less than BASE
Flag BASE (f06db96) HEAD (f0d41fa)
student 9 3
dmp 15 3
v24.1-ubuntu-student 3 1
minimal 5 3
ubuntu 19 3
local 12 3
latest-ubuntu-student 3 1
v24.2-ubuntu-student 3 1
non-student 15 0
smp 9 0
remote 12 0
v23.2-ubuntu 3 0
v23.2.0 1 0
centos 5 0
v24.2.0 1 0
latest-ubuntu 2 0
v25.1.0 1 0
v24.2-ubuntu 2 0
v24.1-ubuntu 3 0
v24.1.0 1 0
v23.1.0 1 0
Additional details and impacted files
@@                 Coverage Diff                  @@
##           fix/pool-issues    #3263       +/-   ##
====================================================
- Coverage            87.96%   62.98%   -24.98%     
====================================================
  Files                   53       53               
  Lines                 9670     9670               
====================================================
- Hits                  8506     6091     -2415     
- Misses                1164     3579     +2415     

@germa89 germa89 changed the base branch from main to fix/pool-issues July 12, 2024 11:38
@germa89
Copy link
Collaborator Author

germa89 commented Jul 12, 2024

Merging into #3266 since these are failing tests needed to merge #3266

@germa89 germa89 merged commit bc2d257 into fix/pool-issues Jul 12, 2024
55 of 59 checks passed
@germa89 germa89 deleted the fix/not-showing-instances-on-linux branch July 12, 2024 11:49
germa89 added a commit that referenced this pull request Jul 12, 2024
* feat: adding port to exception message

* fix: attempt tests before being ready

* feat: changing arguments order

* chore: wait for complete exit

* test: raise exception if mapdl instances are alive between tests

* chore: adding changelog file 3257.added.md

* fix: adding missing import

* fix: adding missing object

* test: check process status

* fix: running process check only on local.

* feat: enforcing having exactly the amount of instances specified.
Adding timeout to check if the instance is already launched.

* feat: adding a timeout before moving on

* fix: latest_version env var

* feat: added pool_creator fixture. We use pool fixture to check pool health.
fix: some tests

* fix: NoSuchProcess error. Small cosmetic fix

* chore: adding changelog file 3266.fixed.md

* chore: adding changelog file 3266.fixed.md

* refactor: small reog

* test: activating previously skipped tests

* fix: test

* fix: adding port to avoid port collision

* fkix: tests

* docs: adding comments

* feat: adding ``ready`` property and ``wait_for_ready`` method.
fix: Making sure we restart the instance on the same path.
refactor: waiting for the instance to get ready.
test: added test to check directory names when there is a restart.

* feat: Checking ports from the cmdline

* fix: tests

* fix: early exit in process check to avoid accessdenied.

* Revert "fkix: tests"

This reverts commit d58971b.

* feat: catching already dead process.

* fix: pymapdl list not showing any instance because name method wasn't called.

* feat: wrapping process checking in a try/except to avoid calling already dead process

* feat: using dynamic port in test_cli. Starting and stopping another instance.

* fix: test

* refactor: reducing code duplicity

* feat: making sure we stop MAPDL if failure

* fix: test_remove_temp_dir_on_exit on windows

* test: without rerun

* ci: using v24.2 for docs building

* fix: exception in list instance processing

* feat: using PORT1 variable
refactor: moving console test to test_console

* fix: tests

* ci: run all tests

* test: testing

* test: no raise exception.

* ci: increasing timeout for local and min jobs

* chore: adding logging statements.

* test: marking tests as xfail

* ci: adding back pytest config

* Revert "build: update ansys-api-mapdl to 0.5.2 (#3255)"

This reverts commit 0bcf344.

* test: skip flaky tests

* build: update ansys-api-mapdl to 0.5.2 (#3255)

* build: update ansys-api-mapdl to 0.5.2

* chore: adding changelog file 3255.dependencies.md

---------

Co-authored-by: pyansys-ci-bot <[email protected]>

* test: skip flaky test. See #2435 comment

* fix: not showing instances on linux (#3263)

* fix: not showing instances on linux

* chore: adding changelog file 3263.fixed.md

---------

Co-authored-by: pyansys-ci-bot <[email protected]>

* ci: undo some stuff

* test: adding some waiting time after attempting to kill instance.

* fix: missing import.

* chore: remove fragment from other PR.

---------

Co-authored-by: pyansys-ci-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue, problem or error in PyMAPDL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants