Skip to content

Conversation

@PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Jul 18, 2022

Add a retro-compatibility test workflow for 221 on all supported configurations.

It triggers for:

  • PRs on master or with retro in the branch name
  • At 04:00 AM on master.

@PProfizi PProfizi added the CI/CD Related to CI/CD label Jul 18, 2022
@PProfizi PProfizi self-assigned this Jul 18, 2022
@codecov
Copy link

codecov bot commented Jul 18, 2022

Codecov Report

Merging #310 (6dac381) into master (79e5bfc) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #310      +/-   ##
==========================================
+ Coverage   86.48%   86.50%   +0.01%     
==========================================
  Files          52       52              
  Lines        5756     5756              
==========================================
+ Hits         4978     4979       +1     
+ Misses        778      777       -1     

@PProfizi PProfizi marked this pull request as ready for review July 19, 2022 12:12
@PProfizi PProfizi requested review from anslpa and cbellot000 July 19, 2022 12:13
@PProfizi PProfizi merged commit 3ca756d into master Jul 19, 2022
@PProfizi PProfizi deleted the retro/add_retrocompatibility_workflow branch July 19, 2022 12:33
PProfizi added a commit that referenced this pull request Jul 19, 2022
* Add a retro-compatibility workflow

* Trigger on pull_requests to retro/ branches
Trigger also for release/ branches

* Update pydpf-actions to 2.1.1

* Update to trigger on pull_requests FROM a retro or release branch

* Fix vtk version in setup.py extras_require[plotting]

* Add concurrency criterion

* Revert Fix vtk version in setup.py extras_require[plotting]: vtk 9.0.3 not available for Python 3.10

* Fix unbuntu doctest error due to unsorted available_property_fields list

* Rename job

* Update run criteria

* Update run criteria

* Go back to Windows 3.8 only

* Add empty line at end-of-file

Co-authored-by: Paul P <[email protected]>

(cherry picked from commit 3ca756d)
cbellot000 added a commit that referenced this pull request Jul 26, 2022
* Change ANSYS_VERSION to 222

* Add step for pygate 0.1.dev1 installation

* Add step for pygate 0.1.dev1 installation

* Add trigger for ci

* Add trigger for ci

* Fix conditional for gatebin install steps

* Fix gatebin install steps

* Add the wheels temporarily

* Fix step conditional

* Change requirement to ansys-dpf-gate==0.1.dev1

* Add pygate steps to documentation job

* Run Doc on windows-latest

* Move build installation of pygate to pydpf-actions

* Fix conditionals

* Update gate wheel

* Add up-to-date ansys-grpc-dpf wheel

* Remove ANSYS_VERSION env setter from build_doc job

* Add install of local ansys-grpc-dpf wheel

* Solve docstring test for download_file

* Solve docstring test for download_file

* Solve docstring test for download_file

* Solve docstring test for download_file

* Update pygate wheel

* Fix doctests

* Fix doctests

* Fix doctests

* Fix doctests

* Fix doctests

* pytest.ini: add doctest NORMALIZE_WHITESPACE and ELLIPSIS by default

* remove inline #doctest: options

* Fix doctest

* Fix doctest

* Fix doctest

* Fix doctest

* Fix doctest

* Fix doctest

* use v2.2 pydpf-actions

* Target potential failing test

* Change local_test_repo to False

* Comment-out segfault test

* Remove contrain on ansys-dpf-gate version in setup.py install_requires

* Try-out DEBUG option for pydpf-actions/test_package

* Revert "Comment-out segfault test"

This reverts commit 5f03a49.

* Revert "Target potential failing test"

This reverts commit fac439a.

* Fix test_busy_port from lea's PR on TFS

* Fix conftest according to TFS PR form Lea

* Fix gatebin tests from TFS PR Lea

* Update wheels

* Remove Report from test in install package

* Fix flake8

* Try-out on Python 3.7 same as TFS

* Bump imageio from 2.19.3 to 2.19.5 (#312)

Bumps [imageio](https://github.com/imageio/imageio) from 2.19.3 to 2.19.5.
- [Release notes](https://github.com/imageio/imageio/releases)
- [Changelog](https://github.com/imageio/imageio/blob/master/CHANGELOG.md)
- [Commits](imageio/imageio@v2.19.3...v2.19.5)

---
updated-dependencies:
- dependency-name: imageio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 9e6584a)

* MAINT: collect dependencies under a requirements/ directory (#307)

* Collect dependencies under requirements/ dir

* Enhance .gitigore

* Update actions to new requirements layout

* Update documentation

* Update action versions

(cherry picked from commit 79e5bfc)

* Bump sphinx-notfound-page from 0.8 to 0.8.3 (#308)

Bumps [sphinx-notfound-page](https://github.com/readthedocs/sphinx-notfound-page) from 0.8 to 0.8.3.
- [Release notes](https://github.com/readthedocs/sphinx-notfound-page/releases)
- [Changelog](https://github.com/readthedocs/sphinx-notfound-page/blob/main/CHANGELOG.rst)
- [Commits](readthedocs/sphinx-notfound-page@0.8...0.8.3)

---
updated-dependencies:
- dependency-name: sphinx-notfound-page
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 693b83d)

* Bump coverage from 6.4.1 to 6.4.2 (#306)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@6.4.1...6.4.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit c3d434f)

* Bump actions/setup-python from 4.0.0 to 4.1.0 (#302)

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 251b1fd)

* Add a retrocompatibility workflow (#310)

* Add a retro-compatibility workflow

* Trigger on pull_requests to retro/ branches
Trigger also for release/ branches

* Update pydpf-actions to 2.1.1

* Update to trigger on pull_requests FROM a retro or release branch

* Fix vtk version in setup.py extras_require[plotting]

* Add concurrency criterion

* Revert Fix vtk version in setup.py extras_require[plotting]: vtk 9.0.3 not available for Python 3.10

* Fix unbuntu doctest error due to unsorted available_property_fields list

* Rename job

* Update run criteria

* Update run criteria

* Go back to Windows 3.8 only

* Add empty line at end-of-file

Co-authored-by: Paul P <[email protected]>

(cherry picked from commit 3ca756d)

* Use pydpf-actions @v2.2 for retro.yml

* Add kill-all-servers steps

* Add search for AWP_ROOT221 and others in decreasing order as a last resort.

* Reduces restrains in requirements_docs.txt

* Try fix doc generation for 06-stress_gradient_path.py

* Try fix doc generation for 06-stress_gradient_path.py

* Revert "Try fix doc generation for 06-stress_gradient_path.py"

This reverts commit 7d7f959.

* Revert "Try fix doc generation for 06-stress_gradient_path.py"

This reverts commit 6d3f0f7.

* Fix doc generation

* Use wheel and wheelhouse options of build_package action v2.2

* Set wheelhouse generation to false while gate not available on PyPi

* REtro now does not test docstrings

* Update wheels of gate, grpc,

* Move find_ansys() to last resort. If only AWP_ROOT221 is declared, it should not prioritize a 222 install in the default directory.

* Restrict TestServerConfigs tests to servers >= 4.0

* Moved ansys_path retrieval logic to misc along with find_ansys, in get_ansys_path.
Is now used to correctly determine if MAPDL is available with the installation actually used for testing.

* remove rogue prints

* Fixture for server<4.0 now only use global server

* Rename test_remote_workflow.py

* Fix import

* Conftest autouse fixture count_servers

* Set ansys_path argument of get_ansys_path to None by default

* Revert "Conftest autouse fixture count_servers"

This reverts commit c4b1f07.

* Conftest actually count_servers with fixture

* Fix flake8

* Fix flake8

* Remove code merged by error.

* Remove test_set_coordinates_field_meshed_region which should come with new commits from TFS

* Remove assert nb_servers=1 from count_servers fixture

* Move and rename test_launch_server_not_install to test_launcher.py as test_launch_server_full_path

* Fix GrpcServer.shutdown()

* Add a version test before trying to launch an InProcess server

* Remove version test, add warning to get info on ansys_path used.

* fix circular references

* ADD WARNINGS FOR DEBUG

* ADD TIMESTAMP

* Use [email protected]

* Revert "Use [email protected]"

This reverts commit e8e5835.

* Revert "ADD TIMESTAMP"

This reverts commit 4ce75de.

* Revert "ADD WARNINGS FOR DEBUG"

This reverts commit c02c4a0.

* changes refs

* Remove warning used for debug

* Fix test_start_local_failed_executable

* Fix test_busy_port

* fixes

* Try [email protected]

* styling and spelling

* Up doc install-dpf-server to v2.2

* Revert "Try [email protected]"

This reverts commit 4d28452.

* disable cache

* dummy push

* reremove cache

* Set autouse of count_servers fixture to false

* add cleanup

* fix cleanup

* cleanup

* shutdown all

* Fix codacy errors

* fix

* cleanup workflow

* Add back test_launch_server_not_install and rename it as test_launcher_server_full_path

* fixes

* dummy commit

* Revert "dummy commit"

This reverts commit 969a800.

* Refactor get_ansys_path and find_ansys

* fix global server

* fix doctests

* skip tests

* Add back a print in test_print_data_sources_path

* fix merge

* fix

* dummy

* Merge/retro/pipelines 0.5.dev2 (#334)

* fix retro, remove doctests

* fix ci version

* dummy

* doctest false

* try

* Revert "dummy"

This reverts commit 1dc9424.

* boolean

* bash if

* add comment

* skip failing test

* restart

* fixes

* fix

* fixes

Co-authored-by: paul.profizi <[email protected]>
Co-authored-by: Paul P <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martínez <[email protected]>
Co-authored-by: PProfizi <[email protected]>
cbellot000 added a commit that referenced this pull request Jul 26, 2022
* Change ANSYS_VERSION to 222

* Add step for pygate 0.1.dev1 installation

* Add step for pygate 0.1.dev1 installation

* Add trigger for ci

* Add trigger for ci

* Fix conditional for gatebin install steps

* Fix gatebin install steps

* Add the wheels temporarily

* Fix step conditional

* Change requirement to ansys-dpf-gate==0.1.dev1

* Add pygate steps to documentation job

* Run Doc on windows-latest

* Move build installation of pygate to pydpf-actions

* Fix conditionals

* Update gate wheel

* Add up-to-date ansys-grpc-dpf wheel

* Remove ANSYS_VERSION env setter from build_doc job

* Add install of local ansys-grpc-dpf wheel

* Solve docstring test for download_file

* Solve docstring test for download_file

* Solve docstring test for download_file

* Solve docstring test for download_file

* Update pygate wheel

* Fix doctests

* Fix doctests

* Fix doctests

* Fix doctests

* Fix doctests

* pytest.ini: add doctest NORMALIZE_WHITESPACE and ELLIPSIS by default

* remove inline #doctest: options

* Fix doctest

* Fix doctest

* Fix doctest

* Fix doctest

* Fix doctest

* Fix doctest

* use v2.2 pydpf-actions

* Target potential failing test

* Change local_test_repo to False

* Comment-out segfault test

* Remove contrain on ansys-dpf-gate version in setup.py install_requires

* Try-out DEBUG option for pydpf-actions/test_package

* Revert "Comment-out segfault test"

This reverts commit 5f03a49.

* Revert "Target potential failing test"

This reverts commit fac439a.

* Fix test_busy_port from lea's PR on TFS

* Fix conftest according to TFS PR form Lea

* Fix gatebin tests from TFS PR Lea

* Update wheels

* Remove Report from test in install package

* Fix flake8

* Try-out on Python 3.7 same as TFS

* Bump imageio from 2.19.3 to 2.19.5 (#312)

Bumps [imageio](https://github.com/imageio/imageio) from 2.19.3 to 2.19.5.
- [Release notes](https://github.com/imageio/imageio/releases)
- [Changelog](https://github.com/imageio/imageio/blob/master/CHANGELOG.md)
- [Commits](imageio/imageio@v2.19.3...v2.19.5)

---
updated-dependencies:
- dependency-name: imageio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 9e6584a)

* MAINT: collect dependencies under a requirements/ directory (#307)

* Collect dependencies under requirements/ dir

* Enhance .gitigore

* Update actions to new requirements layout

* Update documentation

* Update action versions

(cherry picked from commit 79e5bfc)

* Bump sphinx-notfound-page from 0.8 to 0.8.3 (#308)

Bumps [sphinx-notfound-page](https://github.com/readthedocs/sphinx-notfound-page) from 0.8 to 0.8.3.
- [Release notes](https://github.com/readthedocs/sphinx-notfound-page/releases)
- [Changelog](https://github.com/readthedocs/sphinx-notfound-page/blob/main/CHANGELOG.rst)
- [Commits](readthedocs/sphinx-notfound-page@0.8...0.8.3)

---
updated-dependencies:
- dependency-name: sphinx-notfound-page
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 693b83d)

* Bump coverage from 6.4.1 to 6.4.2 (#306)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](nedbat/coveragepy@6.4.1...6.4.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit c3d434f)

* Bump actions/setup-python from 4.0.0 to 4.1.0 (#302)

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v4.1.0)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 251b1fd)

* Add a retrocompatibility workflow (#310)

* Add a retro-compatibility workflow

* Trigger on pull_requests to retro/ branches
Trigger also for release/ branches

* Update pydpf-actions to 2.1.1

* Update to trigger on pull_requests FROM a retro or release branch

* Fix vtk version in setup.py extras_require[plotting]

* Add concurrency criterion

* Revert Fix vtk version in setup.py extras_require[plotting]: vtk 9.0.3 not available for Python 3.10

* Fix unbuntu doctest error due to unsorted available_property_fields list

* Rename job

* Update run criteria

* Update run criteria

* Go back to Windows 3.8 only

* Add empty line at end-of-file

Co-authored-by: Paul P <[email protected]>

(cherry picked from commit 3ca756d)

* Use pydpf-actions @v2.2 for retro.yml

* Add kill-all-servers steps

* Add search for AWP_ROOT221 and others in decreasing order as a last resort.

* Reduces restrains in requirements_docs.txt

* Try fix doc generation for 06-stress_gradient_path.py

* Try fix doc generation for 06-stress_gradient_path.py

* Revert "Try fix doc generation for 06-stress_gradient_path.py"

This reverts commit 7d7f959.

* Revert "Try fix doc generation for 06-stress_gradient_path.py"

This reverts commit 6d3f0f7.

* Fix doc generation

* Use wheel and wheelhouse options of build_package action v2.2

* Set wheelhouse generation to false while gate not available on PyPi

* REtro now does not test docstrings

* Update wheels of gate, grpc,

* Move find_ansys() to last resort. If only AWP_ROOT221 is declared, it should not prioritize a 222 install in the default directory.

* Restrict TestServerConfigs tests to servers >= 4.0

* Moved ansys_path retrieval logic to misc along with find_ansys, in get_ansys_path.
Is now used to correctly determine if MAPDL is available with the installation actually used for testing.

* remove rogue prints

* Fixture for server<4.0 now only use global server

* Rename test_remote_workflow.py

* Fix import

* Conftest autouse fixture count_servers

* Set ansys_path argument of get_ansys_path to None by default

* Revert "Conftest autouse fixture count_servers"

This reverts commit c4b1f07.

* Conftest actually count_servers with fixture

* Fix flake8

* Fix flake8

* Remove code merged by error.

* Remove test_set_coordinates_field_meshed_region which should come with new commits from TFS

* Remove assert nb_servers=1 from count_servers fixture

* Move and rename test_launch_server_not_install to test_launcher.py as test_launch_server_full_path

* Fix GrpcServer.shutdown()

* Add a version test before trying to launch an InProcess server

* Remove version test, add warning to get info on ansys_path used.

* ADD WARNINGS FOR DEBUG

* ADD TIMESTAMP

* Use [email protected]

* Revert "Use [email protected]"

This reverts commit e8e5835.

* Revert "ADD TIMESTAMP"

This reverts commit 4ce75de.

* Revert "ADD WARNINGS FOR DEBUG"

This reverts commit c02c4a0.

* Remove warning used for debug

* Fix test_start_local_failed_executable

* Fix test_busy_port

* Try [email protected]

* Up doc install-dpf-server to v2.2

* Revert "Try [email protected]"

This reverts commit 4d28452.

* Set autouse of count_servers fixture to false

* Fix codacy errors

* Add back test_launch_server_not_install and rename it as test_launcher_server_full_path

* Refactor get_ansys_path and find_ansys

* Add back a print in test_print_data_sources_path

* find_ansys does not filter out the current ansys version for AWP_ROOT

* Remove unused fixtures

* Set DOCTEST in retro back to true

* Revert "Set DOCTEST in retro back to true"

This reverts commit 53ed94a.

* Test conditionals

* Set wheelhouse to default (false)

* Set doctest to default (true)

* Revert "Set doctest to default (true)"

This reverts commit 3c9460d.

* Set doctest to false

* Revert "Remove unused fixtures"

This reverts commit 78894f6.

* Remove fixture config_server_type

* Refactor test job using new smaller actions

* fix ci

* dummy

* revert dummy

* dummy

* pre command

* doc and backward comp

* backward comp fixes

* update doc and ansys.grpc.dpf

* fix doc

* fix merge

Co-authored-by: paul.profizi <[email protected]>
Co-authored-by: Paul P <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martínez <[email protected]>
Co-authored-by: PProfizi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Related to CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants