Skip to content

chore(version-scanner): configure GHA to use targets file for multi-version scanning#17538

Merged
chalmerlowe merged 13 commits into
mainfrom
feat/version-scanner-pr1
Jun 23, 2026
Merged

chore(version-scanner): configure GHA to use targets file for multi-version scanning#17538
chalmerlowe merged 13 commits into
mainfrom
feat/version-scanner-pr1

Conversation

@chalmerlowe

Copy link
Copy Markdown
Contributor

This PR configures the Automated Dependency Version Scanner GHA workflow to use a YAML targets file instead of hardcoded dependency/version parameters, and limits scanning to the 31 handwritten and hybrid packages for speed.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for scanning multiple target dependencies and versions simultaneously using a YAML targets file. It refactors file reading operations into a centralized, safe helper function, updates the CLI to accept a --targets-file argument, and adds comprehensive tests for the new functionality. The review feedback highlights three key areas for improvement: catching ValueError to robustly handle potential UnicodeDecodeError exceptions during file reading, enforcing that version numbers in the targets YAML file are quoted strings to prevent float truncation (e.g., 3.10 becoming 3.1), and tightening CLI argument validation to prevent confusing combinations of single-target options and the targets file.

Comment thread scripts/version_scanner/version_scanner.py Outdated
Comment thread scripts/version_scanner/version_scanner.py Outdated
Comment thread scripts/version_scanner/version_scanner.py Outdated

@chalmerlowe chalmerlowe Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment for reviewer: we pulled out the match variable from many of the following tests to consolidate into a sample_match test fixture, reducing duplication.

@chalmerlowe chalmerlowe force-pushed the feat/version-scanner-pr1 branch from d7f1e71 to 66eabc1 Compare June 23, 2026 15:57
@chalmerlowe chalmerlowe marked this pull request as ready for review June 23, 2026 16:23
@chalmerlowe chalmerlowe requested a review from a team as a code owner June 23, 2026 16:23
@chalmerlowe chalmerlowe merged commit 204667b into main Jun 23, 2026
33 checks passed
@chalmerlowe chalmerlowe deleted the feat/version-scanner-pr1 branch June 23, 2026 16:23
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.

2 participants