-
Notifications
You must be signed in to change notification settings - Fork 136
feat: using dpf instead of reader in "results" module #1300
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
Open
germa89
wants to merge
340
commits into
main
Choose a base branch
from
feat/using-dpf-for-results
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
340 commits
Select commit
Hold shift + click to select a range
749ef51
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 32f6635
feat: add PYMAPDL_ADDITIONAL_SWITCHES to pytest report header
germa89 212cdff
feat: add material properties retrieval to result and corresponding t…
germa89 35413ae
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 099f123
chore: adding changelog file 1300.miscellaneous.md [dependabot-skip]
pyansys-ci-bot 2e62ab1
feat: add element_lookup, and notimplemented methods. update tests fo…
germa89 b97e932
chore: merge branch 'feat/using-dpf-for-results' of https://github.co…
germa89 efe9be5
feat: reducing line length that gets printed in the pytest summary
germa89 d6fa8f6
feat: adding node and element components attributes and their tests
germa89 cd957fb
fix: typo
germa89 81cee0f
Merge branch 'main' into feat/using-dpf-for-results
germa89 1650933
refactor: remove test for non-local result download
germa89 88c35d5
refactor: partial codacy clean up
germa89 76e043c
refactor: using 'get_fields' instead of the MATERIAL_PROPERTIES
germa89 5138a84
feat: adding class switch using 'use_reader_backend'.
germa89 d69e7a0
fix: unit tests by using the DPFResult class apart from mapdl.result
germa89 310b80c
fix: update remote processing logic to handle CICD versions
germa89 f740019
feat: add TEST_DPF_BACKEND environment variable to control DPF test e…
germa89 77a273e
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 78f3b3d
chore: adding changelog file 1300.maintenance.md [dependabot-skip]
pyansys-ci-bot f43d40c
chore: update test_result.py documentation and comments for clarity
germa89 4494513
fix: correct conditional syntax in build_matrix.sh for remote processing
germa89 05df447
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 2f814eb
fix: update patch decorator to use version_from_path for consistency
germa89 4c7645a
chore: update test_result.py documentation for improved clarity
germa89 41ff1a0
fix: update patch decorator to use autospec and side_effect for versi…
germa89 d7797d7
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 2159ff4
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 1daf7e4
fix: add DPF backend testing for CICD MAPDL version in workflows
germa89 312be6e
fix: some codacy issues
germa89 74b1d37
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 f256b23
fix: strip whitespace from downloaded raw object in MapdlGrpc class
germa89 08c9d13
refactor: moving parse ip to misc
germa89 96c8524
feat: returning float in inquire if possible.
germa89 104a6fd
feat: adding method to check if MAPDL and DPF server are on the same …
germa89 c6f5f2e
feat: check if DPF is remote based on comparing IPs.
germa89 99367d7
feat: allow returning bool in 'mapdl.inquire'
germa89 3b98eed
feat: returning full path of RST file always, even on remote
germa89 a7a66c7
feat: clean up RST attributes
germa89 b36ccaa
fix: pytest error printing
germa89 bd387ef
feat: download RST file to temporary directory in test fixture
c36d6cf
fix: correct platform attribute reference in file path construction
88240c3
fix: streamline connection logic in DPFResult class
f5ae558
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] ad6e9e8
refactor: remove unused import and clean up xfail reason formatting
d97b9d2
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
ad5ad30
Apply suggestions from code review
germa89 400db37
fix: handle non-interactive mode in _MapdlCommandExtended class
33a7188
fix: correct assignment syntax in DPFResult class
a1b1f2a
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] 7282669
junk: empty commit to trigger CICD
f21bbf2
fix: enhance DPFResult class with temporary directory handling and sa…
8c4444e
fix: refactor Example class to use properties for example_name and ap…
977eb94
fix: skip cyclic test due to DPF segfault issue
germa89 59ac804
fix: update skip decorator for cyclic test to use pytest.mark.skip
957be2a
fix: add debug logging for DPF server IP and executable checks in DPF…
germa89 8954c34
fix: update test-remote workflow for improved compatibility with GitH…
germa89 b63307b
fix: bind DPF port for CICD version in start_mapdl.sh
germa89 3652a05
fix: add second DPF port for MAPDL pool testing in test-remote workflow
germa89 89bfc2b
fix: improving logging and delaying server connection to the first usage
germa89 a17f98b
fix: not existing attribute _is_remote
germa89 3a85827
fix: add logging for docker ps output and move log files in collect_m…
germa89 0b1b30f
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 e9cb9ed
fix: quote DPF_ARG variable in docker run command for proper handling
germa89 359eedb
refactor: remove unnecessary import of pytest in test_result.py
germa89 2b52c57
fix: import parse_ip_route in result.py to resolve missing function i…
germa89 4886d22
refactor: remove redundant import of _HAS_DPF in mapdl_core.py
germa89 bcabb8e
refactor: comment out unused old attributes in DPFResult class
germa89 75452f4
fix: simplify exception handling in validate function in test_result.py
germa89 7020a6e
fix: add docker ps command to log running containers in test-remote.yml
germa89 27cb122
fix: update DPF port binding logic in start_mapdl.sh
germa89 7abb286
feat: adding docker ps output
germa89 b76cebb
fix: log DPF_ARG and DB_INT_PORT when binding DPF port in start_mapdl.sh
germa89 3433a44
fix: ensure DPF_ARG is correctly expanded in docker run command in st…
germa89 f427e90
fix: correct variable expansion for LICENSE_SERVER and DB_INT_PORT in…
germa89 aa0cb46
fix: update file-name format for remote and local mapdl versions in C…
germa89 deac590
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 d832587
fix: correct syntax for conditional check on MAPDL_VERSION in start_m…
germa89 6f4e65b
fix: update DPF_PORT and DPF_PORT2 values in test-remote.yml
germa89 ebbbb2f
fix: enhance start_mapdl.sh script with detailed usage instructions a…
germa89 b8d7173
fix: enable docker image pull in start_mapdl.sh script
germa89 a1a47a8
fix: correct syntax for environment variable in docker command in sta…
germa89 c99948e
fix: remove health check command from docker run in start_mapdl.sh
germa89 fcfbf41
fix: simplify docker command entrypoint and instance name syntax in s…
germa89 540b476
fix: add docker ps and process listing commands to log collection script
germa89 50b0481
refactor: adding more logging
germa89 e0bec34
fix: correct log file naming and improve log collection in collect_ma…
germa89 c3c5f3c
fix: streamline log collection process by removing unnecessary log moves
germa89 381f971
fix: add docker ps command to log collection scripts for better proce…
germa89 04d2d57
fix: ensure proper variable usage and improve logging for DPF server …
germa89 2661755
fix: add docker ps command for better visibility before starting DPF …
germa89 38ff0b5
fix: reorder DPF server startup steps for improved execution flow
germa89 7ac2043
fix: comment out specific node assertions in test for clarity and fut…
germa89 55fd609
fix: reduce maxfail in pytest arguments for improved test stability
germa89 ec77ca9
refactor: use an env var for the variable
germa89 f37c55b
fix: update DPF server port in workflow for compatibility
germa89 abd7cd9
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 3b6f3d1
build: restrict vtk version to <9.5.0 for compatibility
germa89 0e87aab
chore: adding changelog file 1300.dependencies.md [dependabot-skip]
pyansys-ci-bot f9bf708
fix: increase maxfail limit in pytest arguments for better test resil…
germa89 a08f3b4
Merge branch 'main' into feat/using-dpf-for-results
germa89 4164699
chore: adding changelog file 1300.maintenance.md [dependabot-skip]
pyansys-ci-bot 473e8e0
chore: merge branch 'feat/using-dpf-for-results' of https://github.co…
germa89 f7e2fe3
test: skip compatibility_element_stress tests due to Python segmentat…
germa89 e13c9f3
fix: update DPF port handling in start_mapdl.sh and test-remote.yml f…
germa89 fc39a43
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 c3c70d2
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 161d982
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 c35eb19
refactor: attempt to cache DPF ip.
germa89 5f26bb9
feat: resolve IP address in DPFResult connection method
germa89 688d4a3
refactor: improve DPF test skipping logic for clarity
germa89 c7963ba
feat: add random order seed to pytest for consistent test results
germa89 dbab240
fix: allow module-level skipping for DPF tests when backend is not en…
germa89 c7331fb
Merge branch 'main' into feat/using-dpf-for-results
germa89 bb382a8
refactor: remove random order seed from pytest command in test workflow
germa89 2efcf1b
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 db9d650
Merge branch 'main' into feat/using-dpf-for-results
germa89 a3b2f88
ci: update Quarto version from 1.6.43 to 1.7.32 in documentation buil…
germa89 17d5b53
chore: adding changelog file 4062.fixed.md [dependabot-skip]
pyansys-ci-bot 318541d
ci: enhance documentation build logging and error reporting
germa89 e395046
Merge branch 'fix/quarto-doc-build' of https://github.com/ansys/pymap…
germa89 7581164
ci: enhance error handling in documentation build process
germa89 f7c338b
ci: add error handling for Quarto PDF rendering in documentation build
germa89 9d8df48
ci: add logging for Quarto PDF rendering in documentation build
germa89 138d4d3
ci: improve error logging for cheat sheet PDF rendering in documentat…
germa89 713b106
ci: disable cheatsheet PDF build by default and remove error handling…
germa89 7102076
chore: adding changelog file 4062.fixed.md [dependabot-skip]
pyansys-ci-bot 8a0f5ea
Merge branch 'fix/quarto-doc-build' into feat/using-dpf-for-results
germa89 4bf2208
test: uncomment skip condition for compatibility element stress tests
germa89 9a2bb93
Merge branch 'main' into feat/using-dpf-for-results
germa89 73244b6
Merge branch 'main' into feat/using-dpf-for-results
germa89 458b520
Merge branch 'main' into feat/using-dpf-for-results
germa89 7943d5e
Merge branch 'main' into feat/using-dpf-for-results
germa89 72b4998
Merge branch 'main' into feat/using-dpf-for-results
germa89 21a63c7
fix: add curl installation to minimal and full OS package setups
germa89 aea6942
chore: adding changelog file 4070.fixed.md [dependabot-skip]
pyansys-ci-bot f1210f4
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 0960bf5
refactor: rename get_ip to get_local_ip and update usage in DPFResult…
germa89 e766d5e
test: add validation for invalid inputs in parse_step_substep and ele…
germa89 b72e65b
fix: using only one flag to upload to codecov
germa89 bc9d6ae
Merge branch 'ci/fix-coverage-upload' into feat/using-dpf-for-results
germa89 fdb376a
refactor: clean up comments and improve type annotations in DPFResult…
germa89 0391cf1
test: parameterize invalid input tests for parse_step_substep method
germa89 ec35ada
chore: empty commit to trigger CICD
germa89 b10293c
delete: remove obsolete test_dpf.py file
germa89 f7b4533
fix: codacy errors
germa89 e937da0
chore: avoid random ordering
germa89 00bbb06
feat: add step to print number of restarts in the main container
germa89 1a7384b
fix: add random-order-seed to pytest arguments for consistent test re…
germa89 70eb56c
Merge branch 'main' into feat/using-dpf-for-results
germa89 d7abf9a
feat: enhance logging by adding DPF logs collection and updating envi…
germa89 a434107
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 77feba9
feat: add conditional execution for restart count logging in test wor…
germa89 b3425f3
fix: update DPF_DB path to ensure proper directory format for logging
germa89 eb9578f
feat: create directory for DPF logs before starting DPF server
germa89 ed92273
fix: update DPF argument variable for Docker command in start_mapdl.sh
germa89 a3717ba
chore: empty commit to trigger CICD
germa89 c5d1d50
refactor: remove inheritance from Result in DPFResult class and comme…
germa89 3428edc
test: solve and exit
germa89 af0ffce
refactor: update reader and result fixtures to use temporary director…
germa89 39a19a0
test: add mapdl.post1() calls to compatibility tests for nodal and el…
germa89 b807489
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 06d34dc
refactor: enhance result handling in tests by using temporary directo…
germa89 d786b6f
refactor: remove unnecessary temporary directory creation in result f…
germa89 c18c254
fix: ensure RST file exists after saving in DPF result setup
germa89 eb1855f
feat: adding option to specify file already on the server.
germa89 8c5b2a2
feat: add example name for VM37 Solid Static Plastic test
germa89 1bcf5c8
refactor: reorganize imports in test_result.py for clarity
germa89 fa6447e
feat: add option to stop after the first solve in TestStaticThermocou…
germa89 cdf8887
fix: increase maxfail limit in pytest arguments for better test resil…
germa89 afcaf4e
feat: add nsets property to DPFResult class for improved metadata access
germa89 180edff
fix: update skip reason for DPF grpc connection issue and remove comm…
germa89 3d63a39
feat: add regex import for enhanced string manipulation capabilities
germa89 6e07783
Merge branch 'main' into feat/using-dpf-for-results
germa89 bca91de
feat: add result type test to validate output based on installed reader
germa89 999bdb7
refactor: remove commented-out methods in DPFResult class for cleaner…
germa89 e86f132
test: skip result type test if DPF backend is not set
germa89 a7f45c4
feat: add entrypoint script for DPF server setup and modify start_map…
germa89 4dda534
refactor: remove DPF server startup from the same container as MAPDL …
germa89 1965eab
fix: add quotes around DATAPROCESSING_DEBUG variable for consistency
germa89 8cc2cfc
fix: update health check command in start_mapdl.sh for improved relia…
germa89 0844f12
fix: remove health check command from docker run in start_mapdl.sh
germa89 448f295
fix: fix permissions and correct string comparison operator for RUN_D…
germa89 3f5805c
fix: correct entrypoint script path in docker command in start_mapdl.sh
germa89 ebb6550
fix: update RUN_DPF_SERVER initialization and entrypoint script path …
germa89 41ee006
fix: update entrypoint script path to use bind mount in start_mapdl.sh
germa89 13f9c01
fix: correct condition for RUN_DPF_SERVER initialization and add miss…
germa89 1e6da4f
fix: update DPF port internal variable and improve environment variab…
germa89 7cdd4c8
fix: update DPF server initialization logic in start_mapdl.sh and tes…
germa89 fc10016
fix: enhance restart count logging for MAPDL containers in test-remot…
germa89 b697079
fix: comment out DPF Debug directory setup in entrypoint.sh
germa89 27dfebe
fix: update MAPDL execution parameters in entrypoint.sh
germa89 e25f51b
fix: update runner environment for test-remote job to use public-ubun…
germa89 d1dd754
fix: update package installation in test-remote.yml to use libgl1 and…
germa89 05b6a7f
fix: add shebang to entrypoint.sh for proper script execution
germa89 34c7c4e
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 365dcc7
fix: quote DPF server startup command for proper execution
germa89 0563053
fix: remove redundant restart count logging from test workflow
germa89 fac9de0
fix: rename log_test_start to log_test and enhance functionality for …
germa89 ed47cef
fix: override DISTRIBUTED_MODE to 'dmp' for CICD version in start_map…
germa89 756c37c
fix: enhance DPF connection logging with detailed server information
germa89 2b30b36
fix: set environment variables for root execution in entrypoint script
germa89 4285f7c
fix: add test result file to pytest logging for better traceability
germa89 523c827
fix: enhance logging in MAPDL connection and DPF result handling for …
germa89 f24b7a5
fix: remove redundant log file argument in pytest command
germa89 4e90651
fix: disable debug logging for cache reset in MeshGrpc class
germa89 f490b51
fix: skip distributed test for future resolution
germa89 482e6d8
Merge branch 'main' into feat/using-dpf-for-results
germa89 c42d6ac
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 d89c942
fix: include test result file in pytest logging
germa89 cfc80a3
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 d9e11d1
fix: using str instead of PurePosixPath in dpf.Model initialization
germa89 fa46100
fix: remove filtering in pytest command
germa89 e5b497d
fix: pass MAPDL logger to DPFResult initialization and update logging…
germa89 d7f19d3
Merge branch 'main' into feat/using-dpf-for-results
germa89 ac37a54
fix: skip cleanup loggers test to prevent unwanted logger removal
germa89 c2f3c84
fix: import DPFResult in the appropriate locations for proper functio…
germa89 b8b2e29
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 eedd444
fix: ensure proper termination of APDL code by adding newline before …
germa89 edbb4f9
fix: replace "QAEND" with "!QAEND" in vm_code and remove redundant ig…
germa89 4292a8c
fix: skip broken test for Electro-Thermal-Compliant Microactuator
germa89 42072a3
fix: update skip message for broken Electro-Thermal-Compliant Microac…
germa89 208b36f
fix: remove assertion for '/EXIT' command in APDL code preparation
germa89 af72bbc
fix: remove redundant replacement of "QAEND" in vm_code
germa89 401eaf8
fix: reorganize imports and add dependency check for ansys-mapdl-read…
germa89 96c8983
Apply suggestions from code review
germa89 30f58a8
Apply suggestions from code review
germa89 1efa7f5
feat: enhance log_test functionality and add test_dpf_backend functio…
germa89 206b195
chore: adding changelog file 4097.miscellaneous.md [dependabot-skip]
pyansys-ci-bot 5e80675
refactor: rename logging functions for clarity and consistency
germa89 7d73e51
feat: enhance logging scripts and add DPF server support in CI workflows
germa89 889ab62
chore: adding changelog file 4098.miscellaneous.md [dependabot-skip]
pyansys-ci-bot 91ba059
refactor: enhance sys method type hints and clean up return value
germa89 8935698
chore: adding changelog file 4099.miscellaneous.md [dependabot-skip]
pyansys-ci-bot 2a58f3c
refactor: remove unused DPF Debug directory setup from entrypoint script
germa89 94b0c60
chore: merge branch 'fix/removing-new-line-from-sys' into feat/using-…
germa89 f0f02c6
chore: merge branch 'ci/using-entrypoint-for-starting-mapdl' into fea…
germa89 c86d258
chore: merge branch 'maint/improving-testing-logging' into feat/using…
germa89 1d033cb
Update src/ansys/mapdl/core/mapdl_grpc.py
germa89 2e5921c
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] b559d5e
Merge branch 'main' into fix/removing-new-line-from-sys
germa89 6d270fc
fix: correct logic for removing trailing newline character
germa89 a9ae1f4
chore: merge branch 'fix/removing-new-line-from-sys' into feat/using-…
germa89 17c7cb7
chore: merge remote-tracking branch 'origin/main' into feat/using-dpf…
germa89 ffb9895
Apply suggestions from code review
germa89 65d8840
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] 514105d
Merge branch 'main' into feat/using-dpf-for-results
germa89 5d12154
fix: streamline DPF upload logic for remote RST handling
germa89 375466a
Merge branch 'feat/using-dpf-for-results' of https://github.com/ansys…
germa89 0829f58
refactor: remove unused variable in DPFResult class
germa89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
export OMPI_ALLOW_RUN_AS_ROOT=1 | ||
export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | ||
|
||
if [ -z "${VERSION}" ]; then | ||
echo "VERSION environment variable is not set. Please set it to the desired Ansys version." | ||
exit 1 | ||
fi | ||
|
||
RUN_DPF_SERVER=${RUN_DPF_SERVER:-false} | ||
|
||
if [ -n "${ANSYS_DPF_ACCEPT_LA}" ]; then | ||
if [ "${ANSYS_DPF_ACCEPT_LA}" == "Y" ]; then | ||
RUN_DPF_SERVER=true | ||
fi | ||
fi | ||
|
||
echo "RUN_DPF_SERVER: $RUN_DPF_SERVER" | ||
|
||
if [ "$RUN_DPF_SERVER" == "true" ]; then | ||
echo "Starting DPF server..." | ||
"/ansys_inc/v${VERSION}/aisol/bin/linx64/Ans.Dpf.Grpc.sh" --port "${DPF_PORT_INTERNAL}" > log_dpf.log & | ||
echo "DPF server started." | ||
fi | ||
|
||
echo "Starting MAPDL..." | ||
echo "Using executable path: ${EXEC_PATH}" | ||
|
||
$EXEC_PATH -grpc -dir /jobs -"${DISTRIBUTED_MODE}" -np 2 -db -6000 -m -6000 - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -63,11 +63,12 @@ jobs: | |||||
PYMAPDL_DB_PORT2: 21003 # default won't work on GitHub runners | ||||||
DPF_DOCKER_IMAGE: ghcr.io/ansys/mapdl:v25.2-rocky-dpf-standalone | ||||||
DPF_PORT: 21014 | ||||||
DPF_PORT_INTERNAL: 50055 # Internal port for DPF server | ||||||
DPF_PORT2: 21015 | ||||||
DPF_START_SERVER: False | ||||||
HAS_DPF: True | ||||||
TEST_DPF_BACKEND: false | ||||||
PYTEST_ARGUMENTS: '-vvv -ra --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=5 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile --report-log-exclude-logs-on-passed-tests --strict-markers' | ||||||
PYTEST_ARGUMENTS: '-vvv -ra --color=yes --durations=30 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=180 --profile-svg --profile --report-log-exclude-logs-on-passed-tests --strict-markers --random-order-seed=650199' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
MAPDL_PACKAGE: ghcr.io/ansys/mapdl | ||||||
|
||||||
steps: | ||||||
|
@@ -149,13 +150,16 @@ jobs: | |||||
MAPDL_VERSION: ${{ inputs.mapdl-version }} | ||||||
DISTRIBUTED_MODE: ${{ steps.distributed_mode.outputs.distributed_mode }} | ||||||
MAPDL_PACKAGE: ${{ env.MAPDL_PACKAGE }} | ||||||
DPF_PORT_INTERNAL: ${{ env.DPF_PORT_INTERNAL }} | ||||||
shell: bash | ||||||
run: | | ||||||
echo "Launching first MAPDL instance..." | ||||||
export INSTANCE_NAME=MAPDL_0 | ||||||
export RUN_DPF_SERVER=true | ||||||
.ci/start_mapdl.sh &> mapdl_launch_0.log & export DOCKER_PID_0=$! | ||||||
|
||||||
echo "Launching a second instance for MAPDL pool testing..." | ||||||
export RUN_DPF_SERVER=false | ||||||
export PYMAPDL_PORT=${{ env.PYMAPDL_PORT2 }} | ||||||
export PYMAPDL_DB_PORT=${{ env.PYMAPDL_DB_PORT2 }} | ||||||
export INSTANCE_NAME=MAPDL_1 | ||||||
|
@@ -222,17 +226,6 @@ jobs: | |||||
run: | | ||||||
python -m pip install .[tests] | ||||||
|
||||||
- name: "Start DPF server on same container as MAPDL" | ||||||
if: ${{ steps.ubuntu_check.outputs.ON_SAME_CONTAINER == 'true' }} | ||||||
shell: bash | ||||||
env: | ||||||
MAPDL_INSTANCE: "MAPDL_0" | ||||||
DPF_PORT: "${{ env.DPF_PORT }}" | ||||||
run: | | ||||||
docker ps | ||||||
echo "Starting DPF server on same MAPDL container: ${MAPDL_INSTANCE}" | ||||||
docker exec ${MAPDL_INSTANCE} /bin/bash -c "/ansys_inc/v252/aisol/bin/linx64/Ans.Dpf.Grpc.sh --port 50055 &" > log_dpf.log & | ||||||
|
||||||
- name: "Waiting for the services to be up" | ||||||
shell: bash | ||||||
env: | ||||||
|
@@ -265,14 +258,14 @@ jobs: | |||||
--log-file-level="DEBUG" | ||||||
|
||||||
- name: "Print amount of restarts" | ||||||
if: always() | ||||||
run: | | ||||||
N_RESTART=$(docker inspect --format '{{ .RestartCount }}' MAPDL_0) | ||||||
echo "Number of restarts in MAPDL_0 container: $N_RESTART" | ||||||
echo "Number of restarts in the MAPDL_0 container: $N_RESTART" | ||||||
N_RESTART=$(docker inspect --format '{{ .RestartCount }}' MAPDL_1) | ||||||
echo "Number of restarts in MAPDL_1 container: $N_RESTART" | ||||||
echo "Number of restarts in the MAPDL_1 container: $N_RESTART" | ||||||
|
||||||
- name: "Upload pytest reports to GitHub" | ||||||
if: always() | ||||||
uses: actions/upload-artifact@v4.6.2 | ||||||
with: | ||||||
name: "reports-${{ inputs.file-name }}" | ||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Feat: using dpf instead of reader in "results" module |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Feat: using entrypoint to start mapdl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (C) 2016 - 2025 ANSYS, Inc. and/or its affiliates. | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
from .result import DPFResult | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.