Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
3e2e84e
feat(version-scanner): support target list inputs via --targets
chalmerlowe Jun 16, 2026
d26715a
feat(version-scanner): simplify targets list input to accept only YAM…
chalmerlowe Jun 17, 2026
156f2b8
test(version-scanner): parametrize targets file failure tests
chalmerlowe Jun 17, 2026
f1c47bb
test(version-scanner): refactor formatting tests to use a shared samp…
chalmerlowe Jun 17, 2026
3c0b8fe
chore(version-scanner): move sample_match fixture to the top of test …
chalmerlowe Jun 17, 2026
00d409d
refactor(version-scanner): consolidate file reading and error handlin…
chalmerlowe Jun 17, 2026
437a13f
test(version-scanner): add parametrized unit tests for _safe_read_fil…
chalmerlowe Jun 17, 2026
5011c0b
chore(version-scanner): configure GHA to use targets file for multi-v…
chalmerlowe Jun 23, 2026
8fc7e61
chore(version-scanner): limit GHA workflow to scan only handwritten a…
chalmerlowe Jun 23, 2026
9f612da
refactor(version-scanner): rename targets file to matrix file to reso…
chalmerlowe Jun 23, 2026
d835491
refactor(version-scanner): rename package list file to example-list-n…
chalmerlowe Jun 23, 2026
66eabc1
fix(version-scanner): address reviewer feedback regarding encoding, f…
chalmerlowe Jun 23, 2026
055975c
feat(version-scanner): support globbing and subpath patterns in ignor…
chalmerlowe Jun 23, 2026
8abd504
feat(version-scanner): implement targeted namespaced ignore pragmas
chalmerlowe Jun 23, 2026
a015856
fix(version_scanner): cast rule name and version to string in re.escape
chalmerlowe Jun 25, 2026
6af4f33
Merge branch 'main' into feat/version-scanner-pr3
chalmerlowe Jun 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/version_scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# Uses -o to output a detailed, raw CSV to a file
# Uses --stdout to print a slim, easier to parse summary to the GitHub Actions UI
# Uses --soft-fail to temporarily limit causing CI/CD failures during the migration to full operation.
python scripts/version_scanner/version_scanner.py -d python -v 3.7 --stdout -o version_scanner_output.csv --soft-fail
python scripts/version_scanner/version_scanner.py --matrix-file scripts/version_scanner/matrix.yaml --package-file scripts/version_scanner/example-list-non-generated-packages.txt --stdout -o version_scanner_output.csv --soft-fail

- name: Upload CSV Results
if: always()
Expand Down
31 changes: 31 additions & 0 deletions scripts/version_scanner/example-list-non-generated-packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
packages/bigframes
packages/bigquery-magics
packages/db-dtypes
packages/django-google-spanner
packages/gapic-generator
packages/google-api-core
# packages/google-api-python-client # non-monorepo, ignore for now.
packages/google-auth
packages/google-auth-httplib2
packages/google-auth-oauthlib
packages/google-cloud-bigquery
packages/pandas-gbq
packages/google-cloud-bigtable
packages/google-cloud-core
packages/google-crc32c
packages/google-cloud-datastore
packages/google-cloud-dns
packages/google-cloud-documentai-toolbox
packages/google-cloud-error-reporting
packages/google-cloud-firestore
packages/google-cloud-logging
packages/google-cloud-ndb
packages/google-cloud-pubsub
packages/google-cloud-runtimeconfig
packages/google-cloud-spanner
packages/google-cloud-storage
packages/google-cloud-testutils
packages/google-resumable-media
packages/proto-plus
packages/sqlalchemy-bigquery
packages/sqlalchemy-spanner
4 changes: 4 additions & 0 deletions scripts/version_scanner/matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python:
- "3.7"
- "3.8"
- "3.9"
6 changes: 0 additions & 6 deletions scripts/version_scanner/small_package_list.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def test_integration_scan(tmp_path):
"-v", "3.7",
"-p", data_dir,
"--config", config_path,
"-o", "scanner_report.csv"
"-o", "scanner_report.csv",
"--soft-fail"
]

result = subprocess.run(cmd, cwd=tmp_path, capture_output=True, text=True, check=True)
Expand Down
Loading
Loading