-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
test: use unusual chars in the path to ensure our tests are robust #48409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "\u2020\u00A3\u00A7\u2122"
Changes from all commits
d549709
83fafd7
36cb9b2
17f82c4
f74e391
120ba50
bf9990f
c848536
b906e1d
6d1d2c6
f594d73
73bc723
55edf5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ jobs: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
persist-credentials: false | ||
path: node | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | ||
with: | ||
|
@@ -51,6 +52,13 @@ jobs: | |
- name: Environment Information | ||
run: npx envinfo | ||
- name: Build | ||
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn" | ||
run: make -C node build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn" | ||
- name: Test | ||
run: make run-ci -j4 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9" | ||
run: make -C node run-ci -j4 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9" | ||
- name: Re-run test in a folder whose name contains unusual chars | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it mean we'll double the time to run the tests in the GH Actions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you see in this PR, it adds about 10 minutes (a bit less on Linux) |
||
run: | | ||
mv node "$DIR" | ||
cd "$DIR" | ||
./tools/test.py --flaky-tests keep_retrying -p actions -j 4 | ||
env: | ||
DIR: dir%20with $unusual"chars?'åß∂ƒ©∆¬…` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
// We must load the CJS version here because the ESM wrapper call `hasIPv6` | ||
// which compiles a RegEx. | ||
// eslint-disable-next-line node-core/require-common-first | ||
import '../common/index.js'; | ||
import common from '../common/index.js'; | ||
import assert from 'node:assert'; | ||
|
||
assert.strictEqual(RegExp.$_, ''); | ||
assert.strictEqual(RegExp.$0, undefined); | ||
assert.strictEqual(RegExp.$1, ''); | ||
assert.strictEqual(RegExp.$2, ''); | ||
assert.strictEqual(RegExp.$3, ''); | ||
assert.strictEqual(RegExp.$4, ''); | ||
assert.strictEqual(RegExp.$5, ''); | ||
assert.strictEqual(RegExp.$6, ''); | ||
assert.strictEqual(RegExp.$7, ''); | ||
assert.strictEqual(RegExp.$8, ''); | ||
assert.strictEqual(RegExp.$9, ''); | ||
assert.strictEqual(RegExp.input, ''); | ||
assert.strictEqual(RegExp.lastMatch, ''); | ||
assert.strictEqual(RegExp.lastParen, ''); | ||
assert.strictEqual(RegExp.leftContext, ''); | ||
assert.strictEqual(RegExp.rightContext, ''); | ||
assert.strictEqual(RegExp['$&'], ''); | ||
assert.strictEqual(RegExp['$`'], ''); | ||
assert.strictEqual(RegExp['$+'], ''); | ||
assert.strictEqual(RegExp["$'"], ''); | ||
if (!common.isInsideDirWithUnusualChars) { | ||
assert.strictEqual(RegExp.$_, ''); | ||
assert.strictEqual(RegExp.$0, undefined); | ||
assert.strictEqual(RegExp.$1, ''); | ||
assert.strictEqual(RegExp.$2, ''); | ||
assert.strictEqual(RegExp.$3, ''); | ||
assert.strictEqual(RegExp.$4, ''); | ||
assert.strictEqual(RegExp.$5, ''); | ||
assert.strictEqual(RegExp.$6, ''); | ||
assert.strictEqual(RegExp.$7, ''); | ||
assert.strictEqual(RegExp.$8, ''); | ||
assert.strictEqual(RegExp.$9, ''); | ||
assert.strictEqual(RegExp.input, ''); | ||
assert.strictEqual(RegExp.lastMatch, ''); | ||
assert.strictEqual(RegExp.lastParen, ''); | ||
assert.strictEqual(RegExp.leftContext, ''); | ||
assert.strictEqual(RegExp.rightContext, ''); | ||
assert.strictEqual(RegExp['$&'], ''); | ||
assert.strictEqual(RegExp['$`'], ''); | ||
assert.strictEqual(RegExp['$+'], ''); | ||
assert.strictEqual(RegExp["$'"], ''); | ||
} |
Uh oh!
There was an error while loading. Please reload this page.