Skip to content

fix: ignore fallback resource error in live smoke#54

Merged
jtalk22 merged 1 commit intomainfrom
codex/live-smoke-deterministic
Mar 11, 2026
Merged

fix: ignore fallback resource error in live smoke#54
jtalk22 merged 1 commit intomainfrom
codex/live-smoke-deterministic

Conversation

@jtalk22
Copy link
Owner

@jtalk22 jtalk22 commented Mar 11, 2026

Summary

  • ignore the generic browser console resource failure that accompanies the documented hosted-status fallback
  • keep the public live smoke focused on real Pages regressions, not headless runner fetch noise

Testing

@coderabbitai

This comment has been minimized.

@gemini-code-assist

This comment has been minimized.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to ignore specific resource errors in the live smoke tests to reduce noise. The logic added to normalizeErrors correctly filters out the intended errors. However, the implementation can be simplified. I've provided a suggestion to make the filtering logic more concise.

Comment on lines +135 to +145
return errors.filter((entry) => {
if (/mcp\.revasserlabs\.com\/status/.test(entry)) {
return false;
}

if (entry === "console:Failed to load resource: net::ERR_FAILED") {
return false;
}

return true;
});

Choose a reason for hiding this comment

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

medium

The filter logic can be made more concise by combining the conditions into a single boolean expression. This avoids the verbose if statements and is more idiomatic for a filter callback.

  return errors.filter((entry) => !/mcp\.revasserlabs\.com\/status/.test(entry) && entry !== "console:Failed to load resource: net::ERR_FAILED");

@jtalk22 jtalk22 merged commit 5031420 into main Mar 11, 2026
6 checks passed
@jtalk22 jtalk22 deleted the codex/live-smoke-deterministic branch March 11, 2026 05:25
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 374fd3fa73

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +140 to +142
if (entry === "console:Failed to load resource: net::ERR_FAILED") {
return false;
}

Choose a reason for hiding this comment

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

P2 Badge Limit ignored ERR_FAILED console entries to status fetch

When allowHostedStatusFallback is true, this new condition drops every console:Failed to load resource: net::ERR_FAILED entry, not just the known mcp.revasserlabs.com/status fallback noise. In runLive, that means unrelated failed resource loads (for example CSS/image requests that only surface as this generic console error) can be silently ignored and the smoke test can pass despite a broken page, because the URL-specific filter is only applied to other error entry types. Please scope this suppression to the status request context instead of matching the bare console string globally.

Useful? React with 👍 / 👎.

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.

1 participant