instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
ansys__pymapdl__1882
ansys/pymapdl
1,882
defect
eda2e3934a966bbac3ce400751a11091c83fa2ac
acb977b32642a957a042287a131a680eb26ce6bd
Code update for Ansvec __getitem__ to handle complex dtype
Code change to handle Issue #1881 Description of the Issue : Indexing Items from a AnsVec of complex datatype which has both real and imag values, returns only the real value. There is no way of accessing the imaginary value unless AnsVec is changed to numpy array. ![image](https://user-images.githubusercont...
diff --git a/src/ansys/mapdl/core/math.py b/src/ansys/mapdl/core/math.py index 6efa26c9376..440840575df 100755 --- a/src/ansys/mapdl/core/math.py +++ b/src/ansys/mapdl/core/math.py @@ -1399,10 +1399,19 @@ def __repr__(self): return f"APDLMath Vector Size {self.size}" def __getitem__(self, num): + ...
4
3
1
[{"id": "G0", "claim": "The __getitem__ helper should use trailing underscores for its internal MAPDL parameters (pyval_, pyval_img_) and clean up those parameters after running the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the cod...
null
ansys__pymapdl__1912
ansys/pymapdl
1,912
defect
8c6f345469b5260e2919a8b6cee386fc0a67109f
86654be5f482aaf09dbed63cd3842a1fb8ef2da1
Implementing unique session id
It should improve stability. Let's see. # Current situation CICD fails because the docker image crashes quite frequently. We automatically reboot it (``--restart always`` docker flag), but then the image comes with no data, clean. But PyMAPDL is not aware that the database has been cleaned hence it request data...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d54a7a48b8c..58c3c791775 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ env: DOCKER_PACKAGE: ghcr.io/pyansys/mapdl DOCKER_IMAGE_VERSION_DOCS_BUILD: v23.1.0 ON_CI: True - PYTEST_ARGUMENTS: '-vv --dura...
10
8
0
[{"id": "G0", "claim": "The mismatch branch should log at error level instead of debug (suggestion changes \"The session ids DO NOT match\" debug line to a lowercase error-level line).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In _get_mapdl_ses...
null
ansys__pymapdl__1923
ansys/pymapdl
1,923
defect
b5b02f4c7a47c68850930d2a2d862cf5023f0b47
e1bd688529032157765f47036a2f13d4ecdb5fbf
Homogenising error handling
As the title. Use the same functions/methods for error handling. This has been taken from #1912
diff --git a/src/ansys/mapdl/core/mapdl.py b/src/ansys/mapdl/core/mapdl.py index 3c8a73a5514..4c031b11acb 100644 --- a/src/ansys/mapdl/core/mapdl.py +++ b/src/ansys/mapdl/core/mapdl.py @@ -2904,18 +2904,7 @@ def run(self, command, write_to_log=True, mute=None, **kwargs) -> str: return self._response ...
1
1
0
[{"id": "G0", "claim": "The parametrized test should also cover MapdlCommandIgnoredError and MapdlRuntimeError, as proposed in the suggestion block.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ansys__pymapdl__1950
ansys/pymapdl
1,950
defect
687e761b8b418a052ef7cd48f432cedd2d7c8347
4491788994d4a48a9098b7342bd15ee1787ac92e
Expose APDL Math New Feature - Kronecker product between two matrices/vectors
Expose *KRON - Kronecker product (Newly Added feature in V23.2) for APDL Math _Description :_ *KRON, M1, M2, M3 Computes the Kronecker product of two matrices/vectors
diff --git a/src/ansys/mapdl/core/math.py b/src/ansys/mapdl/core/math.py index a192c286a11..a9fe4162bdf 100755 --- a/src/ansys/mapdl/core/math.py +++ b/src/ansys/mapdl/core/math.py @@ -1321,6 +1321,53 @@ def axpy(self, op, val1, val2): self._mapdl.run(f"*AXPY,{val1},0,{op.id},{val2},0,{self.id}", mute=True) ...
6
5
1
[{"id": "G0", "claim": "The guard that checks the argument is an ApdlMathObject should use isinstance rather than a hasattr(obj, \"id\") probe.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version guard should raise VersionError from ansys...
null
ansys__pymapdl__2092
ansys/pymapdl
2,092
defect
1a8e9d317d7898fc4f1c549983b44235e1b397e4
92ace0581d3a2f44f42e3bb5fd7f480aa351ec1e
Fixing `mapdl.download`
Closes #2081.
diff --git a/src/ansys/mapdl/core/mapdl_grpc.py b/src/ansys/mapdl/core/mapdl_grpc.py index 90c053ae973..3593c8b9d24 100644 --- a/src/ansys/mapdl/core/mapdl_grpc.py +++ b/src/ansys/mapdl/core/mapdl_grpc.py @@ -2078,8 +2078,8 @@ def download( chunk_size=None, progress_bar=None, recursive=False,...
1
1
1
[{"id": "G0", "claim": "The new local-download loop mishandles errors: the bare `except` around `os.path.exists` can never fire because that call returns False instead of raising, so a missing file falls through to `shutil.copy`; errors are printed with `print` instead of raised, and the `exist` variable is assigned bu...
null
ansys__pymapdl__2195
ansys/pymapdl
2,195
defect
ceba099c78eeefac7a807d5bd3596f00723e8bbc
e5430604fbe4f9e9f30147f470700dfa14f2bfbd
Fixing area coloring
As the title. Now you can do something like: ```py from ansys.mapdl.core import launch_mapdl import numpy as np mapdl = launch_mapdl() mapdl.clear() mapdl.prep7() mapdl.block(0,1,0,1,0,1) for each in [ True, "red", ["red", "green", "blue", "yellow", "white", "purple"], [[255,255,255],...
diff --git a/src/ansys/mapdl/core/mapdl.py b/src/ansys/mapdl/core/mapdl.py index 6fe1615703d..b6d3b5f6b8a 100644 --- a/src/ansys/mapdl/core/mapdl.py +++ b/src/ansys/mapdl/core/mapdl.py @@ -16,6 +16,7 @@ from warnings import warn import weakref +from matplotlib.colors import to_rgba import numpy as np from numpy._...
2
1
0
[{"id": "G0", "claim": "On CI, pl.mesh.cell_data[\"Data\"] comes back with all-identical values so test_color_areas_fail's unique-colour assertion fails even though it passes locally, possibly because xvfb is preventing colour assignment, and it may be worth trying the pytest-xvfb plugin to diagnose it.", "category": "...
null
ansys__pymapdl__2493
ansys/pymapdl
2,493
defect
44c4c47361d528d6f5466980ad1bc5cc09cab66f
1c5e8443a3bd2321a550f74bb3f570588ae34b21
Fix respawning of pool instances have different names
The re-spawning of pool instances was creating instances with different names. Close #2453
diff --git a/src/ansys/mapdl/core/pool.py b/src/ansys/mapdl/core/pool.py index 4a3b51f87c3..9d31f8d2ad9 100755 --- a/src/ansys/mapdl/core/pool.py +++ b/src/ansys/mapdl/core/pool.py @@ -236,7 +236,7 @@ def __init__( # monitor pool if requested if restart_failed: - self._pool_monitor_thread...
2
1
0
[{"id": "G0", "claim": "The suggestion block asks to restore the killed-instance line in test_heal so the test exits a second pool instance (pool[1].exit()) as well.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "clatapie asks whether replacing overri...
null
ansys__pymapdl__2496
ansys/pymapdl
2,496
defect
428fba2fdaf0291497006fba84aa6dc47b15cb08
8d18d9247c50b28bfae538235a662c8fdf215bc3
Documenting non-interactive
As the title. Also not allowing `mapdl.parameters` retrieval in `non_interactive`. Close #2376
diff --git a/doc/source/links.rst b/doc/source/links.rst index a4a445b7020..61d1e470c8d 100644 --- a/doc/source/links.rst +++ b/doc/source/links.rst @@ -108,6 +108,7 @@ .. _tds_article_web_app_1: https://towardsdatascience.com/ansys-in-a-python-web-app-part-1-post-processing-with-pydpf-44d2fbaa6135 .. _tds_article_we...
25
24
1
[{"id": "G0", "claim": "The code-block language of the new tab-sets should be capitalized (`.. code:: Python` instead of `.. code:: python`).", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `.. vale off` / `.. vale on` directives wrapping the n...
null
ansys__pymapdl__2671
ansys/pymapdl
2,671
defect
6db007d9e1dc11ec1b37d0db2f4556c546159e73
746106d3254f58c938a1715952af431d9619a38c
Deriving all custom error from Exception and related
I'm not very convinced on this one... The idea is to have all the MAPDL error classes deriving from one (``MapdlException``), so we can do something like: ```py try: mapdl = launch_mapdl() except MapdlException: # Exception raised by PyMAPDL handleing this different handle_pymapdl_exception() ex...
diff --git a/src/ansys/mapdl/core/common_grpc.py b/src/ansys/mapdl/core/common_grpc.py index dff4e772d0d..2d2a3b6262f 100644 --- a/src/ansys/mapdl/core/common_grpc.py +++ b/src/ansys/mapdl/core/common_grpc.py @@ -25,7 +25,7 @@ import numpy as np -from ansys.mapdl.core.errors import MapdlConnectionError +from ansys...
4
2
0
[{"id": "G0", "claim": "GrpcError.__init__ should call super().__init__ instead of MapdlRuntimeError.__init__.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider avoiding inheriting the built-in exception twice by removing the Exception bas...
null
ansys__pymapdl__2776
ansys/pymapdl
2,776
defect
1a7e508ab1d6b4fd269f2d1f6d5c4534af0d01e5
6d84d2340dd2de0fd668a0ca5a8a814a6bb9fecb
Reorganizing CLI
Before doing the release, I want to reorg this, to make it more consistent/structured. Now there is only one entrypoint ``pymapdl``: ```bash $ pymapdl convert ... # convert mapdl code to pymapdl $ pymapdl start $ pymapdl stop $ pymapdl list ``` Related to #2703
diff --git a/pyproject.toml b/pyproject.toml index ffc3c37ab65..b7a390fcb4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ Source = "https://github.com/ansys/pymapdl" [project.scripts] pymapdl_convert_script = "ansys.mapdl.core.cli:convert" -launch_mapdl = "ansys.mapdl.core.cli:launch_mapdl" +...
2
2
0
[{"id": "G0", "claim": "The pymapdl_convert_script entry point in pyproject.toml should be removed if only one entry point is wanted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The commented-out MyGroup code block added in cli.py is kept without an...
null
ansys__pymapdl__2846
ansys/pymapdl
2,846
defect
1725f126acc8caead52ee74ddef833181c325685
c2aa1e957d7167cdefdb5861353c8e7977861498
Adding screenshot method.
To show/download screenshots. ```py mapdl.screenshot() ``` <img width="752" alt="image" src="https://github.com/ansys/pymapdl/assets/28149841/7e91e99e-e0b4-4bdd-a20f-b9cb181e19ce"> Close #2845 <details><summary>Details</summary> <p> ```py # Importing packages import numpy as np from ansys.ma...
diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index 6b5773d6097..8be542c8366 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -2273,16 +2273,18 @@ def __del__(self): pass def _get_plot_name(self, text: str) -> ...
3
3
0
[{"id": "G0", "claim": "The savefig docstring line should read 'Name of the screenshot file. The default is ``None``.' instead of 'Specify the name of the screenshot file, by default None'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ValueE...
null
ansys__pymapdl__2862
ansys/pymapdl
2,862
defect
2f3d57f4eca1fbd1038e72ee66474918d989d3f6
d3a69e2d7c7f8accb4ec1267610c7509c985c200
Allow `pool` to connect to remote MAPDL instances
The idea is that the `pool` module should work with remote instances too. We should handle the starting of those remote instances manually. ```py from ansys.mapdl.core.pool import LocalMapdlPool pool = MapdlPool(2, start_instance=False, port=[50092, 50093]) print(pool) ``` The class will be renamed of c...
diff --git a/src/ansys/mapdl/core/errors.py b/src/ansys/mapdl/core/errors.py index a2c660879ea..79aaa60deb6 100644 --- a/src/ansys/mapdl/core/errors.py +++ b/src/ansys/mapdl/core/errors.py @@ -316,7 +316,9 @@ def wrapper(*args, **kwargs): # Must close unfinished processes mapdl._close_proces...
1
1
0
[{"id": "G0", "claim": "Reword the debug log line to read as a full sentence: \"'PYMAPDL_START_INSTANCE' is unset, and there is no supplied value. Using default, which is 'True'.\" instead of \", hence using default value 'True'\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro...
null
ansys__pymapdl__2878
ansys/pymapdl
2,878
defect
50d3b15b147100d23ece2382e8d9d3e0209b8a67
b5997a0b18f93cb47edb8f184f6f6dfe6eccccc3
Fixing not passing start_instance
As the title. Close #2877
diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index f768d881519..856a4d617c3 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -802,6 +802,10 @@ def get_start_instance(start_instance: bool = True): if "PYMAPDL_START_INSTANCE" in os.environ an...
2
2
0
[{"id": "G0", "claim": "The debug message should read \"PYMAPDL_START_INSTANCE is unset. Using default value {start_instance}.\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The debug message should read \"Using 'start_instance' equal to %s.\...
null
ansys__pymapdl__3002
ansys/pymapdl
3,002
defect
f465c1fa177a3078f6b6e7cf897b637fb91646ca
32fbf88fa0654582dce8aafb3363ef3a67965067
feat: adding option to `_ctrl` command
*This is a development only command, not intended for general use* The option1 was missing in the function definition.
diff --git a/src/ansys/mapdl/core/mapdl_grpc.py b/src/ansys/mapdl/core/mapdl_grpc.py index 3a7e3bf0f66..b4d3311f9c6 100644 --- a/src/ansys/mapdl/core/mapdl_grpc.py +++ b/src/ansys/mapdl/core/mapdl_grpc.py @@ -1411,7 +1411,7 @@ def _download(targets: List[str]) -> None: return os.path.join(path, jobname + "0." ...
3
3
0
[{"id": "G0", "claim": "The first line of the `_ctrl` docstring should read \"Issue control command to the MAPDL server.\" — capitalizing MAPDL and ending with a period.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The commands listed in the `...
null
ansys__pymapdl__3166
ansys/pymapdl
3,166
defect
de18185752e8e1cfdf9f21f7efd1b2f64f9559df
dd766187b429a2a91f1e24726823512d83b1f867
feat: allowing multiple IPs for remote connection on `MapdlPool`
As the title. It should allow to: ```py ips = [ "123.45.67.01", "123.45.67.02", "123.45.67.03", "123.45.67.04", "123.45.67.05", ] pool = MapdlPool(ip=ips) ```
diff --git a/src/ansys/mapdl/core/pool.py b/src/ansys/mapdl/core/pool.py index 3bf6d656126..c6f180b8145 100755 --- a/src/ansys/mapdl/core/pool.py +++ b/src/ansys/mapdl/core/pool.py @@ -168,6 +168,7 @@ def __init__( n_instances: int = None, wait: bool = True, run_location: Optional[str] = None...
1
1
1
[{"id": "G0", "claim": "The new condition in MapdlPool.__init__ should test the resolved list `ips` instead of `ip`, because `ip` can be a single string (and is Optional), so `len(ip)` does not count the number of IPs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ansys__pymapdl__3239
ansys/pymapdl
3,239
defect
0a417ed8576251810c2a8e3621e4ac351b3cfb4d
8ed9c48c29ce7c77a685ef9c481a558dcf6bfbd1
feat: refactoring `create_temp_dir`
## Description Refactoring create_temp_dir and apply to MapdlPool library ## Issue linked ## Checklist - [ ] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [ ] I have [tested my changes locally](https://mapdl.docs.pyan...
diff --git a/doc/changelog.d/3239.miscellaneous.md b/doc/changelog.d/3239.miscellaneous.md new file mode 100644 index 00000000000..69a82cd64a2 --- /dev/null +++ b/doc/changelog.d/3239.miscellaneous.md @@ -0,0 +1 @@ +feat: refactoring `create_temp_dir` \ No newline at end of file diff --git a/doc/source/api/pool.rst b/d...
4
4
0
[{"id": "G0", "claim": "Add a `# pragma: no cover` comment to the bare `except:` in create_temp_dir so coverage does not report the line as uncovered.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the local variable `dir` to `dir_` in test_creat...
null
ansys__pymapdl__3240
ansys/pymapdl
3,240
defect
0a417ed8576251810c2a8e3621e4ac351b3cfb4d
2196be8354d889e4362f9719b013246eaad24448
fix: Raising `ValueError` when using ips within pool library
## Description As the title. Latest changes in ``MapdlPool`` always passes the IP argument, so it is better to not raise this specific error when using ``pool``. ## Issue linked **Please mention the issue number or describe the problem this pull request addresses.** ## Checklist - [x] I have visited and read [...
diff --git a/doc/changelog.d/3239.miscellaneous.md b/doc/changelog.d/3239.miscellaneous.md new file mode 100644 index 00000000000..69a82cd64a2 --- /dev/null +++ b/doc/changelog.d/3239.miscellaneous.md @@ -0,0 +1 @@ +feat: refactoring `create_temp_dir` \ No newline at end of file diff --git a/doc/changelog.d/3240.fixed....
1
1
0
[{"id": "G0", "claim": "The MapdlRuntimeError message should end its first sentence with a period and drop the word 'Please'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ansys__pymapdl__3354
ansys/pymapdl
3,354
defect
99eedcdc0ac709c069542b740168d70fa97e54fc
661cc479901f491e5a49c74d52eea682988e4b1b
feat: adding python side retry mechanism
## Description Add a retry mechanism in Python. We are assuming, that because of network issues, one call didn't reach the MAPDL instance. Hence, we can try again safely. My concern is to trigger twice long calls (``SOLVE``). ## Issue linked Related to #3342 ## Checklist - [x] I have visited and read [Develop PyMAP...
diff --git a/doc/changelog.d/3354.miscellaneous.md b/doc/changelog.d/3354.miscellaneous.md new file mode 100644 index 00000000000..2438e6b1bf1 --- /dev/null +++ b/doc/changelog.d/3354.miscellaneous.md @@ -0,0 +1 @@ +feat: adding python side retry mechanism \ No newline at end of file diff --git a/src/ansys/mapdl/core/e...
4
1
0
[{"id": "G0", "claim": "RobPasMue asks that retrying a request after failure be safe — as long as the author is confident the server handles well a retry of a request that may already have been received after a failure, the approach looks good.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "sco...
null
ansys__pymapdl__3412
ansys/pymapdl
3,412
defect
1b82d3402663c5b30f046ec8d938f5656a368ed4
b6f93716dd80403fec5892d962867f672da6bd6a
feat: supporting ´´to_dataframe()´´ for some bc list commands
## Description to_dataframe() support for the output of following list boundary conditions commands: DKLIST, DLLIST, DALIST, FKLIST, SFLLIST, BFKLIST, BFLLIST and BFALIST ## Issue linked N / A ## Checklist - [ ] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_st...
diff --git a/src/ansys/mapdl/core/commands.py b/src/ansys/mapdl/core/commands.py index 4a74c124ac4..25e88dd5287 100644 --- a/src/ansys/mapdl/core/commands.py +++ b/src/ansys/mapdl/core/commands.py @@ -52,9 +52,8 @@ REG_FLOAT_INT = re.compile( r"[+-]?[0-9]*[.]?[0-9]*[Ee]?[+-]?[0-9]+|\s[0-9]+\s" ) # match number ...
2
1
1
[{"id": "G0", "claim": "Tests are failing because the ``import pandas as pd`` import doesn't appear at the top of tests/test_commands.py; asks to add it whenever the author gets the chance.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The coverage...
null
ansys__pymapdl__3474
ansys/pymapdl
3,474
defect
e327e4df22e568c287bcd1059abc3825aba8dd2c
8f30ec49e6cabb240665ac3dddc8cc8f9f71c41b
refactor: modifying ``subprocess`` calls and removing ``try except continue`` statements
## Description This PR: - [x] modifies ``subprocess`` calls. ``subprocess`` is now used with ``shell=False`` - [x] removes all the ``try except continue`` statements by adding warnings when needed - [x] changes the ``urllib.request`` calls into ``requests`` ones ## Checklist - [x] I have visited and read [Devel...
diff --git a/doc/changelog.d/3474.added.md b/doc/changelog.d/3474.added.md new file mode 100644 index 00000000000..a80e7d87725 --- /dev/null +++ b/doc/changelog.d/3474.added.md @@ -0,0 +1 @@ +refactor: PyMAPDL general maintenance \ No newline at end of file diff --git a/src/ansys/mapdl/core/__init__.py b/src/ansys/mapd...
16
16
2
[{"id": "G0", "claim": "In ``_launch`` the ``MapdlConnectionError`` is raised on the first failed connection attempt (the ``if not success`` check sits inside the ``while`` loop) instead of only after the timeout, so the loop no longer waits for a viable connection.", "category": "correctness", "verdict": "supported", ...
null
ansys__pymapdl__3509
ansys/pymapdl
3,509
defect
2ba2b80d75d0a1d431f0b4647b8df8967d12dc14
9c021f1fd2d11efaa1f09e292c40dc2ef004f18d
test: faking-v150
## Description Some test refactoring ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_start...
diff --git a/doc/changelog.d/3507.fixed.md b/doc/changelog.d/3507.fixed.md new file mode 100644 index 00000000000..1f4db19a112 --- /dev/null +++ b/doc/changelog.d/3507.fixed.md @@ -0,0 +1 @@ +fix: raising port busy when connecting \ No newline at end of file diff --git a/src/ansys/mapdl/core/helpers.py b/src/ansys/mapd...
3
3
1
[{"id": "G0", "claim": "The warning message in check_mode reads \"PyMAPDL couldn't not detect MAPDL version\", a double negative the reviewer finds confusing, and suggests rewording it to \"couldn't detect\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
ansys__pymapdl__3665
ansys/pymapdl
3,665
defect
a098f509f1b8d25c0cd8544ce48a65207af989dd
06edbe0cfe3f8a9606c6d6db900d6b60a3494d4a
fix: avoid com logging if not in debug mode
## Description As the title. ## Issue linked Close #3655 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_star...
diff --git a/doc/changelog.d/3665.fixed.md b/doc/changelog.d/3665.fixed.md new file mode 100644 index 00000000000..aeb7a126211 --- /dev/null +++ b/doc/changelog.d/3665.fixed.md @@ -0,0 +1 @@ +fix: avoid com logging if not in debug mode \ No newline at end of file diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/an...
2
2
0
[{"id": "G0", "claim": "The debug-mode guard in __enter__ should use the built-in logging constant (e.g. logging.DEBUG) instead of the magic number 10.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_comment_on_debug_mode should use the logg...
null
ansys__pymapdl__3702
ansys/pymapdl
3,702
defect
ef03721bea60b9248bb92ce4d9ca0e8a62d831df
34459bfa1e382af1800cdd298862ead6b73188f4
fix(plotting): Improve interface of the plotting class.
## Description This PR improves the usability of some methods in the plotting class. This class was meant to be used inside eplot, vplot.. functions, but since some use cases involve using it standalone, I improved it's usability and documentation. ## Checklist - [x] I have visited and read [Develop PyMAPDL](https...
diff --git a/doc/changelog.d/3702.fixed.md b/doc/changelog.d/3702.fixed.md new file mode 100644 index 00000000000..fedbeeaffd0 --- /dev/null +++ b/doc/changelog.d/3702.fixed.md @@ -0,0 +1 @@ +fix(plotting): Test plotting changes \ No newline at end of file diff --git a/src/ansys/mapdl/core/plotting/visualizer.py b/src/...
2
2
2
[{"id": "G0", "claim": "A warning should be logged when add_mesh is called with no meshes, points or labels, instead of returning silently.", "category": "usability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request needs more test coverage before merging, becaus...
null
ansys__pymapdl__3716
ansys/pymapdl
3,716
defect
3e7bfaab989e8f36a20760e3fff2723a992f5f27
285261f87f3d065aead875cc141572f77d6391a1
ci: improving testing
## Description As the title. ## Issue linked Related to #3714 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stab...
diff --git a/doc/changelog.d/3716.dependencies.md b/doc/changelog.d/3716.dependencies.md new file mode 100644 index 00000000000..fbb87af2fc8 --- /dev/null +++ b/doc/changelog.d/3716.dependencies.md @@ -0,0 +1 @@ +ci: improving testing \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d181b4...
3
3
0
[{"id": "G0", "claim": "Asks where the newly added `log_cli = true` pytest setting is used, questioning its purpose in pyproject.toml.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request leaves its mapdl_core.py changes commented out...
null
ansys__pymapdl__3745
ansys/pymapdl
3,745
defect
b39d487c097bdba2bf336f0d9b06713f2f665b67
be54b763c93884ff9358ba8c2c5fa6dd354bbfd8
fix: problem with the load_table method
## Description **Please provide a brief description of the changes made in this pull request.** mapdl behavior of *TREAD when column number is more than 2 is that it takes the first row as column header. There are two possible scenarios : 1. Where the column header is defined in the text file. (#3305) 2. Where t...
diff --git a/doc/changelog.d/3745.fixed.md b/doc/changelog.d/3745.fixed.md new file mode 100644 index 00000000000..871146b75f2 --- /dev/null +++ b/doc/changelog.d/3745.fixed.md @@ -0,0 +1 @@ +fix: problem with the load_table method \ No newline at end of file diff --git a/src/ansys/mapdl/core/mapdl_extended.py b/src/an...
1
1
0
[{"id": "G0", "claim": "The load_table column-header branching should be restructured as in the suggestion block: a single `if array.shape[1] > 2:` containing `if col_header is False: array = np.vstack((array[0], array))` and the shared `imax_val = array.shape[0] - 1` outside the col_header branch, instead of the dupli...
null
ansys__pymapdl__3899
ansys/pymapdl
3,899
defect
1ec7e5c03f7397c4829864779400b0dcdd7f43cf
03444bc75d2dbe88d0c6dee9ba0d0bf687a190d4
chore: remove xfail markers from most flaky tests
## Description As the title. ## Issue linked Close #2435 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/gett...
diff --git a/tests/test_importing_geometries.py b/tests/test_importing_geometries.py index f142482685d..6308f37502e 100644 --- a/tests/test_importing_geometries.py +++ b/tests/test_importing_geometries.py @@ -159,7 +159,6 @@ def test_readin_x_t(mapdl, cleared): clear_wkdir_from_cads(mapdl) -@pytest.mark.xfail(...
3
1
0
[{"id": "G0", "claim": "Confirm that, now that the xfail marker is removed, test_extract reliably passes and no longer flakes (flakiness tracked in #2435).", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Link to the resolved issues (e.g., #2435, #2377) i...
null
ansys__pymapdl__3930
ansys/pymapdl
3,930
defect
55914e88a2c86be312cf9c4f3930d3eb4a6d2bd3
49682ac21ff2fc7fc028c930458adf750e97f883
refactor: update geometry tests
## Description Small changes to the CAD tests. ## Issue linked Close #3929 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/s...
diff --git a/tests/test_importing_geometries.py b/tests/test_importing_geometries.py index 6308f37502e..14bebfe6165 100644 --- a/tests/test_importing_geometries.py +++ b/tests/test_importing_geometries.py @@ -77,7 +77,8 @@ def clear_wkdir_from_cads(mapdl): ## IGES # def test_readin_igs(mapdl, cleared): - mapdl.ig...
3
3
1
[{"id": "G0", "claim": "Since mapdl.upload already places the file in MAPDL's working directory, keeping path=CADs_path in the satin, parain and cat5in calls may cause MAPDL to load the original file instead of the uploaded one; remove the path=CADs_path argument from those calls.", "category": "correctness", "verdict"...
null
ansys__pymapdl__3934
ansys/pymapdl
3,934
defect
dff1bab7b4dcc87dfc69cad6858cd47665ff5eb6
e0502fb0ca7e82455866841e33ea00d27417c427
ci: using strict markers on pytest
## Description To catch warnings ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_s...
diff --git a/pyproject.toml b/pyproject.toml index 7063ddf067a..dd100fd8185 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,7 +119,7 @@ pymapdl_convert_script = "ansys.mapdl.core.cli:old_pymapdl_convert_script_entry_ pymapdl = "ansys.mapdl.core.cli:main" [tool.pytest.ini_options] -addopts = "-rxXsa -vvv --...
4
1
1
[{"id": "G0", "claim": "Renaming the `gui` marker to `requires_gui` while adding `--strict-markers` risks breaking existing usages: tests annotated with @pytest.mark.gui would be unrecognized, so update them to @pytest.mark.requires_gui or add a `gui` alias for backward compatibility.", "category": "correctness", "verd...
null
ansys__pymapdl__3935
ansys/pymapdl
3,935
defect
6012cd88de3da625c8ffaf2b0707b4d18972c3b2
d98af0a1695de18bdd49b20fad2a980149dec442
ci: annotating launcher, convert and commands files
## Description Using MyPy for typing annotations checks on the files: launcher, conver and commands. ## Issue linked Related to #3480 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have ...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 06938f50fa2..e27a90c11f6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,17 @@ ci: repos: +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.11.2 + hooks: + - id: mypy + args: [ + --disa...
2
1
0
[{"id": "G0", "claim": "Wrap each mypy flag in .pre-commit-config.yaml in quotes (e.g. \"--disallow-untyped-defs\") to avoid YAML misparsing of unquoted hyphen-starting strings.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Importing __version__ fr...
null
ansys__pymapdl__3943
ansys/pymapdl
3,943
defect
e0e6f05fe7d86c6fc3a1e56e980c8ea17ea32ba9
bb83f97a6efd5896a35aa41ade4951c1be16d350
refactor: enhance error reporting in pytest output for better debugging
## Description As the title. ## Issue linked Spin out of #1300 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getti...
diff --git a/tests/conftest.py b/tests/conftest.py index 991257c6f73..0ba3b268434 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -20,6 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import ast from collections import namedtuple from collections.abc...
3
2
1
[{"id": "G0", "claim": "The skipped-test branch parses rep.longreprtext with ast.literal_eval against a tuple string format that is undocumented and that complex or parameterized failures might not match; the format should be clarified/documented with a comment and a fallback for unparsable cases added so the summary d...
null
ansys__pymapdl__3969
ansys/pymapdl
3,969
defect
5606ec3dcb34e093ca18d6f8cab5e4fc1672fe45
fa4f7df192920a4b87a0cc9d43c479948276b90f
feat: enhance error handling from terminal output for MAPDL launch
## Description As the title. Now we also consider the stderr output before raising an error. Implemented class `QueueWithPermanentStorage` which allows for checking the full output for both stdout and stderr. ## Issue linked Close #3963 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs...
diff --git a/doc/source/user_guide/troubleshoot.rst b/doc/source/user_guide/troubleshoot.rst index aa60eefb058..163a892b2f8 100644 --- a/doc/source/user_guide/troubleshoot.rst +++ b/doc/source/user_guide/troubleshoot.rst @@ -190,11 +190,45 @@ If this command doesn't launch MAPDL, look at the command output: .. vale ...
4
1
0
[{"id": "G0", "claim": "The troubleshooting doc the PR added says 'If this has not being installed' where the grammar requires 'has not been installed'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "QueueWithPermanentStorage only overrides get() ...
null
ansys__pymapdl__3998
ansys/pymapdl
3,998
defect
44e4deee3f0656e34abfef83f0ed9c8e59b2dee1
c036f23a3531e4d2cf8229292974137bf48dd9ef
fix: selection on non-interactive
## Description Fix not running xsel commands in non_interactive. ## Issue linked Close #3989 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pya...
diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index 8ed8444d63d..de923ea8dd3 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -1361,7 +1361,7 @@ def inner_wrapper(*args, **kwargs): # in interactive mode (item='p'), the ou...
6
3
0
[{"id": "G0", "claim": "Update the comment above `return func(*args, **kwargs)` to accurately describe the new behavior of executing the wrapped function in non-interactive mode.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid conditionals in...
null
ansys__pymapdl__4074
ansys/pymapdl
4,074
defect
4aad52cc3bdcec6b1f0c391f915be7efd879b447
b8e3119fa4e8f19aa357fce6e68f019dc0944524
fix: inquire returning short env vars
## Description Due to MAPDL strings being limited to 248 chars, env vars which content is longer than that are limited to said length. We cannot avoid it, but we can raise a warning and propose and alternative method. ## Issue linked Close #4072 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://map...
diff --git a/src/ansys/mapdl/core/mapdl_extended.py b/src/ansys/mapdl/core/mapdl_extended.py index c6f0ae862f9..95ec43751ce 100644 --- a/src/ansys/mapdl/core/mapdl_extended.py +++ b/src/ansys/mapdl/core/mapdl_extended.py @@ -1461,6 +1461,15 @@ def inquire(self, strarray="", func="", arg1="", arg2="", **kwargs): ...
10
4
1
[{"id": "G0", "claim": "The warning message should say the response is truncated rather than trimmed, e.g. \"Response truncated to 248 characters due to MAPDL string limitations\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trimmed-environ...
null
ansys__pymapdl__4077
ansys/pymapdl
4,077
defect
e45c8a44772a8e01881a191691e6e6943afe7814
914983e1d64ef618908cedeb38d1023108ac63d5
fix: improve restarting MAPDL during testing
## Description As the title. ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_start...
diff --git a/tests/common.py b/tests/common.py index 4e19b503081..d7c80fae58f 100644 --- a/tests/common.py +++ b/tests/common.py @@ -249,7 +249,7 @@ def log_test_start(mapdl: Mapdl) -> None: mapdl._run(f"/com,Running test: {test_name}", mute=True) -def restart_mapdl(mapdl: Mapdl) -> Mapdl: +def restart_map...
2
2
2
[{"id": "G0", "claim": "The restart helper restores the backed-up state (_local and _exited) on the old mapdl object instead of the newly created new_mapdl instance that the function returns.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If no rest...
null
ansys__pymapdl__4079
ansys/pymapdl
4,079
defect
e45c8a44772a8e01881a191691e6e6943afe7814
56f1383a4ad0a025b12c3fb0a76a7c06539313cd
feat: implement platform-specific path handling in mapdl.directory
## Description As the title. So we can do: ```pycon >>> err_file = mapdl.directory / 'file.err' PurePosixPath('/local/simulation/file.err') ``` ## Issue linked Close #4078 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develo...
diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index 73bf426c821..ed1be682a8f 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -498,6 +498,27 @@ def default_file_type_for_plots(self, value: VALID_FILE_TYPE_FOR_PLOT_LITERAL): r...
4
1
0
[{"id": "G0", "claim": "The new test_directory_pathlib should avoid conditionals (branching on mapdl.platform) per the no-conditionals-in-tests rule.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use an f-string instead of string concatenation when bui...
null
ansys__pymapdl__4087
ansys/pymapdl
4,087
defect
3bfd1d10d1abff8ca4325c2f7b098f73c1a85ac5
304e2bac5729b184ca72db807064a321e8dbaab9
fix: handle root directory case in test
## Description As thet title. Fix test running internally ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/versi...
diff --git a/tests/test_mapdl.py b/tests/test_mapdl.py index 054f4e32191..687f7c215f3 100644 --- a/tests/test_mapdl.py +++ b/tests/test_mapdl.py @@ -2761,7 +2761,10 @@ def test_directory_pathlib_value(mapdl, cleared): if mapdl.platform == "windows": path_rst = f"{mapdl.directory}\\{mapdl.jobname}.rst" ...
4
3
1
[{"id": "G0", "claim": "Avoid conditional branches inside the test (no-conditionals-in-tests).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Merge the else clause's nested if statement into an elif (merge-else-if-into-elif).", "category": "main...
null
ansys__pymapdl__4097
ansys/pymapdl
4,097
defect
c7f3ad6585ea20f3759dd1aded435bfa2bcf88e3
1efa7f5f611b699c5095b070f5051ad7f27172ff
test: enhance testing logging
## Description As the title. Improve logging while testing. ## Issue linked NA but related to #1300. ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https:...
diff --git a/tests/common.py b/tests/common.py index 91deae0e99d..bf0f2082548 100644 --- a/tests/common.py +++ b/tests/common.py @@ -169,6 +169,10 @@ def debug_testing() -> bool: return False +def test_dpf_backend() -> bool: + return os.environ.get("TEST_DPF_BACKEND", "NO").upper().strip() in ["YES", "T...
7
2
0
[{"id": "G0", "claim": "The new test_dpf_backend function lacks a docstring; add a brief description explaining its purpose and expected inputs/outputs.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "conftest.py does not define an IS_SMP constant ...
null
ansys__pymapdl__4098
ansys/pymapdl
4,098
defect
c7f3ad6585ea20f3759dd1aded435bfa2bcf88e3
7d73e5168e93ab259e8644494364d07a6e6006ee
feat: using entrypoint to start MAPDL
## Description As the title. Additionally, enhance logging scripts and add DPF server support in CI workflows. ## Issue linked NA but related to #1300. ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl...
diff --git a/.ci/collect_mapdl_logs_locals.sh b/.ci/collect_mapdl_logs_locals.sh index 877ea98545c..33a187b8d02 100755 --- a/.ci/collect_mapdl_logs_locals.sh +++ b/.ci/collect_mapdl_logs_locals.sh @@ -27,6 +27,7 @@ echo "Copying the log files..." mv ./*.log ./"$LOG_NAMES"/ || echo "No log files could be found" mv ./*...
8
1
0
[{"id": "G0", "claim": "Quoting DISTRIBUTED_MODE in the MAPDL launch line of entrypoint.sh may pass the argument as -\"dmp\" instead of -dmp, which may not be recognized; remove the quotes to ensure correct argument parsing.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, ...
null
ansys__pymapdl__4101
ansys/pymapdl
4,101
defect
cab769157c23cdd98bd89fb29553431a24cd8b57
00403cf3b292c4e4f2575cfb526b075a93195082
refactor: using Path method for joining paths.
## Description As the title. Refactor to use the `/` for joining paths. ## Issue linked NA but using #4079 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](...
diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index b5711ba5906..d23d309bf1d 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -523,7 +523,7 @@ def _wrap_directory(self, path: str) -> pathlib.PurePath: @property @supress_loggin...
11
3
2
[{"id": "G0", "claim": "In _screenshot_path, glob.glob expects a string pattern, not a Path object, so passing self.directory / f\"{self.jobname}*.png\" will raise a TypeError; convert the Path to a string with str() before passing it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "int...
null
ansys__pymapdl__4108
ansys/pymapdl
4,108
defect
f021ab206446e3fe34822d69ca5e820d3649c0b0
41ba08ded6c8f8ba4a5a3b7a770d79886aa0c620
refactor: move methods from MapdlGrpc class to core and extended
## Description As the title. ## Issue linked Close #4102 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_star...
diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index c2642e3f59d..8c4a33acf11 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -36,6 +36,7 @@ import tempfile import time from typing import TYPE_CHECKING, Any, Dict, List, Literal, Option...
11
7
1
[{"id": "G0", "claim": "In MapdlExtended.file, path_ is used but only file_, ext_, _ are unpacked from _decompose_fname, which would raise a NameError.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The import of interp_star_status inside _get_mapdl...
null
ansys__pymapdl__4123
ansys/pymapdl
4,123
defect
870f746e1b4822c0f105143d7160936b468b860c
374c0d5b0609bf0523ad0a44820b76961d8d61b4
fix: update mpwrite and mpread methods to enforce 'LIB' as the only valid lib argument
## Description As the title. ## Issue linked Close #3364 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_star...
diff --git a/src/ansys/mapdl/core/mapdl_extended.py b/src/ansys/mapdl/core/mapdl_extended.py index 72ef308d62d..f960748b674 100644 --- a/src/ansys/mapdl/core/mapdl_extended.py +++ b/src/ansys/mapdl/core/mapdl_extended.py @@ -45,7 +45,6 @@ allow_iterables_vmin, allow_pickable_entities, check_deprecated_vt...
6
4
1
[{"id": "G0", "claim": "The MapdlRuntimeError message raised for a non-LIB lib argument reads \"only support\" and should read \"only supports\" as in \"The 'lib' argument only supports the 'LIB' value.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
ansys__pymapdl__4133
ansys/pymapdl
4,133
defect
db31b73fa66e77dcf313a46f5425da89c292975f
419b9e41d5dc3d6f2adb6df24d8a87cde238149d
refactor: adding type hints to result.py
## Description As the title. Adding type hints and checking numpydoc. ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys...
diff --git a/src/ansys/mapdl/core/reader/result.py b/src/ansys/mapdl/core/reader/result.py index ae5138af613..0bad9e0664a 100644 --- a/src/ansys/mapdl/core/reader/result.py +++ b/src/ansys/mapdl/core/reader/result.py @@ -25,7 +25,7 @@ import pathlib import socket import tempfile -from typing import TYPE_CHECKING, An...
7
3
0
[{"id": "G0", "claim": "The 'Entities' alias allows mixing str and int in one iterable, but the code raises a ValueError for mixed types, so the alias should be split or the constraint documented.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Resul...
null
ansys__pymapdl__4184
ansys/pymapdl
4,184
defect
cb066e338836488ae40eef3491f5d09448672251
b4440a08a1fa3a6af5d6b05a5d3f1cd11476202d
fix: reducing the amount of gRPC calls in get and add test for get command
## Description As the title. ## Issue linked Close #4182 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_star...
diff --git a/src/ansys/mapdl/core/mapdl_extended.py b/src/ansys/mapdl/core/mapdl_extended.py index 2090ff4c2c9..e20c8296d5d 100644 --- a/src/ansys/mapdl/core/mapdl_extended.py +++ b/src/ansys/mapdl/core/mapdl_extended.py @@ -2125,9 +2125,12 @@ def get( command = f"*GET,{par},{entity},{entnum},{item1},{it1num},...
2
1
0
[{"id": "G0", "claim": "The condition `if not response:` may misidentify a valid empty-string response as a suppressed command, so it should check for None specifically or use a more explicit condition.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
ansys__pymapdl__4185
ansys/pymapdl
4,185
defect
cb066e338836488ae40eef3491f5d09448672251
35391cacfe60c0cae432abd5ddc078113b48a5f8
ci: add InProcess testing module
## Description Adding framework for testing MAPDL InProcess interface ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys...
diff --git a/tests/test_inprocess.py b/tests/test_inprocess.py new file mode 100644 index 00000000000..c9aff1823a1 --- /dev/null +++ b/tests/test_inprocess.py @@ -0,0 +1,144 @@ +# Copyright (C) 2016 - 2025 ANSYS, Inc. and/or its affiliates. +# SPDX-License-Identifier: MIT +# +# +# Permission is hereby granted, free of ...
9
8
2
[{"id": "G0", "claim": "Importing ON_LOCAL from conftest inside the fixture function is unusual and makes dependencies unclear; import it at the module level or pass it as a parameter instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using...
null
ansys__pymapdl__4196
ansys/pymapdl
4,196
defect
ec3cb1dd5d74f7f39e209aea53a85aa711e658ab
ff59545b6bdb91df09a229de1677b885f26ab727
refactor: use screenshot to show plots
## Description As the title. Using `screenshot` for all plot methods. It also simplifies the code reducing duplicity. ## Issue linked Required by #4204 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pyma...
diff --git a/src/ansys/mapdl/core/mapdl_core.py b/src/ansys/mapdl/core/mapdl_core.py index 320e84abed9..f735a257b42 100644 --- a/src/ansys/mapdl/core/mapdl_core.py +++ b/src/ansys/mapdl/core/mapdl_core.py @@ -192,6 +192,7 @@ "NPLO", "PLES", "PLNS", + "PLVA", "PSDG", "SECP", "SPGR", @@ -...
1
1
1
[{"id": "G0", "claim": "The de-nested if/else in the screenshot method drops the else gate, so the `if savefig is True:` branch now also executes for any truthy non-boolean value of savefig instead of only the string/bool cases handled before, and the original else-based control flow should be restored or the condition...
null
ansys__pymapdl__4293
ansys/pymapdl
4,293
defect
e6ca79f7083decfabbaa5f68da47bb69669573cd
46b1bbd08e5512420dc94c67c0ba55079885f187
fix(cli): check access process on windows
## Description When running on windows, the process `username()` can contain the DOMAIN which makes the comparison fail. ## Issue linked None ## Checklist - [ ] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] ...
diff --git a/src/ansys/mapdl/core/cli/stop.py b/src/ansys/mapdl/core/cli/stop.py index 2479ab6d824..a540455b1d4 100644 --- a/src/ansys/mapdl/core/cli/stop.py +++ b/src/ansys/mapdl/core/cli/stop.py @@ -194,6 +194,8 @@ def _can_access_process(proc): # Check if we can access basic process info and if it belongs t...
4
2
1
[{"id": "G0", "claim": "On Windows, the comparison should normalize both usernames (current_user as well as process_user) so the domain prefix is stripped consistently; germa89 also wonders whether the domain should be checked at all.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introd...
null
ansys__pymapdl__4322
ansys/pymapdl
4,322
defect
8efc45ea2bec7c3823d57b2edb5e263aa7f0a309
95ad689e17583252a5164a2d24201050f95c2501
fix(tests): update pytest arguments for consistency and clarity in local and remote workflows
## Description As the title. ## Issue linked Close #4313 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stable/getting_sta...
diff --git a/.github/workflows/test-local.yml b/.github/workflows/test-local.yml index bce0a912d94..45558d1cc3c 100644 --- a/.github/workflows/test-local.yml +++ b/.github/workflows/test-local.yml @@ -126,7 +126,7 @@ jobs: TESTING_MINIMAL: ${{ inputs.testing-minimal }} P_SCHEMA: "/ansys_inc/v241/ansys/ac4...
1
1
0
[{"id": "G0", "claim": "The `--strict-markers` flag appears twice in the pyproject.toml addopts list; remove the duplicate entry to avoid redundancy.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ansys__pymapdl__4354
ansys/pymapdl
4,354
defect
bf6115eed1b304ecfb9e4b54a0316268da84d0d8
008be79b515cbca772c9a596ac4ddea89ff25e5b
feat: implement new gRPC transports
## Description Implement new GRPC transports ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyansys.com/version/stab...
diff --git a/.ci/build_matrix.sh b/.ci/build_matrix.sh index 9f049203c4a..46b883cc109 100755 --- a/.ci/build_matrix.sh +++ b/.ci/build_matrix.sh @@ -7,6 +7,7 @@ # List of versions versions=( # if added more "latest", change "$LATEST" + 'v25.2-pre1-ubuntu-cicd' 'v25.2-ubuntu-cicd' 'latest-ubuntu-stu...
3
2
1
[{"id": "G0", "claim": "Correct the spelling of 'wnau' to 'wnua' in the transport_mode parameter documentation of launch_mapdl.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid pinning ansys-tools-common to ==0.3.0 in pyproject.toml; leave the...
null
ansys__pymapdl__4399
ansys/pymapdl
4,399
defect
36b46376c4554f395b1b18182ec77b43cde320de
9dd4dbdb2b613ee1b57db614ad7b646ef8cb747e
ci: removing student versions
## Description As the title. The student versions have expired. ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.docs.pyans...
diff --git a/.ci/build_matrix.sh b/.ci/build_matrix.sh index 09c848f22a7..3b7f5317a1a 100755 --- a/.ci/build_matrix.sh +++ b/.ci/build_matrix.sh @@ -7,56 +7,20 @@ # List of versions versions=( # if added more "latest", change "$LATEST" - 'v25.2-pre1-ubuntu-cicd' 'v25.2-ubuntu-cicd' - 'latest-ubuntu-st...
2
1
0
[{"id": "G0", "claim": "The skip reason string still claims tests may be skipped due to \"running on student\" although the skip condition no longer checks for a student environment, producing misleading output whenever IGNORE_POOL is false; update the reason to reference only IGNORE_POOL (or reintroduce the student co...
null
ansys__pymapdl__4400
ansys/pymapdl
4,400
defect
36b46376c4554f395b1b18182ec77b43cde320de
582fa581a4931782473751a04a193de868d31da4
fix: AFLIST fails on second call due to locked temporary file
## Description `aflist()` fails on second invocation with `MapdlFileNotFoundError` due to `aflist.tmp` remaining locked after first execution in gRPC mode. The internal `/rmtmp` command doesn't properly release the file. **Changes:** - Modified `aflist()` to explicitly delete `aflist.tmp` using `slashdelete()` after ...
diff --git a/src/ansys/mapdl/core/_commands/preproc/database.py b/src/ansys/mapdl/core/_commands/preproc/database.py index c1729674b1c..f3208721b02 100644 --- a/src/ansys/mapdl/core/_commands/preproc/database.py +++ b/src/ansys/mapdl/core/_commands/preproc/database.py @@ -40,7 +40,10 @@ def aflist(self, **kwargs): ...
8
6
2
[{"id": "G0", "claim": "Calling self.run() a second time for the cleanup typically overwrites user-visible state such as mapdl.last_response with the /delete output rather than the AFLIST output, so the cleanup should preserve and restore the last_* state around it.", "category": "correctness", "verdict": "opposed", "p...
null
ansys__pymapdl__4406
ansys/pymapdl
4,406
defect
6a41483b4d9c526888b9ccee6d87511fbf5ffe58
17ba6ef0ed3c5677aad1b88d50543a382873fde4
feat: convert `info.units` to dictionary with case-insensitive access
## Description `mapdl.info.units` previously returned a long, unparsed string that required manual parsing. Now returns a `UnitsDict` object that behaves as a case-insensitive dictionary while preserving pretty-print output. **Changes:** - Implemented `UnitsDict` class extending `dict` with: - Case-insensitive key ...
diff --git a/.github/actions/build-matrix/action.yml b/.github/actions/build-matrix/action.yml index 74663434678..fbe71c94cc3 100644 --- a/.github/actions/build-matrix/action.yml +++ b/.github/actions/build-matrix/action.yml @@ -59,7 +59,7 @@ runs: - uses: tspascoal/get-user-teams-membership@57e9f42acd78f4d0f496...
3
2
1
[{"id": "G0", "claim": "Add the 'copilot' user to the list of skipped users when generating build matrices.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The build-matrix conditions should test the actor name 'Copilot' rather than 'copilot-swe-ag...
null
ansys__pymapdl__4410
ansys/pymapdl
4,410
defect
88a98f60b8a8d07b309783a0146500d0e3517154
ee134f7ea8e0a9ad72717b4769a5333afaa0a7e9
fix: handle permission errors when listing MAPDL instances
## Description `pymapdl list` crashes with `PermissionError` when attempting to access `proc.cmdline()` or `proc.cwd()` on processes owned by other users. This PR implements safe fallback handling for permission errors when accessing process information. ### Changes **Shared helpers (`src/ansys/mapdl/core/cli/helper...
diff --git a/src/ansys/mapdl/core/cli/core.py b/src/ansys/mapdl/core/cli/core.py index 23431ed3d20..a832a3ee8e1 100644 --- a/src/ansys/mapdl/core/cli/core.py +++ b/src/ansys/mapdl/core/cli/core.py @@ -25,7 +25,7 @@ This module avoids importing heavy dependencies like pandas, numpy, etc. """ -from typing import Any,...
2
2
0
[{"id": "G0", "claim": "The new `_get_process_user` helper contains dead code — the `current_user = getpass.getuser()` assignment is never used and the function-local `import getpass` is unneeded — and the reviewer left empty suggestion blocks asking for those lines to be deleted.", "category": "maintainability", "verd...
null
ansys__pymapdl__4425
ansys/pymapdl
4,425
defect
bb06c08cf101311a1a04076a39eca13efd73c694
365dd1498b24403d1afd49dbb92fc34de15b0ae0
test: improving tests performance
## Description Some changes to improve testing: - Not checking for extra MAPDL instances unless we are on DEBUG_TESTING - Do not recreate the glyphs on each call. ## Issue linked Close #3568 ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_sta...
diff --git a/doc/changelog.d/4425.test.md b/doc/changelog.d/4425.test.md new file mode 100644 index 00000000000..8570b6bc11b --- /dev/null +++ b/doc/changelog.d/4425.test.md @@ -0,0 +1 @@ +Improving tests performance diff --git a/src/ansys/mapdl/core/plotting/plotting_defaults.py b/src/ansys/mapdl/core/plotting/plottin...
3
1
0
[{"id": "G0", "claim": "The inline note \"Temporal patch pending on #3568\" is stale now that the PR rehabilitates the mitigation and closes #3568, so the comment should be removed/updated (or, if the issue is unresolved, the PR linking adjusted).", "category": "documentation", "verdict": "supported", "priority": "P2",...
null
ansys__pymapdl__4454
ansys/pymapdl
4,454
defect
88e6efc1a6a872c885918aef77c2e4facb31c204
48b4991161cdd20718fe066c30ce6f717253a7db
test: avoiding using mapdl fixture using debugging tests
## Description As the title. It should speed up testing those modules. ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes locally](https://mapdl.doc...
diff --git a/doc/changelog.d/4454.test.md b/doc/changelog.d/4454.test.md new file mode 100644 index 00000000000..10dcc81d3f9 --- /dev/null +++ b/doc/changelog.d/4454.test.md @@ -0,0 +1 @@ +Avoiding using mapdl fixture when it is not needed in the module. diff --git a/tests/test_convert.py b/tests/test_convert.py index ...
2
2
1
[{"id": "G0", "claim": "The no-op override of the global autouse run_before_and_after_tests fixture is duplicated across multiple test modules in this PR; it should be centralized (e.g. in tests/conftest.py as an opt-in fixture/marker enabled per module) instead of copy/pasted.", "category": "maintainability", "verdict...
null
ansys__pymapdl__4455
ansys/pymapdl
4,455
defect
88e6efc1a6a872c885918aef77c2e4facb31c204
d98450a5f39aab11b3c59ed9016d884b14d21fbc
refactor: remove RUNNING_TESTS global flag and running_test fixture
## Summary Removes the `RUNNING_TESTS` global boolean and the `Running_test` / `running_test` test infrastructure that were implemented as an early, ad-hoc approach to controlling download behaviour during tests. Modern `unittest.mock.patch` achieves the same isolation without leaking test concerns into production cod...
diff --git a/doc/changelog.d/4455.miscellaneous.md b/doc/changelog.d/4455.miscellaneous.md new file mode 100644 index 00000000000..423f86a5c34 --- /dev/null +++ b/doc/changelog.d/4455.miscellaneous.md @@ -0,0 +1 @@ +Remove RUNNING_TESTS global flag and running_test fixture diff --git a/src/ansys/mapdl/core/__init__.py ...
3
1
1
[{"id": "G0", "claim": "The download tests patch _retrieve_file to return True and assert a boolean, while the download functions return path strings, so the tests should patch a dummy path and assert that path is returned.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
ansys__pymapdl__4461
ansys/pymapdl
4,461
defect
983b57da9204e8fc2bd3e9b4096c9b75716fea16
191f51c68c94d1ea5debc7eb777711864adcb33c
fix: unclosed file handle resource leak in subprocess launcher
## Problem The `launch_grpc()` function in `src/ansys/mapdl/core/launcher.py` was opening a file for stdout redirection but never closing it: ```python stdout = open(output_file, "wb", 0) # todo: handle file closing ``` This caused file descriptor exhaustion on long-running or repeated MAPDL launches, preve...
diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index c0f8c1398ac..a8660097e8f 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -596,8 +596,10 @@ def launch_grpc( "\n============" ) + stdout_file_handle = None if mapdl_outpu...
4
4
1
[{"id": "G0", "claim": "In `_kill_process()` the kill condition is inverted — `process.kill()` runs only when `process.poll() is not None` (already terminated), so a live MAPDL process is typically not killed while the cleanup block still proceeds to close the stdout redirect handle; flip the condition to kill when `po...
null
ansys__pymapdl__4470
ansys/pymapdl
4,470
defect
6aeeee1f6a49df937d96db86ac10dea5210ed2b0
f864ebcc22a10e19346a95cb4c201f6369262866
fix: small fixes discovered in other PRs
## Description - **fix: missing empty lines** - **fix: lgwrite download issue** - **fix: small fixes from refactor/launcher.py branch. Removes tmp file creation in working directory.** - **fix: small fixes from 'feat/docker-testing-infrastructure'** ## Issue linked From #4416 and #4274 ## Checklist - [x] I have vis...
diff --git a/.gitignore b/.gitignore index 4394d9ffa7f..20bbc913b83 100755 --- a/.gitignore +++ b/.gitignore @@ -42,21 +42,21 @@ doc/source/images/auto-generated/* # Testing +./Testing/ +.benchmarks/ +.coverage +.pytest_cache/ +.tox/ +*,cover +coverage.xml factory/ -Testing/ -UnitTesting/ -TODO +test-output.xml ...
2
2
2
[{"id": "G0", "claim": "test_download_result hardcodes file.rst/file.rth although download_result() selects files based on mapdl.jobname, so the assertions and cleanup can fail or pollute the working directory when the session jobname is not 'file'.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
ansys__pymapdl__4475
ansys/pymapdl
4,475
defect
cfcefe94262c2e1f493cab0728d58e1926de6cce
742f43bd9a9b9e739d87450cf402b4d47331cdee
fix: pool module missing ip/port options
## Description As the title. The `pool` module was missing some options for the IP/port configuration. ## Issue linked NA ## Checklist - [x] I have visited and read [Develop PyMAPDL](https://mapdl.docs.pyansys.com/version/stable/getting_started/develop_pymapdl.html#develop-pymapdl). - [x] I have [tested my changes l...
diff --git a/doc/changelog.d/4475.fixed.md b/doc/changelog.d/4475.fixed.md new file mode 100644 index 00000000000..4090da39105 --- /dev/null +++ b/doc/changelog.d/4475.fixed.md @@ -0,0 +1 @@ +Pool module missing ip/port options diff --git a/src/ansys/mapdl/core/pool.py b/src/ansys/mapdl/core/pool.py index e3413143e50.....
1
1
1
[{"id": "G0", "claim": "In `_set_n_instance_ip_port_args`, the single-IP fallback branches wrap any non-list `port` value into a one-element list, silently accepting unsupported types (e.g. strings) contrary to the declared `int | list[int] | None` API; add a check accepting only `None` or `int` and raising `TypeError`...
null
ansys__pymapdl__4495
ansys/pymapdl
4,495
defect
f2fd8168cbbf1f9483ff50d0320dac1bed0988b4
dd230f76d9e76be190a3a44093d4f2bb05029134
test: add UDS transport launch test for local Linux environments
## Description Fix the `uds_service` issue. ## Issue linked Close #4435
diff --git a/doc/changelog.d/4495.test.md b/doc/changelog.d/4495.test.md new file mode 100644 index 00000000000..b5dc982f482 --- /dev/null +++ b/doc/changelog.d/4495.test.md @@ -0,0 +1 @@ +Add UDS transport launch test for local Linux environments diff --git a/tests/test_launcher.py b/tests/test_launcher.py index 949cd...
2
1
1
[{"id": "G0", "claim": "If launch_mapdl() raises, the finally block calls mapdl_.exit() on an unbound variable, raising UnboundLocalError that masks the real failure; initialize mapdl_ = None before the try and guard the cleanup.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
ansys__pymapdl__4516
ansys/pymapdl
4,516
defect
677a571fb7ee3a26e02601a2a8d1b68c0ce4eeb6
12cbc9354a13c52a484c8f70b9facbc11d97b3c4
feat: add `pymapdl run` CLI subcommand
## Summary Exposes MAPDL commands through the PyMAPDL CLI, enabling shell-script and LLM/MCP-agent workflows without writing Python: ```sh pymapdl start pymapdl run "/prep7\nBLOCK,0,1,0,1,0,1,0,1\nSAVE" pymapdl stop ``` ## Motivation An LLM acting as a MAPDL assistant (e.g. via an MCP tool) can use this...
diff --git a/doc/changelog.d/4516.added.md b/doc/changelog.d/4516.added.md new file mode 100644 index 00000000000..7531ea8a815 --- /dev/null +++ b/doc/changelog.d/4516.added.md @@ -0,0 +1 @@ +Add \pymapdl run\ CLI subcommand diff --git a/src/ansys/mapdl/core/cli/__init__.py b/src/ansys/mapdl/core/cli/__init__.py index ...
3
3
2
[{"id": "G0", "claim": "MOCK_OUTPUT contains a typo ('MADPL' instead of 'MAPDL'), which makes the test data confusing and can hide copy/paste mistakes when asserting expected output.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cli_runner ...
null
ansys__pymapdl__4519
ansys/pymapdl
4,519
defect
862e8cb1760e9376a195816952f607ae1b06e796
c7f26410fb23667685e324c8cd622efc92077676
fix: test isolation to resolve v25.1 remote crashes
## Description MAPDL was crashing with a **Segmentation Violation in `LoadElements`** during CI when running against the v25.1 remote instance. The crash was triggered by PyMAPDL's `_save_selection` context manager encountering stale or inconsistent database state left over from a previous test in the shared session. ...
diff --git a/.github/workflows/test-remote.yml b/.github/workflows/test-remote.yml index 906da4f7f9a..96a0fa70a11 100644 --- a/.github/workflows/test-remote.yml +++ b/.github/workflows/test-remote.yml @@ -93,7 +93,7 @@ jobs: PYANSYS_OFF_SCREEN: True PYMAPDL_DB_PORT: 21002 # default won't work on GitHub r...
4
3
1
[{"id": "G0", "claim": "The workflow's PYMAPDL_DEBUG_TESTING environment variable should be set back to false rather than left enabled at true.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The temporary 'Print logs' debugging step added to the wor...
null
ansys__pymapdl__4521
ansys/pymapdl
4,521
defect
862e8cb1760e9376a195816952f607ae1b06e796
414fd2cb1a8d0017f57ed9a707f4d9687c75a058
feat: rename pymapdl run to pymapdl exec
## Summary Rename the pymapdl run CLI subcommand to pymapdl exec to better align with docker exec semantics. ## Changes ### Source - cli/run.py -> cli/exec.py: function renamed run() -> exec_cmd() to avoid shadowing the Python builtin exec - cli/__init__.py: import updated, command registered as exec ### ...
diff --git a/doc/changelog.d/4516.added.md b/doc/changelog.d/4516.added.md index 322a06652df..a7e3b325821 100644 --- a/doc/changelog.d/4516.added.md +++ b/doc/changelog.d/4516.added.md @@ -1 +1 @@ -Add \`pymapdl run\` CLI subcommand +Add `pymapdl exec` CLI subcommand (renamed from `pymapdl run` to align with `docker ex...
7
5
0
[{"id": "G0", "claim": "Renaming the CLI subcommand from `run` to `exec` without keeping a deprecated alias is a user-facing breaking change that makes existing scripts fail with \"No such command\"; the pull request should keep `run` as a deprecated alias forwarding to `exec_cmd` with a deprecation warning, at least f...
null
ansys__pymapdl__4531
ansys/pymapdl
4,531
defect
eaedc6ae950d6ab26f971c0a4321cb5e2150704f
21c8e01a4155fa7a3855bb61bf04b67c2b714f52
fix: cleaning between tests
## Description Continue the work in #4519. It seems more errors are appearing [here](https://github.com/ansys/pymapdl/actions/runs/24037304027/job/70100461576?pr=4529#step:15:4293) hence the continuation of this work.
diff --git a/doc/changelog.d/4531.fixed.md b/doc/changelog.d/4531.fixed.md new file mode 100644 index 00000000000..e7fc4fa8677 --- /dev/null +++ b/doc/changelog.d/4531.fixed.md @@ -0,0 +1 @@ +Cleaning between tests diff --git a/tests/test_cli.py b/tests/test_cli.py index 8a8c9414f3d..ec5b821baf0 100644 --- a/tests/test...
2
1
0
[{"id": "G0", "claim": "The conditional skipping the `arg not in kwargs` assertion for `start_instance` makes the test weaker and could hide a regression if `start_instance` accidentally starts being forwarded; the test should assert `arg not in kwargs` for `start_instance` as well.", "category": "testing", "verdict": ...
null
ansys__pymapdl__4532
ansys/pymapdl
4,532
defect
eaedc6ae950d6ab26f971c0a4321cb5e2150704f
35109aecc88574e4d1a2c236b222d2508705ea59
fix: restore `override` lock-file handling after launcher refactor
## Description The `override` argument in `launch_mapdl()` was silently broken since PR #4416 refactored `launcher.py` into modules. The `check_lock_file()` logic was never ported, so `override=True` had no effect: a stale `.lock` file left by a crashed MAPDL session would block any subsequent launch. ### Changes - ...
diff --git a/doc/changelog.d/4531.fixed.md b/doc/changelog.d/4531.fixed.md new file mode 100644 index 00000000000..e7fc4fa8677 --- /dev/null +++ b/doc/changelog.d/4531.fixed.md @@ -0,0 +1 @@ +Cleaning between tests diff --git a/doc/changelog.d/4532.fixed.md b/doc/changelog.d/4532.fixed.md new file mode 100644 index 000...
4
2
2
[{"id": "G0", "claim": "Relaxing the assertion for start_instance (if arg != \"start_instance\": assert arg not in kwargs) can mask a regression where the CLI forwards start_instance to launch_mapdl_process() despite warning that it is ignored; keep the same assert arg not in kwargs behaviour for start_instance as for ...
null
ant-design__ant-design-mobile__5413
ant-design/ant-design-mobile
5,413
defect
1b78356c2625d07b4aea17fd933c576585211fb0
79444b8dd4f6833a53e3b11d9bc8cf9644cb43ae
fix: `onChange` prop should only be called when the previous and next values are different
Close #5409
diff --git a/src/components/cascader-view/tests/cascader-view.test.tsx b/src/components/cascader-view/tests/cascader-view.test.tsx index 34d9acdffd..87d7b26bb8 100644 --- a/src/components/cascader-view/tests/cascader-view.test.tsx +++ b/src/components/cascader-view/tests/cascader-view.test.tsx @@ -29,7 +29,7 @@ describ...
2
2
1
[{"id": "G0", "claim": "The new cascader test assertion `expect(onTabsChange).not.toBeCalled()` should be `toBeCalled`, since switching to the next tab should trigger `onTabsChange`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The demo should not...
null
ant-design__ant-design-mobile__5568
ant-design/ant-design-mobile
5,568
defect
ca85f764eaf9adc0d71be0702fee44ba01f4cc52
44e18167406a65291440af86561b2242f33459c8
fix(Ellipsis): fix error when using with display flex and add doc about `word-break`
close #5567
diff --git a/src/components/ellipsis/ellipsis.tsx b/src/components/ellipsis/ellipsis.tsx index 76055329b0..542f670c9c 100644 --- a/src/components/ellipsis/ellipsis.tsx +++ b/src/components/ellipsis/ellipsis.tsx @@ -45,6 +45,7 @@ export const Ellipsis: FC<EllipsisProps> = p => { function calcEllipsised() { const...
2
2
1
[{"id": "G0", "claim": "Defaulting the ellipsis measurement container's word-break to break-all is inappropriate, and per the earlier discussion (issue #5499) the component should not force a word-break default — users should control it themselves.", "category": "design", "verdict": "supported", "priority": "P1", "scop...
null
ant-design__ant-design-mobile__5627
ant-design/ant-design-mobile
5,627
defect
fb39f3990d51bcc3254c8419e77c7683eb569225
28fc2447c7aeac6135f8ca35d8ea46716d9d90e0
enhance(ImageUploader): optimize image preview memory
fix #5625
diff --git a/src/components/config-provider/tests/config-provider.test.tsx b/src/components/config-provider/tests/config-provider.test.tsx index a8bc724704..4070556a77 100644 --- a/src/components/config-provider/tests/config-provider.test.tsx +++ b/src/components/config-provider/tests/config-provider.test.tsx @@ -23,6 ...
2
2
1
[{"id": "G0", "claim": "If `url` or `file` changes while the component stays mounted during rendering, the previously created object URL is never revoked, so the cleanup should be handled with useLayoutEffect instead of useUnmount.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
ant-design__ant-design-mobile__5642
ant-design/ant-design-mobile
5,642
defect
fb39f3990d51bcc3254c8419e77c7683eb569225
b6924194a09cf1176ed537481e9ea67f47f32a09
feat(ImageUploader): add `itemRender` prop
fix #5638
diff --git a/src/components/image-uploader/image-uploader.tsx b/src/components/image-uploader/image-uploader.tsx index e1959b117c..f68ee5aa25 100644 --- a/src/components/image-uploader/image-uploader.tsx +++ b/src/components/image-uploader/image-uploader.tsx @@ -49,6 +49,11 @@ export type ImageUploaderProps = { show...
2
1
0
[{"id": "G0", "claim": "The new prop `itemRender` should be renamed to `renderItem`, matching the `renderXXX` naming used elsewhere in the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A drag-and-drop demo combining the uploader with ...
null
ant-design__ant-design-mobile__5677
ant-design/ant-design-mobile
5,677
defect
37f45e0f949180b5807a251812e4599411730259
2ddc73752dfcedfb7f0d6c23f1c234d52aff2b9e
fix: Popover should close when screen move
fix #3497
diff --git a/src/components/popover/popover.tsx b/src/components/popover/popover.tsx index 5f192224ec..aeb025e169 100644 --- a/src/components/popover/popover.tsx +++ b/src/components/popover/popover.tsx @@ -69,7 +69,7 @@ export const Popover = forwardRef<PopoverRef, PopoverProps>((p, ref) => { const { mode = 'light'...
5
3
0
[{"id": "G0", "claim": "The manual `afterEach(cleanup)` in the new test file is unnecessary because RTL's cleanup runs automatically when the testing framework supports the afterEach global (as in Jest), so the line should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "...
null
ant-design__ant-design-mobile__5706
ant-design/ant-design-mobile
5,706
defect
7e5f74a7b6fd94a74145c6c82d3b48710f58287c
67084f75294eba849db90f1c9a278e03104e53c2
fix(Slider): value should be formatted when step is a decimal
Close #5704
diff --git a/src/components/cascader-view/cascader-view.tsx b/src/components/cascader-view/cascader-view.tsx index c05a400a6be..cac8ecf2d97 100644 --- a/src/components/cascader-view/cascader-view.tsx +++ b/src/components/cascader-view/cascader-view.tsx @@ -32,7 +32,7 @@ export type CascaderViewProps = { value?: Casc...
1
1
1
[{"id": "G0", "claim": "The new reverseValue formatting only takes the decimal length of step, so decimal values get force-aligned to step's precision: with value=1.5 & step=1 the value loses its decimal, and decimals of min/max (e.g. min=1.5 max=9.5) also need to be taken into account.", "category": "correctness", "ve...
null
ant-design__ant-design-mobile__5727
ant-design/ant-design-mobile
5,727
defect
235b52558382048892389b540803ffcf27693eec
38206609d1cd017424364caf8c09d11852fd491d
fix(ellipsis): content could be undefined
close #5726
diff --git a/src/components/ellipsis/ellipsis.tsx b/src/components/ellipsis/ellipsis.tsx index df7e59b96fc..1d280f21a1d 100644 --- a/src/components/ellipsis/ellipsis.tsx +++ b/src/components/ellipsis/ellipsis.tsx @@ -43,7 +43,7 @@ export const Ellipsis: FC<EllipsisProps> = p => { const [expanded, setExpanded] = useS...
1
1
0
[{"id": "G0", "claim": "Adding `content: ''` to the `defaultProps` around line 24 should be enough, instead of adding `?? ''` fallbacks to `props.content` inside the component.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ant-design__ant-design-mobile__5810
ant-design/ant-design-mobile
5,810
defect
16b9251e8bb147908c3211240d777c678640f6fd
4c8b97dd1b394dd00ebb3a8c35c66464bc34ca58
feat(NoticeBar): add `wrap` props
pr 改动想法: 1. 去除文本的`position:absolute`样式和最外层`height`样式,高度自适应; 2. 当`speed`为`0`时,将文本设为可换行; 3. 当文本设置为可换行时,`delay` 属性就没有必要了,应该直接渲染出换行的样子。 #5796
diff --git a/src/components/form/form.tsx b/src/components/form/form.tsx index a1066ff6889..0fa4d54b184 100644 --- a/src/components/form/form.tsx +++ b/src/components/form/form.tsx @@ -27,6 +27,7 @@ export type FormInstance = Pick< | 'isFieldsTouched' | 'resetFields' | 'setFields' + | 'setFieldValue' | 'se...
11
10
2
[{"id": "G0", "claim": "The NoticeBar still needs a property for multi-line display, as requested in issue #5796.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "speed cannot actually be 0 or negative because it makes the content disappear, and the auth...
null
ant-design__ant-design-mobile__5866
ant-design/ant-design-mobile
5,866
defect
56675ff887016ebec115666b2a7021d247d3a671
be61bd2da16605cf1a269a9a5719460bcf2f873d
fix(ImageUploader): upload failure due to duplicate tasks and value
fix #5833 原因 https://github.com/ant-design/ant-design-mobile/issues/5833#issuecomment-1334867453 说的很清楚了 不过这个 case 测试用例不太好加 - -
diff --git a/src/components/image-uploader/image-uploader.tsx b/src/components/image-uploader/image-uploader.tsx index 3612aca878..353a54b5c8 100644 --- a/src/components/image-uploader/image-uploader.tsx +++ b/src/components/image-uploader/image-uploader.tsx @@ -116,13 +116,15 @@ export const ImageUploader: FC<ImageUpl...
2
2
0
[{"id": "G0", "claim": "Calling filterDuplicateTasks in two places (the layout effect and the showUpload computation) means two loops whose performance is not good.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The upload button's ternary `props.ch...
null
ant-design__ant-design-mobile__5895
ant-design/ant-design-mobile
5,895
defect
41530773051f677a731cc0d1aa043f870dc738f9
6bb861c2f936c64984bb8d8495e1e08ed6084061
feat(Input): 支持原生 step 属性
input type 为 number 并且配置 min 属性时,输入小数,表单提交会提示 “输入有效值”,配置 step 属性即可解决这个问题
diff --git a/src/components/input/index.en.md b/src/components/input/index.en.md index 7894fe5623..5f75d954a0 100644 --- a/src/components/input/index.en.md +++ b/src/components/input/index.en.md @@ -34,7 +34,7 @@ The `Input` component is layout-independent. It only includes the most basic inp | readOnly | Whether it i...
1
1
1
[{"id": "G0", "claim": "The new `step` prop pass-through should get a corresponding test case.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ant-design__ant-design-mobile__6067
ant-design/ant-design-mobile
6,067
defect
dad620d3901117b6ffdd42d1701ec070435fedb9
c0f934bba7d211de3d2768f379074e99ddf8c363
enhance(CheckList): add extra props
- add `extra` prop to extra CheckList.Item right area
diff --git a/src/components/check-list/check-list-item.tsx b/src/components/check-list/check-list-item.tsx index 4ed5d93e6c..7e1d7110b0 100644 --- a/src/components/check-list/check-list-item.tsx +++ b/src/components/check-list/check-list-item.tsx @@ -32,10 +32,11 @@ export const CheckListItem: FC<CheckListItemProps> = ...
4
4
0
[{"id": "G0", "claim": "The `extra` prop type should not allow returning null, i.e. it should be `(active: boolean) => ReactNode`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested ternaries in the extra rendering are hard to read; refactor to a ...
null
ant-design__ant-design-mobile__6122
ant-design/ant-design-mobile
6,122
defect
ea660d807894623a1e703020ce47840220d964cb
cb8ff969c85f7d368022e632d787a342be1f05f0
fix(Upload): fix the order of upload doesn't correspond to the order of selected images
https://github.com/ant-design/ant-design-mobile/issues/5970
diff --git a/src/components/date-picker/date-picker-date-utils.ts b/src/components/date-picker/date-picker-date-utils.ts index 267add297d..9ba924c76f 100644 --- a/src/components/date-picker/date-picker-date-utils.ts +++ b/src/components/date-picker/date-picker-date-utils.ts @@ -1,4 +1,3 @@ -import { ReactNode } from 'r...
2
2
0
[{"id": "G0", "claim": "The pull request should add a test case for the upload-order fix.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should drop its expect(container).toMatchSnapshot() because it already asserts the upload order explici...
null
ant-design__ant-design-mobile__6131
ant-design/ant-design-mobile
6,131
defect
8520ef1cf2cacf4c74d27c66aa3def3f49078453
b782765d3b883472f4be907ca7ac7e0af9398af8
optimize: swiper onIndexChange 事件 和 react-spring api 同步执行
问题场景:现在代码中是监听 index 来触发 props.onIndexChange?.(index) 执行。当外部注册 onIndexChange 事件,根据最新的 index 设置当前激活的 SwiperItem 样式。面临的渲染时序将是这样的: react-spring、setIndex -> onIndexChange,在 onIndexChange 回调设置的样式将会比 react-spring 慢一拍,在安卓机低端机上特别明显,有很强的卡顿感; PR 修改:在执行 react-spring 动画时同时执行 onIndexChange,保证在同一拍重渲染;同时给当前激活的 SwiperItem 增加样式,方便使用...
diff --git a/src/components/swiper/swiper.tsx b/src/components/swiper/swiper.tsx index 991e423456..8f61a296a3 100644 --- a/src/components/swiper/swiper.tsx +++ b/src/components/swiper/swiper.tsx @@ -20,7 +20,7 @@ import PageIndicator, { PageIndicatorProps } from '../page-indicator' import { staged } from 'staged-compo...
1
1
1
[{"id": "G0", "claim": "A test case should be added for the new onIndexChange behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ant-design__ant-design-mobile__6155
ant-design/ant-design-mobile
6,155
defect
dbd2783166b76a50f3cd8cf8249ee2c73cddb96c
4236655574cdf6762513f5b87a0f2ff040118089
enhance: ellipsis display glint
#6063 `root` 被`display`为`none` 时,`originStyle` 的 `width` 计算有误,导致 `container` 容器处理完的 文本塞进 `root` 后出现 抖动闪烁
diff --git a/src/components/ellipsis/ellipsis.tsx b/src/components/ellipsis/ellipsis.tsx index 8a0650bd73..355f82f1c3 100644 --- a/src/components/ellipsis/ellipsis.tsx +++ b/src/components/ellipsis/ellipsis.tsx @@ -56,18 +56,20 @@ export const Ellipsis: FC<EllipsisProps> = p => { function calcEllipsised() { con...
2
1
0
[{"id": "G0", "claim": "Just removing the line `if (!root.offsetParent) return` should be enough — when display is 'none', root.offsetParent is null, so the content is not processed and stays complete.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a c...
null
ant-design__ant-design-mobile__6284
ant-design/ant-design-mobile
6,284
defect
bf44a5c865da5e88b43ffd21bcaa6342f840c887
efdefc45d72081e105dcc089abfc66bd797032d2
enhance: passive and preventDefault coexist repair
issue #6282 加的判断是这个 preventDefault 的 https://github.com/ant-design/ant-design-mobile/blob/master/src/utils/use-lock-scroll.ts#L68 下面这个 preventDefault 应该不用加吧?跟这个 PR 有关 #5738 https://github.com/ant-design/ant-design-mobile/blob/master/src/utils/use-lock-scroll.ts#L48
diff --git a/src/utils/use-lock-scroll.ts b/src/utils/use-lock-scroll.ts index 9c5e95ea14..c3453ade96 100644 --- a/src/utils/use-lock-scroll.ts +++ b/src/utils/use-lock-scroll.ts @@ -65,7 +65,8 @@ export function useLockScroll( !(parseInt(status, 2) & parseInt(direction, 2)) ) { if (event.cancelable)...
1
1
0
[{"id": "G0", "claim": "The touch handler should use the suggested form `if (event.cancelable && supportsPassive)` instead of the added `supportsPassive && event.preventDefault()` for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ant-design__ant-design-mobile__6589
ant-design/ant-design-mobile
6,589
defect
cf550e43989cbe9f0cc2c78cb84dd57ac5b4fff9
7745a823bb420e7e283f5b477986d761b3dc8644
feat: add scrollReverse props, autoplay reverse
when I want auto play from right to left or top to bottom, it's useful
diff --git a/src/components/swiper/swiper.tsx b/src/components/swiper/swiper.tsx index 3f602ad022..f25f2da8f2 100644 --- a/src/components/swiper/swiper.tsx +++ b/src/components/swiper/swiper.tsx @@ -45,6 +45,7 @@ export type SwiperProps = { defaultIndex?: number allowTouchMove?: boolean autoplay?: boolean + s...
2
2
1
[{"id": "G0", "claim": "The reverse behaviour should be folded into the existing `autoplay` prop as `autoplay?: boolean | 'reverse'` instead of adding a separate `scrollReverse` prop.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'auto play reverse'...
null
ant-design__ant-design-mobile__6683
ant-design/ant-design-mobile
6,683
defect
479999391876fb27bba08331bc990a83d5266c10
5dca297fdff21aa39fe31ae034af8380633f769d
feat(Card): icon prop
- 增加 icon 属性,用于在 Card 标题左侧展示图标。 - 同时给 extra 也包裹一个带 className 的 div 方便控制间距和其他样式。 - 增加了一个 CSS 变量 `--adm-card-header-gap` 控制 icon,header,extra 之间的空隙。 - 单元测试的中文改成英文,让项目更加国际化。
diff --git a/src/components/card/card.less b/src/components/card/card.less index 9b16b8f1a5a..ba31f08a360 100644 --- a/src/components/card/card.less +++ b/src/components/card/card.less @@ -9,6 +9,7 @@ display: flex; justify-content: space-between; align-items: center; + gap: var(--adm-card-header-gap,...
2
2
0
[{"id": "G0", "claim": "The test's `title={'title'}` (a JSX expression container around a string, originally written as `{''}`) should be simplified to the plain string literal `title=\"title\"`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Ad...
null
ant-design__ant-design-mobile__6702
ant-design/ant-design-mobile
6,702
defect
7d997321c2db26ecb0bd5cff14dc21180db4b6c0
6454b836fbb9ecfd89e236c68cc1776b205447e1
feat(TabBar): add onClick props to the TabBar.Item
resolve #6701
diff --git a/src/components/tab-bar/demos/demo1.tsx b/src/components/tab-bar/demos/demo1.tsx index b638da8205..2d04c51457 100644 --- a/src/components/tab-bar/demos/demo1.tsx +++ b/src/components/tab-bar/demos/demo1.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react' -import { Badge, TabBar } from 'antd-mobile'...
4
4
2
[{"id": "G0", "claim": "The new 'Item 点击事件' demo block should not be specially added to demo1.tsx — keep the demo simple and guarantee the onClick behaviour through tests instead.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Toast import added to ...
null
ant-design__ant-design-mobile__6797
ant-design/ant-design-mobile
6,797
defect
495be63ad3468d17ada18a911ecb9f25c5235d4f
13b2c068ebfce4376f6b20f896ce1cb11ad59ed4
fix(Ellipsis): Handle some post-update issues
fix #6792 **关于第一个文本省略字数错误的问题** 我分析了一下,其实是setWalkingIndexes设置的值最后被赋值导致 第一次调用正常计算,然后第二次由useResizeEffect触发,先setStatus然后setWalkingIndexes,进入useLayoutEffect计算PREPARE时,此时walkingIndexes的值还是上一次的值,然后进入MEASURE_WALKING,执行了一次diff就等于0,然后renderContent,这时setWalkingIndexes初始化设置的值生效了,因为state是STABLE_ELLIPSIS,然后初始化的值变成渲染了一半的文本,所以文...
diff --git a/src/components/ellipsis/tests/ellipsis.test.tsx b/src/components/ellipsis/tests/ellipsis.test.tsx index 8cb1738abb..2e8414e915 100644 --- a/src/components/ellipsis/tests/ellipsis.test.tsx +++ b/src/components/ellipsis/tests/ellipsis.test.tsx @@ -17,7 +17,8 @@ describe('Ellipsis', () => { const t...
2
1
1
[{"id": "G0", "claim": "Moving setWalkingIndexes out of startMeasure breaks the startup-phase sync with startMeasure, so the reviewer asks to keep the +0.5 change without relocating setWalkingIndexes — suggesting wrapping both state updates in unstable_batchedUpdates so they start simultaneously.", "category": "correct...
null
ant-design__ant-design-mobile__6880
ant-design/ant-design-mobile
6,880
defect
147c0a8e6c0ba63a1d114a7edc433278a153ed19
a7fddf537edf9db1ce82ea8c8a2c37342122b729
feature(DatePicker): renderLabel add selected parameter
resolve #6867
diff --git a/src/components/date-picker-view/date-picker-view.tsx b/src/components/date-picker-view/date-picker-view.tsx index 1d0d9c4dc7..568f2c3d58 100644 --- a/src/components/date-picker-view/date-picker-view.tsx +++ b/src/components/date-picker-view/date-picker-view.tsx @@ -1,24 +1,28 @@ -import React, { useCallbac...
2
2
1
[{"id": "G0", "claim": "The third renderLabel parameter should be changed to `info: { selected: boolean }` instead of a bare `selected: number`, otherwise the parameter list will keep growing.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In useRenderLa...
null
ant-design__ant-design-mobile__6895
ant-design/ant-design-mobile
6,895
defect
38b028f2bd1e9c59325accef7f665e826e917dca
86b0743429e60c453cf951915ae03939f65575d2
feat(Tabs): support get focus while navigating with keyboard TAB key
- 支持 [https://github.com/ant-design/ant-design-mobile/issues/6835](https://github.com/ant-design/ant-design-mobile/issues/6835) - 添加键盘left 和 right 以满足 无障碍(a11y / accessibility)要求 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **新功能** - 标签组件现已支持键盘导航,可通过左右方向键...
diff --git a/src/components/tabs/tabs.tsx b/src/components/tabs/tabs.tsx index ff3cec15f1..a408efc419 100644 --- a/src/components/tabs/tabs.tsx +++ b/src/components/tabs/tabs.tsx @@ -1,17 +1,17 @@ -import React, { isValidElement, useRef } from 'react' -import type { FC, ReactNode, ReactElement } from 'react' +import { ...
8
4
3
[{"id": "G0", "claim": "Keyboard navigation should skip disabled tabs; the current implementation can move to a disabled tab that cannot be activated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keyboard navigation lacks RTL support; in RTL mode ...
null
ant-design__ant-design-mobile__6897
ant-design/ant-design-mobile
6,897
defect
5e063e87d8cd06ce047d0be5bfd9a6922dc805e5
eda2c05147084bfdb4fc6886b6a657decd09ed53
feat: 默认禁用光标位置可调整,支持通过 touchmove 调整光标位置
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **新功能** * VirtualInput 组件新增可选属性 `cursor`,支持用户通过点击字符或触摸拖动调整光标位置,默认值为 `{ movable: false }`(不可调整)。 * **样式** * 优化光标动画样式,新增拖动状态下禁用光标闪烁效果。 * **文档** * 更新 VirtualInput 组件文档,补充 `cursor` 属性说明。 * **测试** * 增加光标位置触摸拖动相关...
diff --git a/src/components/virtual-input/index.zh.md b/src/components/virtual-input/index.zh.md index c055132b90..72bb0cc088 100644 --- a/src/components/virtual-input/index.zh.md +++ b/src/components/virtual-input/index.zh.md @@ -23,6 +23,7 @@ | onFocus | 获得焦点时触发 | `() => void` | - | | placeholder | 提示文本 | `string` ...
16
3
0
[{"id": "G0", "claim": "Avoid the `any` type on touchDataRef/charRef/charWidthRef/caretRef and use concrete type definitions for type safety.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Extract the hardcoded touch thresholds (20px distance, t...
null
ant-design__ant-design-mobile__6924
ant-design/ant-design-mobile
6,924
defect
16cc8d7dc7f3dcbb1148977125b6a211f50d499a
38d3c28e1c80151fd0b00845dd8e2b23f1f9cef9
Feat/add props custom cell classname
add props custom cell classname <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **新功能** * 日历组件新增 `cellRender` 属性,支持通过自定义渲染函数灵活定制日期单元格内容。 * 新增示例展示如何基于日期类型(周末、节假日、每月第一天、过去日期)使用 `cellRender` 自定义单元格样式。 * **文档** * 日历组件中英文文档新增 `cellRender` 属性说明及示例。 * **测试** * ...
diff --git a/src/components/calendar/calendar.en.md b/src/components/calendar/calendar.en.md index d6f92ad067..2c3bb6355f 100644 --- a/src/components/calendar/calendar.en.md +++ b/src/components/calendar/calendar.en.md @@ -22,30 +22,22 @@ When the user needs to enter a date, he can select it in the pop-up date panel. ...
7
4
3
[{"id": "G0", "claim": "The separator row of the props table in calendar.en.md carries dozens of pipe columns instead of five, which breaks the Markdown table's rendering; the bot asks to restore a five-column separator row.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
ant-design__ant-design-mobile__6926
ant-design/ant-design-mobile
6,926
defect
16cc8d7dc7f3dcbb1148977125b6a211f50d499a
9e8c2809f000ce8b66f60fbfd8fa0852ada1f831
fix: 修正数字键盘在安卓 talkback 下可读不可点的问题
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **功能优化** * 优化数字键盘删除键的长按连续删除体验,提升可访问性,特别是对Android TalkBack的支持。 * 删除键的提示文字改为本地化文本,增强多语言支持。 * 数字键盘支持PC端网页预览,改善了触摸事件机制。 * 明确区分删除键事件处理,提升交互一致性。 * 文档中明确删除键长按快删功能仅在移动端生效。 * **测试** * 测试用例支持多语言,提升对本地化的兼容性。 * 简...
diff --git a/src/components/number-keyboard/number-keyboard.tsx b/src/components/number-keyboard/number-keyboard.tsx index bf5eabeaa1..9777251e08 100644 --- a/src/components/number-keyboard/number-keyboard.tsx +++ b/src/components/number-keyboard/number-keyboard.tsx @@ -173,14 +173,28 @@ export const NumberKeyboard: FC...
1
1
1
[{"id": "G0", "claim": "The code references an undefined `isBackspace` variable, causing TypeScript compilation to fail (TS2304), and the variable should be defined to determine whether the current key is the backspace key.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
ant-design__ant-design-mobile__6929
ant-design/ant-design-mobile
6,929
defect
45e6d8ee455ab37d5d6e9ea306c2a40b2f0a22cc
487b0da35ee19507fe95146aed3d624d97c5c7a1
fix(Swiper): 优化子元素key处理,避免数组重排时不必要的重新挂载
Fixes #6877 - 数组重排导致子元素重新挂载的问题 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **重构** * 优化了轮播组件中子项的渲染逻辑,提高了渲染的稳定性和性能。 * 替换了部分内部依赖的 React 钩子实现,保持功能一致。 * **测试** * 新增轮播组件在子项顺序变更时不会重新挂载的测试用例,提升了组件稳定性验证。 <!-- end of auto-generated comment: release notes by code...
diff --git a/src/components/ellipsis/useMeasure.tsx b/src/components/ellipsis/useMeasure.tsx index 4686bf84a2..3ef221e159 100644 --- a/src/components/ellipsis/useMeasure.tsx +++ b/src/components/ellipsis/useMeasure.tsx @@ -1,4 +1,5 @@ import { useEvent } from 'rc-util' +import useLayoutEffect from 'rc-util/lib/hooks/u...
4
2
1
[{"id": "G0", "claim": "renderStableItems should not be wrapped in useCallback: children is a new object on every render so the deps are useless, and the function is called on every render phase anyway, so the memoization is meaningless.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "i...
null
ant-design__ant-design-mobile__6937
ant-design/ant-design-mobile
6,937
defect
44337a75207b681676f25c692401a9a99e0e49f3
35bbd81d09c4af0b72375c206d73358e2b853b47
将蒙层点击与图片点击事件分离
支持将蒙层点击与图片点击事件分离,允许通过蒙层关闭弹窗 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **重构** * 优化图像查看器遮罩层配置:新增公开 prop `mask` 并支持遮罩点击处理,关闭回调与 className 转入遮罩管理并统一转发。 * **文档** * 更新中/英文说明,增加 mask 属性与 ImageViewer.Multi 下的 Mask 小节,说明 onClick 用法与触发时机。 * **样式** * 在 WebKit 浏...
diff --git a/src/components/image-viewer/image-viewer.tsx b/src/components/image-viewer/image-viewer.tsx index 08d6f3f6d6..6dbc296f06 100644 --- a/src/components/image-viewer/image-viewer.tsx +++ b/src/components/image-viewer/image-viewer.tsx @@ -26,6 +26,8 @@ export type ImageViewerProps = { visible?: boolean on...
6
3
2
[{"id": "G0", "claim": "The mask click API should be exposed as a `mask` object prop typed like `boolean | { onClick }` so users write `mask={{ onClick: ... }}` instead of separate top-level mask-click props.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim":...
null
ant-design__ant-design-mobile__6961
ant-design/ant-design-mobile
6,961
defect
c55c5a3c51262d81a7c95bd5b58173666c23531e
3dc9b451a46cf9e9710e6bb885a02933fe042f91
feat(Collapse configProvider): unified provision of custom prefixCls
统一添加自定义class 前缀 关联issue https://github.com/ant-design/ant-design-mobile/issues/6960
diff --git a/src/components/collapse/collapse.tsx b/src/components/collapse/collapse.tsx index 2d544ca680..47eef221a5 100644 --- a/src/components/collapse/collapse.tsx +++ b/src/components/collapse/collapse.tsx @@ -14,8 +14,6 @@ import { mergeProp, mergeProps } from '../../utils/with-default-props' import { useConfig ...
2
2
1
[{"id": "G0", "claim": "The `result` row in the zh-CN ConfigProvider doc table was split across two lines, which may break the Markdown table rendering; the two lines should be merged back into one.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "H...
null
ant-design__ant-design-mobile__6989
ant-design/ant-design-mobile
6,989
defect
66b2b67bc0f55c6223b3c0a9f7ab56ae7ad929a9
097192734cb74f6d834c34acb54a369a470e2180
fix(Uploader): count uploading files in maxCount limit
fix https://github.com/ant-design/ant-design-mobile/issues/6983 上传文件总数限制需要包含正在上传的数量 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * 修复图片上传器的上传按钮显示与数量限制逻辑:可见性与已选择文件数及已完成/正在处理任务合计相关,超出判断现在正确考虑非失败的已完成任务,防止超过最大文件数。 * **Tests** * 更新测试以确保“计数限制”包含正在上...
diff --git a/src/components/image-uploader/image-uploader.tsx b/src/components/image-uploader/image-uploader.tsx index 5dada6834d..4727009ef6 100644 --- a/src/components/image-uploader/image-uploader.tsx +++ b/src/components/image-uploader/image-uploader.tsx @@ -157,6 +157,7 @@ export const ImageUploader = forwardRef<I...
2
2
2
[{"id": "G0", "claim": "The showUpload condition adds finalTasks.length twice (apparently a typo), so uploading files are double-counted and the upload button may be hidden before the maxCount limit is reached; it should be value.length + finalTasks.length < maxCount.", "category": "correctness", "verdict": "supported"...
null
ant-design__ant-design-mobile__7039
ant-design/ant-design-mobile
7,039
defect
3aa86dbdf9dcadef5af905a7d8762990d5b02dc5
a9aadcb1e4b42e97f76e13a0133ae9b1e69943cb
feat(passcode-input): 支持 rtl 输入方向
close #6998 新增 direction 属性控制输入框方向 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **新功能** * PasscodeInput 支持从右到左(RTL)文本方向,示例中新增 RTL 演示,便于体验镜像输入场景。 * **文档** * 新增并更新 direction 属性说明,支持 'ltr' | 'rtl',默认 'ltr',说明了方向行为。 * **样式** * 添加 RTL 专用样式,调整单元格方向、分隔线与间距以实现...
diff --git a/src/components/passcode-input/demos/demo1.tsx b/src/components/passcode-input/demos/demo1.tsx index fa10a8767e..3a306a00e4 100644 --- a/src/components/passcode-input/demos/demo1.tsx +++ b/src/components/passcode-input/demos/demo1.tsx @@ -1,6 +1,6 @@ -import React, { useState } from 'react' import { Number...
3
3
1
[{"id": "G0", "claim": "The RTL border rules in non-separated mode and the RTL margin rules in separated mode are redundant because they override the LTR value on most cells and then reapply it; they can be simplified with logical properties like border-inline-end/margin-inline-end or by consolidating the overrides.", ...
null
ant-design__ant-design__52745
ant-design/ant-design
52,745
defect
0c80d6c5fcea68a391777aead400b7785f5b13b8
dfd6bfc5f04ea71769e7d17a545a4708a86cb83c
feat(Affix): support `classNames` and `styles` for component and ConfigProvider
<!-- First of all, thank you for your contribution! 😄 For requesting to pull a new feature or bugfix, please send it from a feature/bugfix branch based on the `master` branch. Before submitting your pull request, please make sure the checklist below is confirmed. Your pull requests will be merged after one of the ...
diff --git a/components/affix/__tests__/Affix.test.tsx b/components/affix/__tests__/Affix.test.tsx index 7a1b0cbd1781..5e9abd990832 100644 --- a/components/affix/__tests__/Affix.test.tsx +++ b/components/affix/__tests__/Affix.test.tsx @@ -5,6 +5,7 @@ import { accessibilityTest } from '../../../tests/shared/accessibilit...
2
1
1
[{"id": "G0", "claim": "Ensure that useComponentConfig is correctly handling the affix configuration to avoid potential issues with context propagation.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The placeholder div merges styles as { ...style, ...
null
ant-design__ant-design__52780
ant-design/ant-design
52,780
defect
da595e6b9d363c2c95345c6642a6802479f7cce7
ab2d9aac5b027da38d3e4f9370135a5318cae28d
feat(Radio): support `classNames` and `styles` for component and ConfigProvider
### 🤔 This is a ... - [x] 🆕 New feature ### 📝 Change Log > - Read [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) like a cat tracks a laser pointer. > - Describe the impact of the changes on developers, not the solution approach. > - Reference: https://ant.design/changelog | Language |...
diff --git a/components/config-provider/context.ts b/components/config-provider/context.ts index 41f23447719d..c454e7ca6dc5 100644 --- a/components/config-provider/context.ts +++ b/components/config-provider/context.ts @@ -46,6 +46,7 @@ import type { TourProps } from '../tour/interface'; import type { TransferProps } ...
5
3
0
[{"id": "G0", "claim": "Ensure the RcCheckbox correctly handles the className and style props now that they are dynamically composed from multiple sources, to avoid unexpected styling issues.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new Ra...
null
ant-design__ant-design__52866
ant-design/ant-design
52,866
defect
b411c2792687c1d5befd5270860cc6a42e5805fe
f697041617f893e1fefcdc74b20bbab34c8c3fbb
feat(Anchor): support `classNames` and `styles` for component and ConfigProvider
### 🤔 This is a ... - [x] 🆕 New feature ### 📝 Change Log > - Read [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) like a cat tracks a laser pointer. > - Describe the impact of the changes on developers, not the solution approach. > - Reference: https://ant.design/changelog | Language |...
diff --git a/components/anchor/Anchor.tsx b/components/anchor/Anchor.tsx index 3e1cde97c310..bb0113107429 100644 --- a/components/anchor/Anchor.tsx +++ b/components/anchor/Anchor.tsx @@ -50,11 +50,14 @@ interface Section { top: number; } +type SemanticName = 'root' | 'item' | 'title'; export interface AnchorProp...
2
1
1
[{"id": "G0", "claim": "Ensure that mergedStyles and mergedClassNames are correctly memoized to prevent unnecessary re-renders when many anchors are rendered.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a className (and style) slot for the in...
null
ant-design__ant-design__52893
ant-design/ant-design
52,893
defect
40c11ee2de63c8e29f9168dc52b231e39a4c7763
de9dc67ea0129c20d96c0f9052ba07215bb85f0d
feat(Pagination): support `classNames` and `styles` for component and ConfigProvider
<!-- First of all, thank you for your contribution! 😄 For requesting to pull a new feature or bugfix, please send it from a feature/bugfix branch based on the `master` branch. Before submitting your pull request, please make sure the checklist below is confirmed. Your pull requests will be merged after one of the ...
diff --git a/components/config-provider/context.ts b/components/config-provider/context.ts index a69d589edd79..57a49471f6ee 100644 --- a/components/config-provider/context.ts +++ b/components/config-provider/context.ts @@ -210,7 +210,8 @@ export type FormConfig = ComponentStyleConfig & export type FloatButtonGroupCo...
3
2
2
[{"id": "G0", "claim": "Ensure that the classNames merging handles contextClassNames.item or paginationClassNames?.item being undefined so that no potential runtime error occurs.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The classNames/styles s...
null
ant-design__ant-design__53225
ant-design/ant-design
53,225
defect
666cebb43e10b7d0d7b2a0fd2608014a0d81b0b3
16908cd49adffc45220b3f70b423bea4dcf0bfd4
feat(Splitter): support `classNames` and `styles`
[中文版模板 / Chinese template](https://github.com/ant-design/ant-design/blob/master/.github/PULL_REQUEST_TEMPLATE_CN.md?plain=1) ### 🤔 This is a ... - [x] 🆕 New feature - [ ] 🐞 Bug fix - [ ] 📝 Site / documentation improvement - [ ] 📽️ Demo improvement - [ ] 💄 Component style improvement - [ ] 🤖 TypeScript...
diff --git a/components/config-provider/context.ts b/components/config-provider/context.ts index 3a15dcfda2ac..697d7768b10c 100644 --- a/components/config-provider/context.ts +++ b/components/config-provider/context.ts @@ -42,6 +42,7 @@ import type { SkeletonProps } from '../skeleton'; import type { SliderProps } from...
5
2
1
[{"id": "G0", "claim": "Ensure that `draggerClassName` is correctly defined and used to avoid potential runtime errors if the property is undefined.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Check that `contextClassNames?.dragger` and `classNam...
null
ant-design__ant-design__53463
ant-design/ant-design
53,463
defect
5d320dc714cb6c5c19c136e0c5ac8f3fbf487714
e0deb766a005921e58028861be985502b1d3988c
feat: Upload supports paste upload via the `pastable` property
<!-- First of all, thank you for your contribution! 😄 For requesting to pull a new feature or bugfix, please send it from a feature/bugfix branch based on the `master` branch. Before submitting your pull request, please make sure the checklist below is confirmed. Your pull requests will be merged after one of the ...
diff --git a/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap index 79f1fdf5641b..c7252e5356f9 100644 --- a/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/upload/__tests__/__snapshots__/demo-exten...
5
3
2
[{"id": "G0", "claim": "The demo's `action` URL points at a public mock API endpoint, and the reviewers ask that the URL used for uploading be secure and trusted (M006) and note a public mock endpoint may not be best practice (M008).", "category": "security", "verdict": "uncertain", "priority": "P3", "scope": "introduc...
null
ant-design__ant-design__53504
ant-design/ant-design
53,504
defect
973df96f1a73d1ac3c32682ca3d8f0c54917181c
85d9495d0f3eb4c1604c4d004c4a6b462d47802e
fix(UploadList): fix disabled state of action button when used in Form
<!-- First of all, thank you for your contribution! 😄 For requesting to pull a new feature or bugfix, please send it from a feature/bugfix branch based on the `master` branch. Before submitting your pull request, please make sure the checklist below is confirmed. Your pull requests will be merged after one of the ...
diff --git a/components/upload/UploadList/index.tsx b/components/upload/UploadList/index.tsx index db1ad1ffe4d0..57b69612441b 100644 --- a/components/upload/UploadList/index.tsx +++ b/components/upload/UploadList/index.tsx @@ -136,10 +136,9 @@ const InternalUploadList: React.ForwardRefRenderFunction<UploadListRef, Uplo...
3
1
0
[{"id": "G0", "claim": "Ensure that the disabled property is correctly applied when acceptUploadDisabled is true, so that no unintended interactions occur.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding an assertion that the NodeList...
null