Skip to content

Commit ac16880

Browse files
TrottMylesBorins
authored andcommitted
doc: prepare for v8/V8 linting in doc text
PR-URL: #17163 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 52ea2cb commit ac16880

13 files changed

+42
-18
lines changed

doc/api/all.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!--lint disable prohibited-strings-->
12
@include documentation
23
@include synopsis
34
@include assert

doc/api/process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1459,9 +1459,9 @@ tarball.
14591459
* `lts` {string} a string label identifying the [LTS][] label for this release.
14601460
This property only exists for LTS releases and is `undefined` for all other
14611461
release types, including _Current_ releases. Currently the valid values are:
1462-
- `'Argon'` for the v4.x LTS line beginning with v4.2.0.
1463-
- `'Boron'` for the v6.x LTS line beginning with v6.9.0.
1464-
- `'Carbon'` for the v8.x LTS line beginning with v8.9.1.
1462+
- `'Argon'` for the 4.x LTS line beginning with 4.2.0.
1463+
- `'Boron'` for the 6.x LTS line beginning with 6.9.0.
1464+
- `'Carbon'` for the 8.x LTS line beginning with 8.9.1.
14651465

14661466
For example:
14671467

doc/changelogs/CHANGELOG_ARCHIVE.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js ChangeLog Archive
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>v0.11</th>

doc/changelogs/CHANGELOG_IOJS.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# io.js ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>v3</th>

doc/changelogs/CHANGELOG_V010.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 0.10 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th colspan="2">Stable</th>

doc/changelogs/CHANGELOG_V012.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 0.12 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>Stable</th>

doc/changelogs/CHANGELOG_V4.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 4 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>LTS 'Argon'</th>

doc/changelogs/CHANGELOG_V5.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 5 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>Stable</th>

doc/changelogs/CHANGELOG_V6.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 6 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>LTS 'Boron'</th>

doc/changelogs/CHANGELOG_V7.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 7 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th title="Previously called 'Stable'">Current</th>

doc/changelogs/CHANGELOG_V8.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 8 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>LTS 'Carbon'</th>

doc/changelogs/CHANGELOG_V9.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Node.js 9 ChangeLog
22

3+
<!--lint disable prohibited-strings-->
4+
35
<table>
46
<tr>
57
<th>Current</th>

doc/guides/maintaining-V8.md

+18-15
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,16 @@ to be cherry-picked in the Node.js repository and V8-CI must test the change.
181181

182182
* For each abandoned V8 branch corresponding to an LTS branch that is affected by the bug:
183183
* Open a cherry-pick PR on nodejs/node targeting the appropriate *vY.x-staging* branch (e.g. *v6.x-staging* to fix an issue in V8-5.1).
184-
* On Node.js < 9.0.0: Increase the patch level version in v8-version.h. This will not cause any problems with versioning because V8 will not publish other patches for this branch, so Node.js can effectively bump the patch version.
184+
* On Node.js < 9.0.0: Increase the patch level version in `v8-version.h`. This will not cause any problems with versioning because V8 will not publish other patches for this branch, so Node.js can effectively bump the patch version.
185185
* On Node.js >= 9.0.0: Increase the `v8_embedder_string` number in `common.gypi`.
186186
* In some cases the patch may require extra effort to merge in case V8 has changed substantially. For important issues we may be able to lean on the V8 team to get help with reimplementing the patch.
187187
* Run the Node.js [V8-CI](https://ci.nodejs.org/job/node-test-commit-v8-linux/) in addition to the [Node.js CI](https://ci.nodejs.org/job/node-test-pull-request/).
188188

189-
An example for workflow how to cherry-pick consider the following bug:
190-
https://crbug.com/v8/5199. From the bug we can see that it was merged by V8 into
191-
5.2 and 5.3, and not into V8 5.1 (since it was already abandoned). Since Node.js
192-
`v6.x` uses V8 5.1, the fix needed to cherry-picked. To cherry-pick, here's an
193-
example workflow:
189+
An example for workflow how to cherry-pick consider the bug
190+
[RegExp show inconsistent result with other browsers](https://crbug.com/v8/5199).
191+
From the bug we can see that it was merged by V8 into 5.2 and 5.3, and not into
192+
V8 5.1 (since it was already abandoned). Since Node.js `v6.x` uses V8 5.1, the
193+
fix needed to be cherry-picked. To cherry-pick, here's an example workflow:
194194

195195
* Download and apply the commit linked-to in the issue (in this case a51f429). `curl -L https://github.com/v8/v8/commit/a51f429.patch | git am -3 --directory=deps/v8`. If the branches have diverged significantly, this may not apply cleanly. It may help to try to cherry-pick the merge to the oldest branch that was done upstream in V8. In this example, this would be the patch from the merge to 5.2. The hope is that this would be closer to the V8 5.1, and has a better chance of applying cleanly. If you're stuck, feel free to ping @ofrobots for help.
196196
* Modify the commit message to match the format we use for V8 backports and replace yourself as the author. `git commit --amend --reset-author`. You may want to add extra description if necessary to indicate the impact of the fix on Node.js. In this case the original issue was descriptive enough. Example:
@@ -289,7 +289,7 @@ To audit for floating patches:
289289
git log --oneline deps/v8
290290
```
291291

292-
To replace the copy of V8 in Node.js, use the '[update-v8](https://gist.github.com/targos/8da405e96e98fdff01a395bed365b816)' script<sup>2</sup>. For example, if you want to replace the copy of V8 in Node.js with the branch-head for V8 5.1 branch:
292+
To replace the copy of V8 in Node.js, use the `[update-v8](https://gist.github.com/targos/8da405e96e98fdff01a395bed365b816)` script<sup>2</sup>. For example, if you want to replace the copy of V8 in Node.js with the branch-head for V8 5.1 branch:
293293

294294
```shell
295295
cd $NODE_DIR
@@ -306,20 +306,23 @@ This should be followed up with manual refloating of all relevant patches.
306306

307307
The fact that Node.js keeps a vendored, potentially edited copy of V8 in deps/
308308
makes the above processes a bit complicated. An alternative proposal would be to
309-
create a fork of V8 at nodejs/v8 that would be used to maintain the V8 branches.
310-
This has several benefits:
309+
create a fork of V8 at `nodejs/v8` that would be used to maintain the V8
310+
branches. This has several benefits:
311311

312-
* The process to update the version of V8 in Node.js could be automated to track the tips of various V8 branches in nodejs/v8.
313-
* It would simplify cherry-picking and porting of fixes between branches as the version bumps in v8-version.h would happen as part of this update instead of on every change.
312+
* The process to update the version of V8 in Node.js could be automated to track
313+
the tips of various V8 branches in `nodejs/v8`.
314+
* It would simplify cherry-picking and porting of fixes between branches as the version bumps in `v8-version.h` would happen as part of this update instead of on every change.
314315
* It would simplify the V8-CI and make it more automatable.
315-
* The history of the V8 branch in nodejs/v8 becomes purer and it would make it easier to pull in the V8 team for help with reviewing.
316+
* The history of the V8 branch in `nodejs/v8` becomes purer and it would make it
317+
easier to pull in the V8 team for help with reviewing.
316318
* It would make it simpler to setup an automated build that tracks Node.js master + V8 lkgr integration build.
317319

318320
This would require some tooling to:
319321

320322
* A script that would update the V8 in a specific Node.js branch with V8 from upstream (dependent on branch abandoned vs. active).
321-
* We need a script to bump V8 version numbers when a new version of V8 is promoted from nodejs/v8 to nodejs/node.
322-
* Enabled the V8-CI build in Jenkins to build from the nodejs/v8 fork.
323+
* We need a script to bump V8 version numbers when a new version of V8 is
324+
promoted from `nodejs/v8` to `nodejs/node`.
325+
* Enabled the V8-CI build in Jenkins to build from the `nodejs/v8` fork.
323326

324327
## Proposal: Dealing with the need to float patches to a stable/beta
325328

@@ -344,4 +347,4 @@ up working, we will investigate making this change upstream.
344347

345348
<sup>1</sup>Node.js 0.12 and older are intentionally omitted from this document as their support is ending soon.
346349

347-
<sup>2</sup>It seems that @targos is working on port of this script here https://github.com/targos/update-v8.
350+
<sup>2</sup>@targos is working on [a port of this script](https://github.com/targos/update-v8).

0 commit comments

Comments
 (0)