Skip to content

Name Python tool configuration in full-suite fallback reasons - #385

Merged
adityankale190895 merged 2 commits into
DiffCI:mainfrom
L-zeus:fix/323-python-tool-config-reasons
Dec 2, 2026
Merged

adityankale190895 merged 2 commits into
DiffCI:mainfrom
L-zeus:fix/323-python-tool-config-reasons

Conversation

@L-zeus

@L-zeus L-zeus commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Closes #323.

When a change already requires the full suite, DiffCI now reports Tool configuration changed: Python packaging settings for uv.toml, poetry.toml, pdm.toml, and hatch.toml, and Tool configuration changed: coverage settings for .coveragerc. The reasons retain the changed path and the existing full-validation suffix. The Python documentation lists all five files.

The analyzer still resolves file readers before formatting the fallback reason. The change preserves the FULL and SELECTIVE decisions, selected and skipped test sets, file reads, and JavaScript coverage handling (#336). Each regression changes one configuration file in a two-test Jest fixture and checks that the plan stays FULL, selects both tests, skips none, and reports the named reason in place of the unknown-file message.

Validation

  • On the original main baseline (8ac61709) with the new cases added, 22 tests passed and all five new cases failed at the reason assertion. With the fix, all 27 passed.
  • Checkout comparisons matched the baseline for all five files declared as explicit pytest inputs and for all seven JavaScript coverage files listed in Name the fallback reason for JavaScript coverage settings #336.
  • On macOS arm64 with Node.js 24.16.0, the signed change passed Core npm ci, typecheck, test (1,558 passed, 10 Cargo-dependent skips), build, agent:check, and benchmark. CLI package install, typecheck, test (649 passed, one Windows-only skip), build, package:check, and package:smoke passed.
  • After main advanced to c6cb141, a local merge preview passed all five new regressions. Its parallel full run encountered two timing-limit failures in existing fuzz and glob tests. The two affected suites passed all 32 tests when rerun at concurrency 1. A matching baseline run also exceeded a fuzz timing limit.
  • npm run audit:boundary exited 1 on the patch and clean main, with byte-identical output on both 8ac61709 and c6cb141: eight release-manifest entries and five import findings.

@adityankale190895
adityankale190895 merged commit 4500401 into DiffCI:main Dec 2, 2026
@adityankale190895

Copy link
Copy Markdown
Member

Merged, thanks @L-zeus! A change to uv.toml, poetry.toml, pdm.toml, hatch.toml or .coveragerc now gives a named reason instead of "Unknown changed file". Your validation notes made this easy to review, especially checking the new cases failed on the baseline first.

The earlier red CI was on our side (a release-manifest gap and a Windows cleanup flake on main), not your change. That's fixed now.

If you'd like another, #336 is the closest match: the JavaScript coverage files (.c8rc, .nycrc, codecov.yml, …) should report the same Tool configuration changed: coverage settings reason you just added for .coveragerc. No pressure, it stays open as a good first issue either way.

If you find DiffCI useful, a star on the repo helps other people find it. Entirely optional.

We also have a Discord if you want to chat about DiffCI: https://discord.gg/vAftSVeYgk

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.

Name the fallback reason for Python packaging and coverage settings

2 participants