moonbitlang / moon

The build system and package manager for MoonBit
https://moonbitlang.github.io/moon/
GNU Affero General Public License v3.0
136 stars 11 forks source link

Report a bug in the moon test cmd #206

Closed guuzaa closed 2 weeks ago

guuzaa commented 2 weeks ago

Bug Report

Environment

OS

Operating System: Linux 4.19.112-2.el8.x86_64

MoonBit CLI Tools Version

moon 0.1.20240823 (f608aa3 2024-08-23) ~/.moon/bin/moon
moonc v0.1.20240823+c622a5ab0 ~/.moon/bin/moonc
moonrun 0.1.20240822 (efda7a5 2024-08-22) ~/.moon/bin/moonrun

Steps to Reproduce

  1. Upgrade moon toolchain by moon upgrade.
  2. Open the core repo by vscode.
  3. Run moon test in the terminal.

Expected Behavior

All test cases pass in no time.

Actual Behavior

It takes a long time until most test cases failed as below. image

Checklist

Young-Flash commented 2 weeks ago

hi, have you try moon clean before moon test? maybe there are some artifact generated by old version toolchain

image
guuzaa commented 2 weeks ago

After I run moon clean, all test cases pass quickly.

guuzaa commented 2 weeks ago

Before that, when running moon test --target wasm-gc -p moonbitlang/core/builtin -f array_test.mbt, the test cases pass. Why moon test is different from the one above? Why not let moon test clean old artifacts

Young-Flash commented 2 weeks ago

moon test will not clean old artifacts as we aim for an incremental build