Skip to content

Repair the pipeline after pyTooling's and pyTooling.Sphinx' changes - #14

Merged
Paebbels merged 3 commits into
devfrom
claude/test-environment-removal
Oct 6, 2026
Merged

Paebbels merged 3 commits into
devfrom
claude/test-environment-removal

Conversation

@pytooling-claude

@pytooling-claude pytooling-claude Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Unit Tests

  • tests/app/Program.py: PipelineCommand.test_Repository_Missing and test_PipelineID_Missing map the variable to remove to None (environment={"GITHUB_REPOSITORY": None}) instead of passing a copy of the environment without it; the helper environmentWithout() is gone. Since pyTooling commit 0e6945a3 ("Merge a test's environment into the current one instead of replacing it"), RunEntrypoint merges the given variables into the current environment and removes only those set to None - so the copy left the workflow's own GITHUB_RUN_ID and GITHUB_REPOSITORY in place, and both tests queried the GitHub API (HTTP 404) instead of reporting the missing value (exit code 2).
    • Reproduced locally with both variables set as in a workflow: both tests fail before the change and pass after it; all 12 application tests pass.

Documentation

  • The reports are rendered by pyTooling.Sphinx' domain report instead of the extension sphinx_reports. pyTooling.Sphinx registers that domain itself since Transfer the 'report' domain from sphinx-reports into pyTooling.Sphinx pyTooling.Sphinx#20, so enabling both ended the documentation job with sphinx.errors.ExtensionError: domain report already registered.
    • conf.py: sphinx_reports is no longer an extension; the configuration values are renamed to pyTooling_Unittest_Testsuites, pyTooling_CodeCoverage_Packages and pyTooling_DocCoverage_Packages.
    • doc/requirements.txt: pyTooling.Sphinx[reports] instead of sphinx_reports - the extra brings pyEDAA.Reports and docstr_coverage.
    • The report pages say they are visualized by pyTooling.Sphinx.
    • A local build with the generated reports has no new warning; all four report pages render their tables.

Related Issues and Pull-Requests

pyTooling's RunEntrypoint merges the given environment into the current one
since pyTooling 0e6945a3, so passing a copy without GITHUB_RUN_ID or
GITHUB_REPOSITORY kept the workflow's values. A variable is removed by
mapping it to None.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude
pytooling-claude Bot requested a review from Paebbels as a code owner October 6, 2026 13:31
@pytooling-claude pytooling-claude Bot added the Bug Something isn't working label Oct 6, 2026
@codacy-production

codacy-production Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 3 minor

Alerts:
⚠ 3 issues (≤ 0 issues of at least minor severity)

Results:
3 new issues

Category Results
CodeStyle 3 minor

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.60%. Comparing base (9459f8d) to head (bbdfdae).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #14      +/-   ##
==========================================
+ Coverage   89.48%   89.60%   +0.12%     
==========================================
  Files           8        8              
  Lines        3253     3253              
  Branches      571      571              
==========================================
+ Hits         2911     2915       +4     
+ Misses        235      230       -5     
- Partials      107      108       +1     
Flag Coverage Δ
unittests 89.60% <ø> (+0.12%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

…sphinx-reports

pyTooling.Sphinx registers the domain 'report' itself since its #20, so
enabling 'sphinx_reports' too ends the build with 'domain report already
registered'. The configuration values take the 'pyTooling_' names; the extra
'reports' brings pyEDAA.Reports and docstr_coverage.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude pytooling-claude Bot changed the title Remove a workflow's variables from a program's environment with None Repair the pipeline after pyTooling's and pyTooling.Sphinx' changes Oct 6, 2026
@pytooling-claude pytooling-claude Bot added the Documentation Improvements or additions to documentation label Oct 6, 2026
Comment thread tests/app/Program.py Resolved
…tWithout'

Each test removes a single variable, so the mapping to None is written where it is used.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@Paebbels
Paebbels merged commit b136952 into dev Oct 6, 2026
36 of 46 checks passed
@Paebbels
Paebbels deleted the claude/test-environment-removal branch October 6, 2026 20:06
@pytooling-claude pytooling-claude Bot mentioned this pull request Oct 6, 2026
This was referenced Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants