Repository navigation
test(templates): validate generated Smart Contract Cargo metadata - #289
ademolabiyi92-design wants to merge 2 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Maintainer validation note: the focused Cargo metadata and diagnostic tests are useful, but the PR body currently records 29 full-suite failures and 12 remaining repository typecheck diagnostics, with repository lint findings also outstanding. Please keep this PR unmerged until the current full CI matrix is green at the exact proposed head SHA, including full tests, typecheck, lint and the Linux smoke workflow. Focused passing tests do not replace repository-wide acceptance. No merge is approved by this comment. |
|
Maintainer scope decision for #289: The PR currently combines the #148 Smart Contract Cargo metadata conformance work with unrelated production fixes in the diagnostic timeout path ( Please keep #289 limited to the Cargo metadata conformance tests and their directly related documentation. Move the diagnostic timeout, redaction, and generator compilation repairs into separate, narrowly scoped PRs linked to their own issues (or request explicit maintainer approval for a clearly documented expanded scope before proceeding). The protected This is not merge approval. The PR must also satisfy the full current CI, typecheck, lint, and Linux smoke requirements at the exact proposed head SHA before merge is considered. |
dDevAhmed
left a comment
There was a problem hiding this comment.
Thanks for the Cargo metadata coverage. Please narrow this PR to the #148 Smart Contract metadata work only.
The production compilation/diagnostic/redaction repairs in this PR overlap with the separate maintainer recovery track now being validated in PR #297. Please remove these overlapping production changes from this contributor PR:
src/diagnostics/process.tssrc/diagnostics/git.tssrc/output/redaction.tssrc/validate.ts- The diagnostic timeout tests and unrelated changeset entries that exist solely for those production fixes.
Keep the Cargo metadata tests and their focused contributor documentation. Do not remove or bypass protected-surface controls; #148 needs the required protected-surface classification/maintainer approval before protected paths are accepted. Please update the branch and request re-review when the diff is limited to #148.
No merge is authorized while this review is outstanding.
|
This Stellar Wave PR has no contributor commit or progress comment for 4 days. A maintainer should now review whether to retain or release the assignment. The automation does not close the PR or change the Drips assignment. |
|
This Stellar Wave PR has no contributor commit or progress comment for 48 hours. Please post a concise update, push current progress, or tell the maintainer if the issue should be released. |
|
Maintainer scope reconciliation: please split this into a Cargo metadata-only PR for #148 and a separate production-diagnostics/redaction PR with its own accurately scoped, open issue. The metadata PR should not modify src/output/redaction.ts, production timeout/diagnostic handling, or unrelated changeset files. Do not weaken the contributor guard or add protected-surface merely to bypass the scope check. Keep this PR open while the split is prepared; the current head remains blocked by the contributor guard and CI. |
Summary
Add Cargo metadata conformance coverage for generated Smart Contract projects, and repair the production compilation errors that prevented the linked CLI smoke job from running.
Related Issue
Closes #148
Scope
Testing
Windows / Node 24.21.0, Rust/Cargo 1.98.1:
npm ci --ignore-scripts --no-audit --no-fund: passed.npm run build: passed; all 12 production TypeScript errors resolved.git diff --check: passed.--maxWorkers=2): 1,757 passed, 29 failed, 5 skipped. Remaining failures are in unchanged suites, including Windows symlink permissions, workflow policy checks and other existing behavior; the previous run had 70 failures.Security Impact
Restore references to the already-defined redaction expressions; existing secret-fixture tests pass. Timeout classification uses the structured error code and does not expose raw process output. The protected
src/output/redaction.tsfix and changeset require maintainer scope review: issue #148 currently lacks theprotected-surfacelabel enforced by the PR guard. No guard or workflow is weakened.Release Impact
Restore CLI compilation, diagnostic timeout guidance and the existing output-redaction pipeline.
Documentation
Checklist