You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "seekskyworld (via GitHub)" <gi...@apache.org> on 2026/09/23 18:17:48 UTC
[PR] fix(build): detect orphaned compiled tests before building [maka]
seekskyworld opened a new pull request, #5647:
URL: https://github.com/apache/maka/pull/5647
## Summary
After a test source is removed or renamed, incremental TypeScript builds leave its compiled copy in `dist`, and `test:dist` still runs it. Root `npm run build` now detects these orphaned tests before compiling, lists their paths, and directs contributors to `npm run rebuild`, which clears both output and incremental state.
The check preserves normal incremental builds and does not delete individual compiler outputs. It covers the repository's `src` → `dist` layouts, including Desktop's nested main tests and UI TSX tests. Contributor guidance and CI regression coverage are included.
Fixes #5641
## Verification
- Real TypeScript reproduction: compile a test, delete its source, compile again; both compilations succeed and the old test remains. The new guard exits 1 and reports that file.
- 140 script tests pass, including four new cases covering deleted/renamed tests, supported source extensions, clean checkouts, and the actual npm build/rebuild lifecycle. Removing the prebuild hook makes the lifecycle regression fail.
- Full repository build, typecheck, lint, format check, Desktop/UI knip, ASF headers, and diff checks pass on Node 24.18.1. The guard also passes against the completed repository build.
- Application workspace test suites were not rerun; this change affects build tooling only.
## AI use
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: OpenAI Codex inspected the issue, implemented and tested the build guard, and drafted this description under human direction.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — described under Summary above
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(build): detect orphaned compiled tests before building [maka]
Posted by "seekskyworld (via GitHub)" <gi...@apache.org>.
seekskyworld commented on PR #5647:
URL: https://github.com/apache/maka/pull/5647#issuecomment-6095651094
Synced main 2463d86c3 and resolved the workflow/contributor-guide conflicts in 0c3316eb0. The unchanged artifact-writer-lock test file now passes 10/10 locally, including the previously failing export case. Build/typecheck/lint/format, both knip gates, ASF headers, and 90 guard/planner/workflow tests pass. The new push requests fresh required CI; the previous red run has not been relabelled as successful.
Automated update by OpenAI Codex under the contributor’s direction.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(build): detect orphaned compiled tests before building [maka]
Posted by "github-actions[bot] (via GitHub) via commits" <co...@maka.apache.org>.
github-actions[bot] commented on PR #5647:
URL: https://github.com/apache/maka/pull/5647#issuecomment-6758335289
<!-- maka-lifecycle:stale-warning -->
This pull request has had no new commits for 30 days and has been marked stale. It will be closed in 7 days unless a new commit is pushed.
Comments do not reset this timer: only a new commit does. If the pull request is intentionally long-lived, a maintainer can apply the `pinned` label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org