Skip to content

Commit 9647155

Browse files
Trottaddaleax
authored andcommitted
test: move tick-processor tests to own directory
The tick-processor tests are inherently non-deterministic. They therefore have false negatives from time to time. They also sometimes leave extra processes running. Move them to their own directory until these issues are sorted. Note that this means that the tests will not be run in CI. Like the inspector tests and other tests, they will have to be run manually when they are wanted. PR-URL: #9506 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Matthew Loring <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 342d8e0 commit 9647155

9 files changed

+24
-4
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ test-debugger: all
241241
test-inspector: all
242242
$(PYTHON) tools/test.py inspector
243243

244+
test-tick-processor: all
245+
$(PYTHON) tools/test.py tick-processor
246+
244247
test-known-issues: all
245248
$(PYTHON) tools/test.py known_issues
246249

test/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ Various tests that are run sequentially.
122122

123123
Test configuration utility used by various test suites.
124124

125+
### tick-processor
126+
127+
Tests for the V8 tick processor integration. The tests are for the logic in
128+
`lib/internal/v8_prof_processor.js` and `lib/internal/v8_prof_polyfill.js`. The
129+
tests confirm that the profile processor packages the correct set of scripts
130+
from V8 and introduces the correct platform specific logic.
131+
132+
| Runs on CI |
133+
|:----------:|
134+
| No |
135+
125136
### timers
126137

127138
Tests for [timing utilities](https://nodejs.org/api/timers.html) (`setTimeout`

test/parallel/parallel.status

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ prefix parallel
1515
[$arch==arm || $arch==arm64]
1616

1717
[$system==solaris] # Also applies to SmartOS
18-
test-tick-processor-unknown: PASS,FLAKY
1918

2019
[$system==freebsd]
2120

test/parallel/test-tick-processor-unknown.js renamed to test/tick-processor/test-tick-processor-unknown.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
const common = require('../common');
33

44
// TODO(mhdawson) Currently the test-tick-processor functionality in V8
5-
// depends on addresses being smaller than a full 64 bits. Aix supports
5+
// depends on addresses being smaller than a full 64 bits. AIX supports
66
// the full 64 bits and the result is that it does not process the
77
// addresses correctly and runs out of memory
88
// Disabling until we get a fix upstreamed into V8
99
if (common.isAix) {
10-
common.skip('Aix address range too big for scripts.');
10+
common.skip('AIX address range too big for scripts.');
1111
return;
1212
}
1313

@@ -21,7 +21,7 @@ const base = require('./tick-processor-base.js');
2121
// Unknown checked for to prevent flakiness, if pattern is not found,
2222
// then a large number of unknown ticks should be present
2323
base.runTest({
24-
pattern: /LazyCompile.*\[eval\]:1|.*% UNKNOWN/,
24+
pattern: /LazyCompile.*\[eval]:1|.*% UNKNOWN/,
2525
code: `function f() {
2626
for (var i = 0; i < 1000000; i++) {
2727
i++;

test/tick-processor/testcfg.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import sys, os
2+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
3+
import testpy
4+
5+
def GetConfiguration(context, root):
6+
return testpy.SimpleTestConfiguration(context, root, 'tick-processor')

vcbuild.bat

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ if /i "%1"=="test-simple" set test_args=%test_args% sequential parallel -J&got
6363
if /i "%1"=="test-message" set test_args=%test_args% message&goto arg-ok
6464
if /i "%1"=="test-gc" set test_args=%test_args% gc&set buildnodeweak=1&goto arg-ok
6565
if /i "%1"=="test-inspector" set test_args=%test_args% inspector&goto arg-ok
66+
if /i "%1"=="test-tick-processor" set test_args=%test_args% tick-processor&goto arg-ok
6667
if /i "%1"=="test-internet" set test_args=%test_args% internet&goto arg-ok
6768
if /i "%1"=="test-pummel" set test_args=%test_args% pummel&goto arg-ok
6869
if /i "%1"=="test-all" set test_args=%test_args% sequential parallel message gc inspector internet pummel&set buildnodeweak=1&set jslint=1&goto arg-ok

0 commit comments

Comments
 (0)