Skip to content
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

ci(coverage): pin gcovr version #3194

Closed
wants to merge 1 commit into from

Conversation

ReenigneArcher
Copy link
Member

Description

pip is sometimes installing older versions of gcovr.

> Run C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\python.exe -m pip install gcovr
  C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\python.exe -m pip install gcovr
  C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\python.exe -m gcovr -r .. \
    --exclude-noncode-lines \
    --exclude-throw-branches \
    --exclude-unreachable-branches \
    --exclude '.*tests/.*' \
    --exclude '.*third-party/.*' \
    --xml-pretty \
    -o coverage.xml
  shell: D:\a\_temp\setup-msys2\msys2.CMD {0}
  env:
    MSYSTEM: UCRT64
    pythonLocation: C:\hostedtoolcache\windows\Python\3.11.9\x64
    PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.11.9\x64/lib/pkgconfig
    Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
    Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
    Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
Collecting gcovr
  Downloading gcovr-7.2-py2.py3-none-any.whl.metadata (10.0 kB)
Collecting jinja2 (from gcovr)
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/lxml/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/lxml/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/lxml/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/lxml/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/lxml/
INFO: pip is looking at multiple versions of gcovr to determine which version is compatible with other requirements. This could take a while.
Collecting gcovr
  Downloading gcovr-7.0-py2.py3-none-any.whl.metadata (9.5 kB)
  Downloading gcovr-6.0-py2.py3-none-any.whl.metadata (8.5 kB)
  Downloading gcovr-5.2-py2.py3-none-any.whl.metadata (8.3 kB)
  Downloading gcovr-5.1-py2.py3-none-any.whl.metadata (8.3 kB)
  Downloading gcovr-5.0-py2.py3-none-any.whl.metadata (7.2 kB)
  Downloading gcovr-4.2-py2.py3-none-any.whl.metadata (7.0 kB)
  Downloading gcovr-4.1-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting MarkupSafe>=2.0 (from jinja2->gcovr)
  Downloading MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl.metadata (3.1 kB)
Downloading gcovr-4.1-py2.py3-none-any.whl (34 kB)
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
Downloading MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl (17 kB)
Installing collected packages: MarkupSafe, jinja2, gcovr
  WARNING: The script gcovr.exe is installed in 'C:\hostedtoolcache\windows\Python\3.11.9\x64\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed MarkupSafe-2.1.5 gcovr-4.1 jinja2-3.1.4
usage: gcovr [options] [search_paths...]
__main__.py: error: unrecognized arguments: --exclude-noncode-lines --exclude-throw-branches
Error: Process completed with exit code 2.

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

@ReenigneArcher ReenigneArcher force-pushed the ci/coverage/pin-gcovr-version branch from 72e41d5 to 43c717b Compare September 16, 2024 23:12
Copy link

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.22%. Comparing base (c63678d) to head (43c717b).
Report is 96 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3194      +/-   ##
==========================================
+ Coverage    9.71%   11.22%   +1.50%     
==========================================
  Files          77       49      -28     
  Lines       14058     8456    -5602     
  Branches     6453     3938    -2515     
==========================================
- Hits         1366      949     -417     
+ Misses      10073     6997    -3076     
+ Partials     2619      510    -2109     
Flag Coverage Δ
Windows ?
macOS-12 10.79% <ø> (ø)
macOS-13 10.72% <ø> (+0.03%) ⬆️
macOS-14 10.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 63 files with indirect coverage changes

@ReenigneArcher ReenigneArcher marked this pull request as draft September 16, 2024 23:31
@ReenigneArcher
Copy link
Member Author

This is likely not needed.

@ReenigneArcher ReenigneArcher deleted the ci/coverage/pin-gcovr-version branch September 17, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant