Repository navigation
ci: remove legacy coverage startup variable - #198
Merged
Merged
Conversation
The coverage documentation recommends patch = ["subprocess"]. This project already uses that setting. COVERAGE_PROCESS_START is used by the manual coverage.process_startup() setup and is unnecessary here. The unit suite passes with 100% coverage without the variable. Documentation: - https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html - https://coverage.readthedocs.io/en/latest/subprocess.html#manual-sub-process-coordination Fixes: #197 Assisted-by: Codex:gpt-6.1-sol Signed-off-by: Stanislav Levin <slev@altlinux.org>
Linked issuesChecked at commit 272c358 #197 Remove redundant `COVERAGE_PROCESS_START` from CI · 1 of 2 met · 1 to check by hand
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/pipelines.yml" line_range="93" />
<code_context>
- name: Unit tests with coverage
run: |
- export COVERAGE_PROCESS_START="$(pwd)/pyproject.toml"
.venv/bin/pytest -vra --cov --cov-config=pyproject.toml tests/unit
</code_context>
<issue_to_address>
**Subprocess coverage is omitted**
When the unit-test workflow runs coverage, `.venv/bin/pytest` runs without `COVERAGE_PROCESS_START`, so subprocess execution is not recorded and the CI coverage report omits it; contributors following the current unit-test instructions are also left with a different command and misunderstand how subprocess coverage is configured.
Export `COVERAGE_PROCESS_START="$(pwd)/pyproject.toml"` before running pytest, matching the current unit-test instructions.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: .github/workflows/pipelines.yml:93
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The coverage documentation recommends patch = ["subprocess"]. This project already uses that setting. COVERAGE_PROCESS_START is used by the manual coverage.process_startup() setup and is unnecessary here.
The unit suite passes with 100% coverage without the variable.
Documentation:
Fixes: #197
Summary by Sourcery
Remove the legacy coverage startup configuration from the unit-test CI workflow.
Bug Fixes:
CI: