Skip to content

chore: make CI strict — fmt diff + deny-warn - #3

Merged
bobzhang merged 2 commits into
mainfrom
chore/strict-ci
Apr 18, 2026
Merged

bobzhang merged 2 commits into
mainfrom
chore/strict-ci

Conversation

@bobzhang

@bobzhang bobzhang commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

Why

The existing CI workflow uses moon check --warn-list=-a, which
silences every warning including new nightly deprecations. This means
deprecated syntax and APIs sneak in unnoticed.

Tightening it so deprecations become CI errors and get migrated early.

Changes

  • moon fmt && git diff --exit-code — format diff gate
  • moon check --deny-warn — warnings are errors
  • moon test — unchanged

If this PR turns red against main, that's the point: surfacing
outstanding deprecations. They should be fixed in follow-up PRs.

🤖 Generated with Claude Code


Open with Devin

Previously CI ran `moon check --warn-list=-a`, which silenced every
warning including new nightly deprecations. Tightening it so that
deprecation warnings become CI errors and get migrated promptly:

- `moon fmt && git diff --exit-code`  — enforces fmt cleanliness
- `moon check --deny-warn`            — warnings are errors
- `moon test`                         — unchanged

Generated with Claude Code (https://claude.com/claude-code).

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Three small changes to pass the new strict CI:

- moon.pkg: import `moonbitlang/core/test` so the `(it : @test.Test)`
  parameter in test signatures resolves (was [E0071]).
- test files: turn the last `..foo()` in each DotBuilder cascade into
  `.foo()` — the discarded `x..f()` value is now a hard error [E0027].
- README.mbt.md: same cascade fix inside the embedded snippet.

All 28 tests still pass under `moon test`.

Generated with Claude Code (https://claude.com/claude-code).
@bobzhang
bobzhang merged commit f06e48a into main Apr 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant