Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 36.4k
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"
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d54970983fafd736cb9b217f82c4f74e391120ba50bf9990fc848536b906e1d6d1d2c6f594d7373bc72355edf5dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
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 | ||
Member 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?
| ||
| 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.