Skip to content

chore: fix test failures on mf-layers#12992

Merged
ScriptedAlchemy merged 1 commit into
feat/mf-layersfrom
cursor/ci-test-failures-9a57
Feb 9, 2026
Merged

chore: fix test failures on mf-layers#12992
ScriptedAlchemy merged 1 commit into
feat/mf-layersfrom
cursor/ci-test-failures-9a57

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Contributor

Summary

Fixes intermittent CI failures in native watcher tests. This PR improves build event waiting and handling by introducing a timeout mechanism and retrying native watcher step changes on timeout to prevent missed rebuilds when the watcher isn't ready.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Open in Cursor Open in Web

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@cursor

cursor Bot commented Feb 9, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 5 projects in monorepo, 0 projects with changes.

📊 Quick Summary
Project Total Size Change
react-10k 5.7 MB 0
react-1k 825.4 KB 0
react-5k 2.7 MB 0
rome 984.2 KB 0
ui-components 2.2 MB 0

Generated by Rsdoctor GitHub Action

@ScriptedAlchemy ScriptedAlchemy changed the title Ci test failures chore: fix test failures on mf-layers Feb 9, 2026
@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

📦 Binary Size-limit

Comparing 65b1912 to feat: add support for readonly persistent cache (#12902) by Cole Ellison

❌ Size increased by 26.88KB from 48.59MB to 48.62MB (⬆️0.05%)

@codspeed-hq

codspeed-hq Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing cursor/ci-test-failures-9a57 (65b1912) with feat/mf-layers (12fdb20)

Summary

✅ 16 untouched benchmarks
⏩ 1 skipped benchmark1

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports.

@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review February 9, 2026 07:37
@ScriptedAlchemy ScriptedAlchemy merged commit 75af9c2 into feat/mf-layers Feb 9, 2026
52 of 53 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the cursor/ci-test-failures-9a57 branch February 9, 2026 07:37

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

Copy link
Copy Markdown

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: 65b1912264

ℹ️ 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".

if (delay > 0) {
await new Promise((resolve) => setTimeout(resolve, delay));
}
copyDiff(path.join(context.getSource(), step), tempDir, false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Skip duplicate copyDiff on timeout retry

When nativeWatcher times out, this loop reruns copyDiff against the same step directory, but copyDiff treats DELETE marker files as fs.unlinkSync(destFile) and throws if the file was already removed on the first attempt. I checked tests/rspack-test/NativeWatcher.part*.test.js (which run watchCases) and those cases include DELETE markers such as watchCases/recover-from-error/delete-file/1/file.js, so a timeout now turns into an ENOENT failure on retry instead of a clean second build attempt.

Useful? React with 👍 / 👎.

ScriptedAlchemy added a commit that referenced this pull request Mar 7, 2026
test: retry native watcher watch steps

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
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