Skip to content

Refactor performance test into mise task#396

Merged
boykush merged 2 commits intomainfrom
claude/add-mise-perf-task-VGNU7
Feb 14, 2026
Merged

Refactor performance test into mise task#396
boykush merged 2 commits intomainfrom
claude/add-mise-perf-task-VGNU7

Conversation

@boykush
Copy link
Owner

@boykush boykush commented Feb 14, 2026

Summary

Extracted the performance testing logic from the GitHub Actions workflow into a reusable mise task (.mise-tasks/perf/test). This improves maintainability by centralizing the test logic and allows it to be run locally as well as in CI.

The workflow now simply invokes mise run perf:test instead of containing all the build timing and threshold checking logic inline. The task handles:

  • Building scraps in release mode
  • Cloning the boykush/wiki repository
  • Running the build with timing measurements
  • Checking against the 4-second threshold
  • Outputting results for GitHub Actions integration

Related Issues

Additional Notes

This refactoring makes the performance test easier to run locally for development and testing purposes, while maintaining the same CI behavior. The mise task outputs duration and status variables that the workflow consumes for PR comments.

https://claude.ai/code/session_01CoxJUJYFYayKoUEBhtU5Cf

Allow running performance tests locally via `mise run perf:test`.
Mirrors the CI performance workflow: builds in release mode,
clones boykush/wiki, and measures scraps build time against
the 4-second threshold.

https://claude.ai/code/session_01CoxJUJYFYayKoUEBhtU5Cf
Replace inline build/test steps in performance.yml with
`mise run perf:test`. The mise task outputs duration and status
to GITHUB_OUTPUT when running in CI, keeping PR comment
functionality intact.

https://claude.ai/code/session_01CoxJUJYFYayKoUEBhtU5Cf
@github-actions
Copy link

Performance Test Results 🚀

Build Time: 2.777 seconds
Status: ✅ PASS

Executed with: scraps build -v
Repository: boykush/wiki
Runner: Ubuntu latest

@boykush boykush merged commit 255aab7 into main Feb 14, 2026
2 checks passed
@boykush boykush deleted the claude/add-mise-perf-task-VGNU7 branch February 14, 2026 06:13
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