Skip to content

test(workflow): add resource visualization demonstration#10

Merged
Garbee merged 2 commits intomainfrom
copilot/add-cpu-memory-workflow-test
Feb 14, 2026
Merged

test(workflow): add resource visualization demonstration#10
Garbee merged 2 commits intomainfrom
copilot/add-cpu-memory-workflow-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 14, 2026

Adds a workflow test to demonstrate metrics collection across varying workload patterns: CPU-intensive computation, memory allocation/deallocation, and idle periods.

Changes

  • New job test-resource-visualization with three sequential 20-second steps:
    • CPU-intensive: tight loop with floating-point calculations
    • Memory-intensive: allocate ~500MB, hold, then explicitly free
    • Idle: sleep with no resource activity

Example Output

The workflow will generate charts showing:

  • CPU spike during computation step
  • Memory allocation followed by sharp drop after freeing
  • Baseline resource usage during idle period

Each step demonstrates a distinct resource usage pattern, making the time-series visualization easy to interpret.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Add a new test job that demonstrates how the metrics action visualizes resource usage over time by:
- Running CPU-intensive calculations for 20 seconds
- Allocating and holding ~500MB of memory for 20 seconds then freeing it
- Running an idle sleep period for 20 seconds

This workflow helps showcase how the action tracks resource consumption and freed resources in the generated charts.

Co-authored-by: Garbee <868301+Garbee@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow test for CPU and memory usage over time test(workflow): add resource visualization demonstration Feb 14, 2026
Copilot AI requested a review from Garbee February 14, 2026 16:24
@Garbee Garbee marked this pull request as ready for review February 14, 2026 16:28
@Garbee Garbee merged commit a833ec1 into main Feb 14, 2026
7 checks passed
@Garbee Garbee deleted the copilot/add-cpu-memory-workflow-test branch February 14, 2026 19:24
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.

2 participants