Build-test fixtures that no longer test what they claim
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, node.js, ocaml
- Ambito
- testing
Direzione di ricerca
Leggi tests/build_tests/rescript_tools_binary_path/input.js e la configurazione delle relative fixture, poi esamina i file rescript.json di weird_deps e weird_devdeps. Aggiungi un package.json di fixture per rescript_tools_binary_path e imposta le sources delle altre fixture su un elenco vuoto. Il lavoro è completato quando le fixture verificano il comportamento previsto per l’importazione dei package e non elencano più cartelle sorgente eliminate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found by adversarial experiments on semantic analysts.
Each item below is a build-test fixture whose setup no longer matches its purpose.
-
rescript_tools_binary_pathpasses with the import it guards against.input.jsruns the compiledsrc/Main.mjsandsrc/Main.cjsinside the repository.- The fixture has no
package.json, so Node resolves#specifiers in those files against the repository rootpackage.json, which defines#cli/*. - The bug fixed by #8694 (
@module("#cli/bins")emitted into user code) therefore does not reproduce here. The commit message of 45446347c says the test uses its own package.json, but none is checked in. - Reproduction at 8d51b9ce7 in
tests/build_tests/rescript_tools_binary_path, withnode_modules/rescriptlinked to the repo root asinput.jsdoes. The two files contain the JS that bsc emits for the pre-#8694 external:printf 'import * as Bins from "#cli/bins";\nconsole.log(Bins.rescript_tools_exe);\n' > src/Old.mjs printf 'let Bins = require("#cli/bins");\nconsole.log(Bins.rescript_tools_exe);\n' > src/Old.cjs node src/Old.mjs; node src/Old.cjs # both print …/bin/rescript-tools.exe echo '{"name":"user-project","private":true}' > package.json node src/Old.mjs # ERR_PACKAGE_IMPORT_NOT_DEFINED node src/Old.cjs # Error: Cannot find module '#cli/bins' - With that
package.jsonin place, the currentMain.mjsandMain.cjs(importingrescript/tools) still print the binary path. - Fix: check in a fixture
package.json.
-
weird_depsandweird_devdepslist deleted source folders.weird_deps/rescript.jsonandweird_devdeps/rescript.jsonlistsrcandtest, which 4a94e486d (#8709) deleted.- The tests pass because the unresolved-dependency error is reported first.
"sources": []would state the intended setup.
- Lingua principale
- OCaml
- Stelle
- 7.5k
- Fork
- 484
- Merge medio
- 18h 19m
- PR unite (30g)
- 116
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rescript-lang/rescript
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
rescript-lang/rescript#8833 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
rewatch watch on Linux stops watching a source folder when an overlapping recursive source folder is removed from rescript.jsonForse già presa @cknitt l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
rescript-lang/rescript#8825 ·
I maintainer di solito rispondono entro 1 giorno
-
Formatter drops comments in dict patterns, variant spread patterns and dict literal spreadsForse già presa @cknitt l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
rescript-lang/rescript#8820 ·
I maintainer di solito rispondono entro 1 giorno
-
JSX preserve mode spreads an `@unboxed` props record (`{..."x"}` instead of `"x"`)Forse già presa @cknitt l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 25/100
rescript-lang/rescript#8813 ·
I maintainer di solito rispondono entro 1 giorno
-
Compiler crash (matching.ml assertion) on dict and optional-field record patterns mixing a value and `?None` on one keyForse già presa @cknitt l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
rescript-lang/rescript#8810 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rescript-lang/rescript
Issue simili
-
todo type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
RocketChat/Rocket.Chat#42730 ·
I maintainer di solito rispondono entro 1 giorno
-
replay: a run cancelled during environment setup is logged as an ERROR (Instrument drops the cancellation)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
career-ops-hq/career-ops#5183 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 80/100
gems-uff/noworkflow#233 ·
-
lane:repo
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
SPARDiffData/differential-data-collection#42 ·
I maintainer di solito rispondono entro 1 giorno