Keep the six-codebase migration-risk run as a labelled regression set

Đang mở
#239 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, git, python
Lĩnh vực
cli, databases, testing

Hướng nghiên cứu

Start with cli/tests/test_migration_risk.py and the release checklist to see how existing false alarm classes and release checks are represented. Then trace the orm-lens migration-risk --format json entry point and its output fields before designing the pinned corpus, labels, and comparison script. Done means all 407 findings are labelled, the script reports zero differences on the current release, and the release checklist includes the manual run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement python

The run behind the 407-alarms write-up (NetBox, PostHog, authentik, Healthchecks, Plane, paperless-ngx) produced a verdict for every critical finding: 2 real, 405 false. The nine false-alarm classes are already cut down into tests in cli/tests/test_migration_risk.py, but the full run is not checked in, so a new class of false alarm would only show up if someone repeats the exercise by hand.

A reader on DEV suggested keeping it (comment): a real corpus with per-finding verdicts is a regression suite most linters never get.

What to build

  • A pinned list of the six projects with the commit each was scanned at.
  • A labelled file per project: one row per finding (file, migration, operation, rule, severity) with a verdict (real / false) and, for false ones, which of the nine causes it was.
  • A script that checks out the pinned commits, runs orm-lens migration-risk --format json, and diffs the result against the labels: new findings, findings that disappeared, severity changes.
  • Run it manually before releases at first; a scheduled CI job can come later, since cloning six large repos is slow.

Done when

  • The labels for all 407 findings are in the repo.
  • The script reports zero differences on the current release.
  • The release checklist mentions running it.
Ngôn ngữ chính
Python
Star
84
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của FROWNINGdev/django-orm-lens

Tất cả issue của FROWNINGdev/django-orm-lens

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.