Skip to content

Resolving failing test issue#31562

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-test
May 11, 2026
Merged

Resolving failing test issue#31562
pelikhan merged 2 commits into
mainfrom
copilot/fix-test

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 11, 2026

Pull request created by AI Agent

Copilot AI and others added 2 commits May 11, 2026 18:10
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review May 11, 2026 18:47
Copilot AI review requested due to automatic review settings May 11, 2026 18:47
@pelikhan pelikhan merged commit e82d755 into main May 11, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/fix-test branch May 11, 2026 18:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the live GitHub API integration test for computeFrontmatterHash to avoid failing CI runs when GitHub API rate limiting occurs.

Changes:

  • Wraps the live computeFrontmatterHash() call in a try/catch.
  • Treats detected “rate limit” errors as a reason to stop the test early (effectively skipping the live assertion path).
Show a summary per file
File Description
actions/setup/js/frontmatter_hash_github_api.test.cjs Adds rate-limit handling to the live GitHub API integration test to reduce CI flakiness.

Copilot's findings

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment on lines +406 to +410
let hash;
try {
hash = await computeFrontmatterHash(workflowPath, {
fileReader,
});
Comment on lines +411 to +414
} catch (err) {
if (err.message?.toLowerCase().includes("rate limit")) {
console.log("Skipping live API test - GitHub API rate limit exceeded");
console.log("This is expected when the API rate limit is reached during CI runs");
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.

3 participants