Skip to content

Perf/playground scenario generator 652#705

Merged
nanaf6203-bit merged 6 commits into
MettaChain:mainfrom
warisu:perf/playground-scenario-generator-652
Jun 26, 2026
Merged

Perf/playground scenario generator 652#705
nanaf6203-bit merged 6 commits into
MettaChain:mainfrom
warisu:perf/playground-scenario-generator-652

Conversation

@warisu

@warisu warisu commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

📝 Pull Request Summary

Description

This PR satisfies Issue #652 by extending scripts/playground.sh to capture, format, and serialize active cargo contract call traces and node events into an exportable file target (docs/playground_scenario.json).

Key Modifications

  • Unified Telemetry Stream Buffering: Injected local append channels ($INTERACTION_LOG_TMP) within run_call loops to preserve call arguments and emitted event logs without altering human-facing stderr/stdout boundaries.
  • Trace Processing Pipeline: Developed generate_playground_scenario() to dynamically scan traces, isolate exact text arrays via string tokens, and pass structured parameters using secure native JSON formatters (jq).
  • Clean Termination Lifecycle: Updated option 0 from an unverified termination block into a dedicated compilation and workspace directory garbage cleanup handler.

Closes #652
Closes #650
Closes #651
Closes #653

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@warisu Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@warisu please resolve conflicts, so we can merge

@nanaf6203-bit nanaf6203-bit merged commit e320e82 into MettaChain:main Jun 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants