nodejs / nodejs/node-core-utils

git-node: `git node bisect`

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

还没有人认领这个 Issue。

enhancement
主要语言
JavaScript
星标
314
派生
137
平均合并
2 天 8 小时
30 天内合并 PR
24

描述

https://twitter.com/targos89/status/982158028878196736

Outline:

  • git node bisect --from 20180101 [--to 201810406] /path/to/test.js
  • Detect the right arch, then download correct binaries from https://nodejs.org/download/nightly/ , decompress it, run the test with bin/node, bisect until it finds two consecutive nightlies where the exit code of the test becomes different
    • Let the user configure where the files are downloaded via ncu-config set tmpdir, default can be .ncu/tmp or /tmp
  • Grab the sha from the nightlies, suggest the user to run:
    • git bisect start <nightly1-sha> <nightly2-sha> --
    • git bisect run "make -j8 && ./node /path/to/test.js"

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先检查 node-core-utils 现有的 CLI 入口点,以及对 ncu-config set tmpdir 的配置处理;该 issue 未指定具体的文件或测试。查看 Node.js nightly 的下载布局和提议的 git bisect 命令。当 git node bisect 工作流能够选择架构、下载并运行 nightly、确定退出代码的变化,并建议相应的 Git 命令时,即视为完成。

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

评估

技术栈
git, javascript, node.js
领域
cli, developer-experience
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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