Skip to content

ci: remove legacy coverage startup variable - #198

Merged
stanislavlevin merged 1 commit into
mainfrom
issue_197
Nov 17, 2026
Merged

stanislavlevin merged 1 commit into
mainfrom
issue_197

Conversation

@stanislavlevin

@stanislavlevin stanislavlevin commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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:

  • Remove the unnecessary legacy coverage startup variable from the unit-test workflow.

CI:

  • Simplify CI coverage execution by relying on the existing subprocess coverage configuration.

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>
@sourcery-ai

sourcery-ai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit 272c358

#197 Remove redundant `COVERAGE_PROCESS_START` from CI · 1 of 2 met · 1 to check by hand

# Requirement Status Notes
1 Remove the export from .github/workflows/pipelines.yml. ✅ Met The COVERAGE_PROCESS_START export is removed from the unit-test step.
2 Unit tests should continue to pass with 100% coverage, including subprocess code. 👀 Check by hand (runtime) Check the CI run to confirm the unit tests pass with 100% coverage, including subprocess code.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .github/workflows/pipelines.yml Resolved
@stanislavlevin
stanislavlevin merged commit bf416b8 into main Nov 17, 2026
22 checks passed
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.

Remove redundant COVERAGE_PROCESS_START from CI

1 participant