Skip to content

Commit 2ffd13e

Browse files
TrottMylesBorins
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 f707b00 commit 2ffd13e

File tree

9 files changed

+24
-4
lines changed

9 files changed

+24
-4
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ test-debugger: all
238238
test-inspector: all
239239
$(PYTHON) tools/test.py inspector
240240

241+
test-tick-processor: all
242+
$(PYTHON) tools/test.py tick-processor
243+
241244
test-known-issues: all
242245
$(PYTHON) tools/test.py known_issues
243246

test/README.md

Lines changed: 11 additions & 0 deletions
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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ prefix parallel
1616

1717
[$system==solaris] # Also applies to SmartOS
1818
test-debug-signal-cluster : PASS,FLAKY
19-
test-tick-processor-unknown: PASS,FLAKY
2019

2120
[$system==freebsd]
2221

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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)