Skip to content

refactor: documents clarification #10

Merged
hayabusa-cloud merged 2 commits into
mainfrom
refactor/pause
May 4, 2026
Merged

refactor: documents clarification #10
hayabusa-cloud merged 2 commits into
mainfrom
refactor/pause

Conversation

@hayabusa-cloud

Copy link
Copy Markdown
Owner

Summary

This pull request updates documentation and code comments to clarify the behavior of the Pause function, especially regarding its use of CPU pause hints and its behavior across different platforms.
It also upgrades GitHub Actions workflow dependencies and adds timeouts to Go test invocations for improved CI reliability.

Signed-off-by: Robin He <git@hybscloud.com>
Signed-off-by: Robin He <git@hybscloud.com>
Copilot AI review requested due to automatic review settings May 4, 2026 09:17
@hayabusa-cloud hayabusa-cloud self-assigned this May 4, 2026
@codecov

codecov Bot commented May 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI 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.

Pull request overview

This pull request clarifies the semantics of spin.Pause across architectures (especially wasm/fallback behavior), updates related README/test wording, and adjusts CI to add test timeouts while upgrading GitHub Actions dependencies.

Changes:

  • Clarify Pause(cycles ...int) as a “pause-hint repeat count” (default 30) rather than a calibrated CPU-cycle delay, and document wasm/fallback yielding behavior.
  • Update pause_test.go and translated READMEs to match the clarified Pause semantics/terminology.
  • Update CI workflow action versions and add go test -timeout 120s to reduce hangs.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Expands Pause API description to cover default count and wasm/fallback behavior.
README.zh-CN.md Same Pause clarification in Simplified Chinese.
README.ja.md Same Pause clarification in Japanese.
README.fr.md Same Pause clarification in French.
README.es.md Same Pause clarification in Spanish.
pause.go Updates exported Pause doc comment to describe behavior per target.
pause_test.go Updates test comments to use “pause hints” terminology.
.github/workflows/ci.yml Adds Go test timeouts and bumps action versions used in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pause.go
@hayabusa-cloud hayabusa-cloud merged commit ad2b212 into main May 4, 2026
17 checks passed
@hayabusa-cloud hayabusa-cloud deleted the refactor/pause branch May 4, 2026 09:22
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