Skip to content

Omit test coverage - #377

Closed
vlad-perevezentsev wants to merge 4 commits into
IntelPython:masterfrom
vlad-perevezentsev:fix_coverage
Closed

vlad-perevezentsev wants to merge 4 commits into
IntelPython:masterfrom
vlad-perevezentsev:fix_coverage

Conversation

@vlad-perevezentsev

Copy link
Copy Markdown
Collaborator

@vlad-perevezentsev vlad-perevezentsev self-assigned this Apr 7, 2021
@vlad-perevezentsev vlad-perevezentsev linked an issue Apr 7, 2021 that may be closed by this pull request
@PokhodenkoSA

Copy link
Copy Markdown
Contributor

Please explain your decisions.

@vlad-perevezentsev

Copy link
Copy Markdown
Collaborator Author

Added a file with coverage configuration to the test section.
The coveragerc uses the cython plugin, so the cython package was added to the test section.

@vlad-perevezentsev vlad-perevezentsev added 2 - Ready for Review coverage Tasks related with code coverage labels Apr 8, 2021
@diptorupd

Copy link
Copy Markdown
Contributor

The most recent build log reports this:

07:40:01
  Coverage statistics reporting failed
  Traceback (most recent call last):
    File "$PREFIX/lib/python3.7/site-packages/teamcity_messages-1.25-py3.7.egg/teamcity/pytest_plugin.py", line 371, in pytest_terminal_summary
      self._report_coverage()
    File "$PREFIX/lib/python3.7/site-packages/teamcity_messages-1.25-py3.7.egg/teamcity/pytest_plugin.py", line 378, in _report_coverage
      from coverage.report import Reporter
  ImportError: cannot import name 'Reporter' from 'coverage.report' ($PREFIX/lib/python3.7/site-packages/coverage/report.py)
07:40:01
  ----------- coverage: platform linux, python 3.7.9-final-0 -----------
07:40:01
  Name                                                                                                                                                                                                                                                                                                                           Stmts   Miss Branch BrPart  Cover   Missing
07:40:01
  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
07:40:01
  /localdisk/tools/tc/agent2/work/2cb6e2569bc46688/base/lib/python3.7/site-packages/conda_build/environ.py:426: UserWarning: The environment variable 'ONEAPI_ROOT' is being passed through with value /opt/intel/oneapi.  If you are splitting build and test phases with --no-test, please ensure that this value is also set similarly at test time.
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/__init__.py                       33      2      0      0    94%   73-75
07:40:01
    UserWarning
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/_version.py                        4      0      0      0   100%
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/dptensor/__init__.py               2      0      0      0   100%
07:40:01
  /localdisk/tools/tc/agent2/work/2cb6e2569bc46688/base/lib/python3.7/site-packages/conda_build/environ.py:418: UserWarning: The environment variable 'WHEELS_OUTPUT_FOLDER' is undefined.
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/dptensor/numpy_usm_shared.py     181     61     76     10    61%   45-46, 63, 67-78, 90, 117-118, 126-146, 174-175, 183, 186-200, 213-225, 240, 260, 264, 280-284, 288, 299, 317-319
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/enum_types.py                     17      0      0      0   100%
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/memory/__init__.py                 4      0      0      0   100%
07:40:01
  $PREFIX/lib/python3.7/site-packages/dpctl/program/__init__.py                4      0      0      0   100%
07:40:01
  --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
07:40:01
  TOTAL                                                                                                                                                                                                                                                                                                                            245     63     76     10    69%
07:40:01

I see the error about failing to import Reporter and no Cython coverage.

@diptorupd

Copy link
Copy Markdown
Contributor

@vlad-perevezentsev @PokhodenkoSA I am closing this PR as we have coverage generation and reporting setup via a Github CI and coveralls.io. We do not have to add it to our Teamcity CI.

@diptorupd diptorupd closed this May 28, 2021
@vlad-perevezentsev
vlad-perevezentsev deleted the fix_coverage branch June 20, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 - Ready for Review coverage Tasks related with code coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage does not skip tests folder

3 participants