Re-enable canLockAllJSContexts in Runtime_tests.cpp

未关闭
#227 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp, typescript

调研方向

Start with valdi/test/integration/Runtime_tests.cpp and the standalone test host that creates the root JS runtime. Trace how lockAllJSContexts dispatches to worker runtimes and where synchronous main-thread-to-worker dispatch is rejected. Choose one of the two approaches in the issue, remove the DISABLED_ prefix, then run the focused test and full //valdi:test_integration target.

由索引模型根据 Issue 内容生成。

描述

RuntimeFixture.DISABLED_canLockAllJSContexts in valdi/test/integration/Runtime_tests.cpp is disabled because it aborts the whole test binary.

The standalone test runtime runs the root JS runtime on the test's main thread. lockAllJSContexts synchronously locks every worker runtime, and the runtime forbids a synchronous dispatch from the main thread to a worker, so the call aborts.

What to do, either:

  • Run the root JS runtime off the main thread in the standalone test host, or
  • Make lockAllJSContexts lock worker runtimes without a synchronous main-thread-to-worker dispatch.

Then remove the DISABLED_ prefix.

How to run

bazel test //valdi:test_integration --test_filter='*canLockAllJSContexts*' --test_arg=--gtest_also_run_disabled_tests

Done when: the test runs without DISABLED_ and the full //valdi:test_integration target passes.

See CONTRIBUTING.md before opening a pull request.

主要语言
C++
星标
16.4k
派生
539
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Snapchat/Valdi 的其他 Issue

查看 Snapchat/Valdi 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。