Grammar check tasks compare unrelated files and skip most of the others
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
- #1262 von @marco-c — ohne Merge geschlossen
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Start in check-grammar-crate.py at the compare-metrics path that invokes json-minimal-tests on the old and new metrics directories. Read the linked json-minimal-tests walk in src/main.rs around the parallel WalkDir zip to confirm the misalignment, then decide whether to sort the inputs or compare entries by relative path instead of filename. Done means every file present in both metric directories is paired with its counterpart, and mismatched old/new files are no longer reported; note that PR #1262 is closed unmerged, so check the comment thread before redoing that approach.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
check-grammar-crate.py compare-metrics runs json-minimal-tests on the two directories containing the old and new metrics. Given two directories, json-minimal-tests walks them in parallel, zipping the two WalkDir iterators, and compares two entries only if their file names are equal.
The two walks are unsorted, and the two directories are filled in a different order by the concurrent runs of rust-code-analysis-cli, so the entries quickly get misaligned. Then:
- files with the same name in different directories are compared with each other, which reports differences that don't exist (e.g. the old metrics of
media/libvpx/config/generic/vp9_rtcd.h, 114 lines, were the ones ofmedia/libvpx/config/linux/ia32/vp9_rtcd.h, 193 lines; same for test262'sprop-desc.jsandshell.js, libffi'sffi.candffitarget.h, ...); - all the other misaligned pairs are skipped, so most files are never compared and real differences can go unnoticed.
In the grammar check tasks for #1253 (https://community-tc.services.mozilla.com/tasks/groups/VF3vy5QbQ7G3-7Pp57HjVQ), all the global sloc differences in mozjs and mozcpp files that parse without errors came from such mismatched pairs.
- Vorherrschende Sprache
- Rust
- Sterne
- 469
- Forks
- 74
- Ø Merge
- 17 Std. 16 Min.
- Gemergte PRs (30 T.)
- 10
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
mozilla/rust-code-analysis#1267 ·
Maintainer antworten meist innerhalb von 1 Tag
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroEvtl. vergeben @marco-c hat das vor 2 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 15/100
mozilla/rust-code-analysis#1266 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
mozilla/rust-code-analysis#1250 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
mozilla/rust-code-analysis#1249 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
mozilla/rust-code-analysis#1248 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in mozilla/rust-code-analysis
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ubugeeei-prod/vize#13586 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
storytold/photocraft#16565 ·
Maintainer antworten meist innerhalb von 1 Tag
-
flaky needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
bherbruck/solvecraft#21315 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
undergroundrap/hatchling#624 ·
Maintainer antworten meist innerhalb von 1 Tag
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveOffenarea:stdlib effort:S impact:low parity type:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag