Skip to content

chore(meta): harden version-linearity script and ci pin#2

Merged
cchinchilla-dev merged 1 commit intomainfrom
chore/version-linearity-hardening
Apr 29, 2026
Merged

chore(meta): harden version-linearity script and ci pin#2
cchinchilla-dev merged 1 commit intomainfrom
chore/version-linearity-hardening

Conversation

@cchinchilla-dev
Copy link
Copy Markdown
Owner

Ports the Copilot review fixes from agentloom #136.

  • check_version_linearity.py: catch TOMLDecodeError, KeyError, TypeError so CI failures are actionable.
  • 2 regression tests for malformed pyproject and missing [project].version.
  • Reorder spec assertion before module_from_spec; drop # type: ignore.
  • Pin actions/setup-python by SHA.

Tests: 11/11 green. python scripts/check_version_linearity.pyOK: 0.1.1.

Copilot AI review requested due to automatic review settings April 29, 2026 18:40
@github-actions github-actions Bot added the ci label Apr 29, 2026
@cchinchilla-dev cchinchilla-dev merged commit da4ee93 into main Apr 29, 2026
10 checks passed
@cchinchilla-dev cchinchilla-dev deleted the chore/version-linearity-hardening branch April 29, 2026 18:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Hardens the repo’s version-linearity CI gate by improving error reporting in the check_version_linearity script, adding regression tests for malformed/missing version metadata, and supply-chain hardening in CI via action pinning.

Changes:

  • Add actionable failure messages for malformed pyproject.toml and missing [project].version.
  • Add regression tests covering malformed TOML and missing version key.
  • Pin actions/setup-python by commit SHA in CI and remove an unnecessary # type: ignore in the script loader test helper.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/scripts/test_version_linearity.py Adds regression tests for malformed/missing pyproject.toml version and tightens module import helper typing.
scripts/check_version_linearity.py Wraps TOML parsing with targeted exception handling to produce clearer CI failures.
.github/workflows/ci.yml Pins actions/setup-python to a specific SHA for more deterministic, hardened CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants