Skip to content

Syntax tests broke between 11.0.0-alpha.6 and beta.1 #6286

Closed
@cknitt

Description

@cknitt

Alpha.6:

✅ multi printer api tests
✅ Parser make: initializes parser and checking offsets
✅ Parser handles LF correct
✅ Parser handles CRLF correct
✅ utf8 tests
~/projects/cca/rescript-compiler/jscomp/syntax ~/projects/cca/rescript-compiler
✅ No unstaged tests difference.
~/projects/cca/rescript-compiler
Checking code formatting...
✅ Code formatting ok.
make reanalyze
reanalyze.exe -set-exit-code -all-cmt _build/default/jscomp -suppress jscomp/syntax/testrunner -exclude-paths jscomp/outcome_printer,jscomp/ounit_tests,jscomp/ml,jscomp/js_parser,jscomp/frontend,jscomp/ext,jscomp/depends,jscomp/core,jscomp/common,jscomp/cmij,jscomp/bsb_helper,jscomp/bsb
  Analysis reported 0 issues
bash ./scripts/testok.sh
✅ All Tests Passed

Beta.1:

✅ multi printer api tests
Unknown error while trying to print outcome tree.
We don't display all the outcome type errors; try adding the new case to the `try` pattern match.
Fatal error: exception Not_found
~/projects/cca/rescript-compiler/jscomp/syntax ~/projects/cca/rescript-compiler
✅ No unstaged tests difference.
~/projects/cca/rescript-compiler
Checking code formatting...
✅ Code formatting ok.
make reanalyze
reanalyze.exe -set-exit-code -all-cmt _build/default/jscomp -suppress jscomp/syntax/testrunner -exclude-paths jscomp/outcome_printer,jscomp/ounit_tests,jscomp/ml,jscomp/js_parser,jscomp/frontend,jscomp/ext,jscomp/depends,jscomp/core,jscomp/common,jscomp/cmij,jscomp/bsb_helper,jscomp/bsb
  Analysis reported 0 issues
bash ./scripts/testok.sh
✅ All Tests Passed

I see three problems here:

  1. What broke with the outcome printer?
  2. Why do we still get "All Tests Passed" in spite of the exception?
  3. We are not running the syntax tests in CI unless something in the syntax folder changed. We could run them always, but only on our Mac Mini M1, this should not affect total build times then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions