How should <branch/change checkers> assemble the list of files to check ? #UMDP3_check
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
- 20/100
Hướng nghiên cứu
Bắt đầu bằng cách so sánh các đường dẫn branch, trunk, working-copy, command-line và suite riêng biệt của checker UMDP3 với hành vi fcm bdiff hiện có, bao gồm cả phiên bản git. Xác định những tệp hoặc dòng mà một checker thay đổi nên nhắm đến trong từng ngữ cảnh runtime, đồng thời ghi lại thiết kế và các tiêu chí chấp nhận thu được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This question arises from looking at UMDP3 checker, but it could be applied to any scripts we want to target code being changed.
The original UMDP3 checker was grown not designed. This means it has several, completely separate ways of deciding what files to check based on branch v trunk v WC and command line v suite
Originally, IIRC, as a script run manually on a WC it used output from 'fcm bdiff' to get a list of files to check.
This doesn't work in quite the same way in most other circumstances though.
- in rose-stem it can only see changes committed to the (mirror) branch
- when dealing with the trunk, bdiff produces no results
- When rose-stem is run on a 'test branch' it tries to auto correct to the dev branch.
Ultimately this means that the current structure of the (AI translated code) branches quite early on based on "is trunk" and "is suite" rather than calling a "get checklist" function which could handle a vairety of methods beghind the scene.
The result is a range of code specific to the runtime circumstances (umdp3 checker really is about 3 separate codes with little overlap in anything other than intent...)
Secondary issues are that when working on a WC (and possibly a branch, but not in rose-stem ==I think==) it also relies on the full output of fcm bdiff to only check the changed lines. Or when run in rose stem, it tries to decide if "other repos" (linked tickets) are in play and then tries to check the code in them too - but doesn't have a branch - only the fully extracted code to look at.
At present, the git version of 'fcm bdiff', while superior in many ways to the actual 'fcm bdiff', does not have the option to generate a list of changed/added/deleted lines - It could be added, however I'm not sure we should be restricting the checks to that level....
And /finally/ the output of UMDP3 checker in the automatic tests on the trunk (nigtly/weekly) produce so much spurious output, it seems noone is looking at them any more.
So the question is : what is it we want any change checker to check ?
- All the code ?
- or only the changed files ?
- or only the changed lines ?
approach 1 has the following issues :
- time/performance - there might be a lot of code to check.
- spotting 'issues' that pre-existed the change in question (devs don't like this)
approach 2 can still spot 'issues' that aren't a result of the change, but less of them as it's only dealing with a smaller subset of files.
approach 3 is only available when looking at a branch, and has the small hickup that in my tests, it fails to highlight the removal of an "implicit None" as that's not an issue on 'a line' but requires a check which looks at the whole file - which it's currently not getting..
So - as we prgogress from FCM to Git - and I'm looking at it anyway, if we were designing something to target checks within a change - what would we want it to do ?
- Ngôn ngữ chính
- Python
- Star
- 9
- Fork
- 19
- Merge trung bình
- 5 ngày 48 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MetOffice/SimSys_Scripts
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MetOffice/SimSys_Scripts#255 ·
-
Identification of CPP directives in UMDP3_checkerCó thể làm lại được @r-sharp đã nhận 63 ngày trước và không có pull request nào đang mở. Đang mởenhancement
MetOffice/SimSys_Scripts#240 · 1 bình luận · 1 người được giao ·
-
UMDP3 checker incorrectly identifies .....Có thể làm lại được @r-sharp đã nhận 63 ngày trước và không có pull request nào đang mở. Đang mở
MetOffice/SimSys_Scripts#235 · 9 bình luận · 1 người được giao ·
-
UMDP3 checker can't be passed a single file to checkCó thể làm lại được @r-sharp đã nhận 63 ngày trước và không có pull request nào đang mở. Đang mở
MetOffice/SimSys_Scripts#221 · 1 người được giao ·
-
Lowercase and CamelCase checking of module imports in UMDP3 checkerCó thể làm lại được @Pierre-siddall đã nhận 157 ngày trước và không có pull request nào đang mở. Đang mởbug
MetOffice/SimSys_Scripts#220 · 1 người được giao ·
Tất cả issue của MetOffice/SimSys_Scripts
Issue tương tự
-
#bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
apache/superset#44923 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
lawndoc/stack-back#123 ·
-
Add: EntuneĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AbdelStark/awesome-typesafe-jev#187 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
repowise-dev/repowise#2966 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 2 ngày