-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: small improvements to test settings #3577
Open
germa89
wants to merge
65
commits into
main
Choose a base branch
from
ci/add-timeout-to-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+233
−139
Open
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
95e5c1f
ci: adding timeout to each test
germa89 ca0b3d6
chore: adding changelog file 3577.dependencies.md [dependabot-skip]
pyansys-ci-bot 9cb1049
test: avoid checking command output
germa89 617062a
Merge branch 'ci/add-timeout-to-tests' of https://github.com/ansys/py…
germa89 628e2dd
test: avoid checking command output
germa89 9896c1a
fix: unpack
germa89 354e09c
feat: disabling subscription to channel
germa89 d5fd2ca
Merge branch 'main' into ci/add-timeout-to-tests
germa89 2831d9a
fix: components typo
germa89 ab5b8dd
chore: adding changelog file 3577.documentation.md [dependabot-skip]
pyansys-ci-bot b9f28a1
feat: avoid checking on not set channel
germa89 54be273
ci: automate logging when testing
germa89 432d803
fix: reading nset when no RST is generated
germa89 39b6841
fix: detecting comments as parameters sets when they have =.
germa89 fe26f13
fix: avoid fail on reading rst file
germa89 77f48a4
feat: setting verbosity when debug env var
germa89 7e8ea46
feat: using non-interactive for using iterable in XSEL commands
germa89 991129e
fix: running post.__repr__ as post1
germa89 b5930d6
feat: logging non_interactive in MAPDL logging and APDL logging
germa89 d7f00ed
fix: post_processing repr
germa89 8d816b4
test: post string
germa89 dea451c
fix: test
germa89 5bfa88f
feat: showing a warning when rebooting MAPDL.
germa89 e324b95
tests: skip some test Temporary
germa89 708a309
fix: initial channel state
germa89 cc4ac17
fix: removing APDL comment so it does not interfere on the last_respone
germa89 2a8bf63
fix: database tests
germa89 b763e2b
fix: path test
germa89 711ef9c
feat: stripping spaces from the command output
germa89 9beb866
fix: checking pids when there is no cleanup file.
8517eb9
fix: make sure we are properly comparing paths when MAPDL is also ins…
2cf4b44
Merge branch 'ci/add-timeout-to-tests' of https://github.com/ansys/py…
e07a2ac
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] 518f3fd
fix: small fixes in database tests
2735847
fix: skip testing on windows for the moment
471e799
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] 7e3eb7d
fix: precommit
germa89 9824a60
fix: xpl not loading full file
germa89 d1e2753
refactor: moving xpl tests to a class
germa89 87c9349
chore: merge branch 'feat/piping-MAPDL-output-to-a-given-file' into c…
germa89 8ca530f
feat: adding apdl output
germa89 13cf83b
tests: removing redundant test
germa89 7fada68
chore: merge fix/avoid-error-when-retriving-routine
germa89 f13988f
chore: merge branch 'main' into feat/piping-MAPDL-output-to-a-given-file
germa89 44a43e9
chore: adding changelog file 3596.miscellaneous.md [dependabot-skip]
pyansys-ci-bot c99c48b
revert: "revert: "Merge branches 'feat/piping-MAPDL-output-to-a-given…
germa89 5ee647b
Merge branches 'feat/piping-MAPDL-output-to-a-given-file' and 'feat/p…
germa89 d7fd53f
chore: merge remote-tracking branch 'origin/main' into ci/add-timeout…
germa89 d2c7647
chore: adding changelog file 3577.dependencies.md [dependabot-skip]
pyansys-ci-bot 36f633d
chore: merge branch 'feat/piping-MAPDL-output-to-a-given-file' into c…
germa89 5d07a27
refactor: reorg allowed arguments order
germa89 b1732b2
chore: merge branch 'ci/add-timeout-to-tests' of https://github.com/a…
germa89 ecb12d9
fix: removing `file` call.
germa89 8426a7f
Merge branch 'main' into ci/add-timeout-to-tests
germa89 604a6b8
Merge branch 'ci/add-timeout-to-tests' of https://github.com/ansys/py…
germa89 1c17774
chore: merge remote-tracking branch 'origin/main' into ci/add-timeout…
germa89 15b65ba
feat: apply suggestions from code review
germa89 0d2ce95
feat: apply suggestions from code review
germa89 c479d62
chore: adding changelog file 3577.added.md [dependabot-skip]
pyansys-ci-bot fb559b7
chore: merge branch 'main' into ci/add-timeout-to-tests
germa89 8269a2f
Merge branch 'main' into ci/add-timeout-to-tests
germa89 3650562
Merge branch 'main' into ci/add-timeout-to-tests
germa89 e2efd9b
Merge branch 'main' into ci/add-timeout-to-tests
germa89 63722e6
fix: removing left behind code
germa89 afc448e
Merge branch 'main' into ci/add-timeout-to-tests
germa89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
refactor: small improvements to test settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,13 +139,31 @@ | |
@supress_logging | ||
def __repr__(self): | ||
info = "PyMAPDL PostProcessing Instance\n" | ||
info += "\tActive Result File: %s\n" % self.filename | ||
info += "\tNumber of result sets: %d\n" % self.nsets | ||
info += "\tCurrent load step: %d\n" % self.load_step | ||
info += "\tCurrent sub step: %d\n" % self.sub_step | ||
info += f"\tActive Result File: {self.filename}\n" | ||
|
||
# If there is no result file, this fails. | ||
try: | ||
nsets = int(self.nsets) | ||
except MapdlRuntimeError: | ||
nsets = "NA" | ||
|
||
info += f"\tNumber of result sets: {nsets}\n" | ||
info += f"\tCurrent load step: {self.load_step}\n" | ||
info += f"\tCurrent sub step: {self.sub_step}\n" | ||
Comment on lines
+150
to
+152
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sets, step, sub steps... |
||
|
||
if self._mapdl.parameters.routine == "POST1": | ||
info += "\n\n" + self._mapdl.set("LIST") | ||
try: | ||
nlist = self._mapdl.set("LIST") | ||
except MapdlRuntimeError as err: | ||
if ( | ||
"An error occurred while attempting to open the results file" | ||
in str(err) | ||
): | ||
nlist = "Results file is not available" | ||
else: | ||
raise err | ||
|
||
info += "\n\n" + nlist | ||
else: | ||
info += "\n\nEnable routine POST1 to see a table of available results" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@germa89 Don't you want to write something down in the log about it?