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

feat: refactoring launcher module #3649

Open
wants to merge 61 commits into
base: main
Choose a base branch
from
Open

feat: refactoring launcher module #3649

wants to merge 61 commits into from

Conversation

germa89
Copy link
Collaborator

@germa89 germa89 commented Jan 10, 2025

Description

As the title to facilitate the future HPC additions.

Issue linked

NA

Checklist

Sorry, something went wrong.

@germa89 germa89 self-assigned this Jan 10, 2025
@germa89 germa89 requested a review from a team as a code owner January 10, 2025 11:43
@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 new feature Request or proposal for a new feature label Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 78.08896% with 133 lines in your changes missing coverage. Please review.

Project coverage is 86.58%. Comparing base (8be236d) to head (3c0359b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3649      +/-   ##
==========================================
- Coverage   87.09%   86.58%   -0.52%     
==========================================
  Files         187      196       +9     
  Lines       14697    14943     +246     
==========================================
+ Hits        12801    12938     +137     
- Misses       1896     2005     +109     

@github-actions github-actions bot added CI/CD Related with CICD, Github Actions, etc maintenance General maintenance of the repo (libraries, cicd, etc) labels Jan 15, 2025
dependabot bot and others added 16 commits February 14, 2025 13:13
* build: bump the minimal group with 2 updates

Bumps the minimal group with 2 updates: [numpy](https://github.com/numpy/numpy) and [psutil](https://github.com/giampaolo/psutil).

Updates  from 2.2.2 to 2.2.3
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v2.2.2...v2.2.3)

Updates  from 6.1.1 to 7.0.0
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](giampaolo/psutil@release-6.1.1...release-7.0.0)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minimal
- dependency-name: psutil
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: minimal
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: adding changelog file 3742.maintenance.md [dependabot-skip]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
…roup (#3744)

* build: bump pyansys-tools-report in the testing group

Bumps the testing group with 1 update: [pyansys-tools-report](https://github.com/ansys/pyansys-tools-report).


Updates `pyansys-tools-report` from 0.8.1 to 0.8.2
- [Release notes](https://github.com/ansys/pyansys-tools-report/releases)
- [Commits](ansys/pyansys-tools-report@v0.8.1...v0.8.2)

---
updated-dependencies:
- dependency-name: pyansys-tools-report
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: testing
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: adding changelog file 3744.dependencies.md [dependabot-skip]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
… group (#3743)

* build: bump sphinx-gallery in the documentation group

Bumps the documentation group with 1 update: [sphinx-gallery](https://github.com/sphinx-gallery/sphinx-gallery).


Updates `sphinx-gallery` from 0.18.0 to 0.19.0
- [Release notes](https://github.com/sphinx-gallery/sphinx-gallery/releases)
- [Changelog](https://github.com/sphinx-gallery/sphinx-gallery/blob/master/.github_changelog_generator)
- [Commits](sphinx-gallery/sphinx-gallery@v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: sphinx-gallery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: documentation
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: adding changelog file 3743.dependencies.md [dependabot-skip]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* docs: homogenizing prefixes

* docs: improving table header

* chore: adding changelog file 3737.documentation.md [dependabot-skip]

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* fix: harfrq command

* chore: adding changelog file 3729.fixed.md [dependabot-skip]

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* feat: adding opened attribute

* feat: adding opened attribute

* chore: adding changelog file 3731.miscellaneous.md [dependabot-skip]

* docs: adding docstring

* fix: tests

* fix: test

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* build: update sphinx-autodoc-typehints to 3.0.1

* chore: adding changelog file 3733.dependencies.md [dependabot-skip]

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* fix: ram units

* chore: adding changelog file 3730.fixed.md [dependabot-skip]

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* feat: allowing numpy types for setting parameters

* docs: adding comment

* chore: adding changelog file 3720.fixed.md [dependabot-skip]

* fix: parameters length to 32+

* feat: update to 32 chars variable

* fix: test

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](codespell-project/codespell@v2.2.2...v2.2.4)
- [github.com/python-jsonschema/check-jsonschema: 0.21.0 → 0.22.0](python-jsonschema/check-jsonschema@0.21.0...0.22.0)

* Fixing codespell

* Fixing pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* simplifying accepted words list

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)

* Updating also blackend

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/adamchainz/blacken-docs: 1.13.0 → 1.14.0](adamchainz/blacken-docs@1.13.0...1.14.0)
- [github.com/codespell-project/codespell: v2.2.4 → v2.2.5](codespell-project/codespell@v2.2.4...v2.2.5)
- [github.com/python-jsonschema/check-jsonschema: 0.23.1 → 0.23.2](python-jsonschema/check-jsonschema@0.23.1...0.23.2)

* removing vale warnings

* Adding words to ignore

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.0 → 23.10.1](psf/black@23.10.0...23.10.1)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.1](python-jsonschema/check-jsonschema@0.27.0...0.27.1)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)

* Updating blacken-docs

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pycqa/isort: 5.13.0 → 5.13.2](PyCQA/isort@5.13.0...5.13.2)
- [github.com/psf/black: 23.11.0 → 23.12.0](psf/black@23.11.0...23.12.0)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.0 → 23.12.1](psf/black@23.12.0...23.12.1)

* lower

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.1.1 → 24.2.0](psf/black@24.1.1...24.2.0)
- [github.com/python-jsonschema/check-jsonschema: 0.27.4 → 0.28.0](python-jsonschema/check-jsonschema@0.27.4...0.28.0)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/ansys/pre-commit-hooks: v0.2.8 → v0.2.9](ansys/pre-commit-hooks@v0.2.8...v0.2.9)

* installing xindy

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.3.0 → 24.4.0](psf/black@24.3.0...24.4.0)
- [github.com/python-jsonschema/check-jsonschema: 0.28.1 → 0.28.2](python-jsonschema/check-jsonschema@0.28.1...0.28.2)

* Updating black in blacken

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/ansys/pre-commit-hooks: v0.2.9 → v0.3.1](ansys/pre-commit-hooks@v0.2.9...v0.3.1)
- [github.com/psf/black: 24.4.0 → 24.4.2](psf/black@24.4.0...24.4.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/ansys/pre-commit-hooks: v0.3.1 → v0.4.2](ansys/pre-commit-hooks@v0.3.1...v0.4.2)
- [github.com/psf/black: 24.4.2 → 24.8.0](psf/black@24.4.2...24.8.0)
- [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](PyCQA/flake8@7.1.0...7.1.1)

* chore: adding changelog file 3330.miscellaneous.md

* Update .pre-commit-config.yaml

* ci: pre-commit autoupdate

updates:
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](codespell-project/codespell@v2.3.0...v2.4.0)

* chore: adding changelog file 3710.maintenance.md [dependabot-skip]

* fix: pre-commit warnings

* chore: adding changelog file 3710.documentation.md [dependabot-skip]

* maint: update codespell

* ci: pre-commit autoupdate

updates:
- [github.com/pycqa/isort: 5.13.2 → 6.0.0](PyCQA/isort@5.13.2...6.0.0)
- [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0)
- [github.com/python-jsonschema/check-jsonschema: 0.31.0 → 0.31.1](python-jsonschema/check-jsonschema@0.31.0...0.31.1)

* chore: adding changelog file 3723.maintenance.md [dependabot-skip]

* ci: auto fixes from pre-commit.com hooks.

for more information, see https://pre-commit.ci

* build: update black

* ci: auto fixes from pre-commit.com hooks.

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: German <germanmartinezayuso@gmail.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
Co-authored-by: German <28149841+germa89@users.noreply.github.com>
…#3727)

* build: bump the documentation group across 1 directory with 3 updates

Bumps the documentation group with 3 updates in the / directory: [ansys-sphinx-theme](https://github.com/ansys/ansys-sphinx-theme), [plotly](https://github.com/plotly/plotly.py) and [sphinx-notfound-page](https://github.com/readthedocs/sphinx-notfound-page).


Updates `ansys-sphinx-theme` from 1.2.6 to 1.3.1
- [Release notes](https://github.com/ansys/ansys-sphinx-theme/releases)
- [Commits](ansys/ansys-sphinx-theme@v1.2.6...v1.3.1)

Updates `plotly` from 5.24.1 to 6.0.0
- [Release notes](https://github.com/plotly/plotly.py/releases)
- [Changelog](https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md)
- [Commits](plotly/plotly.py@v5.24.1...v6.0.0)

Updates `sphinx-notfound-page` from 1.0.4 to 1.1.0
- [Changelog](https://github.com/readthedocs/sphinx-notfound-page/blob/main/CHANGELOG.rst)
- [Commits](readthedocs/sphinx-notfound-page@1.0.4...1.1.0)

---
updated-dependencies:
- dependency-name: ansys-sphinx-theme
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: documentation
- dependency-name: plotly
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: documentation
- dependency-name: sphinx-notfound-page
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: documentation
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: adding changelog file 3727.dependencies.md [dependabot-skip]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/codespell-project/codespell: v2.2.2 → v2.2.4](codespell-project/codespell@v2.2.2...v2.2.4)
- [github.com/python-jsonschema/check-jsonschema: 0.21.0 → 0.22.0](python-jsonschema/check-jsonschema@0.21.0...0.22.0)

* Fixing codespell

* Fixing pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* simplifying accepted words list

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)

* Updating also blackend

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/adamchainz/blacken-docs: 1.13.0 → 1.14.0](adamchainz/blacken-docs@1.13.0...1.14.0)
- [github.com/codespell-project/codespell: v2.2.4 → v2.2.5](codespell-project/codespell@v2.2.4...v2.2.5)
- [github.com/python-jsonschema/check-jsonschema: 0.23.1 → 0.23.2](python-jsonschema/check-jsonschema@0.23.1...0.23.2)

* removing vale warnings

* Adding words to ignore

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.0 → 23.10.1](psf/black@23.10.0...23.10.1)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.27.0 → 0.27.1](python-jsonschema/check-jsonschema@0.27.0...0.27.1)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](psf/black@23.10.1...23.11.0)

* Updating blacken-docs

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pycqa/isort: 5.13.0 → 5.13.2](PyCQA/isort@5.13.0...5.13.2)
- [github.com/psf/black: 23.11.0 → 23.12.0](psf/black@23.11.0...23.12.0)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.0 → 23.12.1](psf/black@23.12.0...23.12.1)

* lower

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.1.1 → 24.2.0](psf/black@24.1.1...24.2.0)
- [github.com/python-jsonschema/check-jsonschema: 0.27.4 → 0.28.0](python-jsonschema/check-jsonschema@0.27.4...0.28.0)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/ansys/pre-commit-hooks: v0.2.8 → v0.2.9](ansys/pre-commit-hooks@v0.2.8...v0.2.9)

* installing xindy

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 24.3.0 → 24.4.0](psf/black@24.3.0...24.4.0)
- [github.com/python-jsonschema/check-jsonschema: 0.28.1 → 0.28.2](python-jsonschema/check-jsonschema@0.28.1...0.28.2)

* Updating black in blacken

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/ansys/pre-commit-hooks: v0.2.9 → v0.3.1](ansys/pre-commit-hooks@v0.2.9...v0.3.1)
- [github.com/psf/black: 24.4.0 → 24.4.2](psf/black@24.4.0...24.4.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/ansys/pre-commit-hooks: v0.3.1 → v0.4.2](ansys/pre-commit-hooks@v0.3.1...v0.4.2)
- [github.com/psf/black: 24.4.2 → 24.8.0](psf/black@24.4.2...24.8.0)
- [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](PyCQA/flake8@7.1.0...7.1.1)

* chore: adding changelog file 3330.miscellaneous.md

* Update .pre-commit-config.yaml

* ci: pre-commit autoupdate

updates:
- [github.com/codespell-project/codespell: v2.3.0 → v2.4.0](codespell-project/codespell@v2.3.0...v2.4.0)

* chore: adding changelog file 3710.maintenance.md [dependabot-skip]

* fix: pre-commit warnings

* chore: adding changelog file 3710.documentation.md [dependabot-skip]

* maint: update codespell

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: German <germanmartinezayuso@gmail.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
Co-authored-by: German <28149841+germa89@users.noreply.github.com>
* feat: using cached for removing lock file when exiting

* test: adding tests

* chore: adding changelog file 3709.fixed.md [dependabot-skip]

* fix: vulnerabilities warning

* fix: warnings import

* chore: revert "fix: warnings import"

This reverts commit 5593e6b.

* fix: warnings import

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* test: refactor check_stds and post_mortem_checks

* test: backing off algorithm

* chore: adding changelog file 3703.added.md [dependabot-skip]

* fix: codacity warnings

* feat: using get_value to obtain the n elements

* revert: revert "feat: using get_value to obtain the n elements"
Performance is not as go

This reverts commit 877f803.

* feat: using get_value to obtain the n elements

* revert: revert "feat: using get_value to obtain the n elements"
Performance is not as go

This reverts commit 877f803.

* feat: using mapdl.exit when raising final error.

* test: fix test by avoiding killing mapdl.

* fix: test

* fix: test

* feat: adding warnings when restarting MAPDL during testing

* fix: test

* feat: caching requires_package

* test: adding more tests

* chore: adding changelog file 3705.added.md [dependabot-skip]

* chore: adding changelog file 3705.added.md [dependabot-skip]

* fix: warnings import

* feat: not reconnecting if MAPDL already exited

* test: adding tests

* chore: adding changelog file 3708.miscellaneous.md [dependabot-skip]

* fix: tests

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
* test: __del__method.

* refactor: simplifying exit

* chore: adding changelog file 3738.fixed.md [dependabot-skip]

* refactor: simplyfing for other interfaces.

* feat: exiting mapdl

* feat: adding __del__ to mapdl_console

* fix: improve job ID handling and remove atexit registration in MAPDL core

---------

Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
@github-actions github-actions bot removed examples Publishing PyMAPDL examples documentation Documentation related (improving, adding, etc) dependencies labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Related with CICD, Github Actions, etc maintenance General maintenance of the repo (libraries, cicd, etc) new feature Request or proposal for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants