★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/22151Nouvelle recherche | Portail wanayoo
Skip to content
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

test: remove common.fileExists() #22151

Closed
wants to merge 2 commits into from

Conversation

@Trott
Copy link
Member

Trott commented Aug 6, 2018

common.fileExists() can be replaced with fs.existsSync().

fs.existsSync() was undeprecated in Node.js 6.8.0.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
test: remove common.fileExists()
common.fileExists() can be replaced with fs.existsSync().
@Trott

This comment has been minimized.

Copy link
Member Author

Trott commented Aug 6, 2018

@targos

targos approved these changes Aug 6, 2018

@fesebuv
Copy link

fesebuv left a comment

Seems good to me, but I would advice to double check why some tests are failing.

@Trott

This comment has been minimized.

Copy link
Member Author

Trott commented Aug 6, 2018

@lpinca

lpinca approved these changes Aug 6, 2018

@cjihrig

cjihrig approved these changes Aug 6, 2018

@ChALkeR

ChALkeR approved these changes Aug 6, 2018

Copy link
Member

ChALkeR left a comment

LGTM if tests pass.

@targos

This comment has been minimized.

Copy link
Member

targos commented Aug 6, 2018

git grep fileExists shows it's still used in test/common/index.mjs.

fileExists,

@Trott Trott force-pushed the Trott:existsSync branch from 3cdcba4 to 4d0bc78 Aug 6, 2018

@Trott

This comment has been minimized.

Copy link
Member Author

Trott commented Aug 6, 2018

@jasnell

jasnell approved these changes Aug 6, 2018

@trivikr

trivikr approved these changes Aug 7, 2018

@fhinkel

fhinkel approved these changes Aug 8, 2018

Trott added a commit to Trott/io.js that referenced this pull request Aug 8, 2018

test: remove common.fileExists()
common.fileExists() can be replaced with fs.existsSync().

PR-URL: nodejs#22151
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
@Trott

This comment has been minimized.

Copy link
Member Author

Trott commented Aug 8, 2018

Landed in 41ae423

@Trott Trott closed this Aug 8, 2018

@vsemozhetbyt

This comment has been minimized.

Copy link
Member

vsemozhetbyt commented Aug 8, 2018

Strangely, we have CI fails now due to this test:

assert(common.fileExists(file));

See #22104 (comment)

@vsemozhetbyt vsemozhetbyt referenced this pull request Aug 8, 2018

Closed

doc: add doc for --loader option #22104

3 of 3 tasks complete
@richardlau

This comment has been minimized.

Copy link
Member

richardlau commented Aug 8, 2018

Strangely, we have CI fails now due to this test

That test was added to the codebase in between the last CI for this PR (2 days ago) and it landing today.

richardlau added a commit to richardlau/node-1 that referenced this pull request Aug 8, 2018

test: remove common.fileExists()
test-trace-event-promises.js was added to the codebase between the last
CI for nodejs#22151 and it landing.

Refs: nodejs#22151

@richardlau richardlau referenced this pull request Aug 8, 2018

Closed

fixup: test: remove common.fileExists() #22200

2 of 2 tasks complete
@richardlau

This comment has been minimized.

Copy link
Member

richardlau commented Aug 8, 2018

Fix for the additional test: #22200

MylesBorins added a commit that referenced this pull request Aug 8, 2018

test: remove common.fileExists()
test-trace-event-promises.js was added to the codebase between the last
CI for #22151 and it landing.

PR-URL: #22200
Refs: #22151
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
@Trott

This comment has been minimized.

Copy link
Member Author

Trott commented Aug 8, 2018

Oops! Add this to the list of reasons to get https://github.com/nodejs/commit-queue happening. @nodejs/commit-queue

targos added a commit that referenced this pull request Aug 11, 2018

test: remove common.fileExists()
test-trace-event-promises.js was added to the codebase between the last
CI for #22151 and it landing.

PR-URL: #22200
Refs: #22151
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>

targos added a commit that referenced this pull request Aug 11, 2018

test: remove common.fileExists()
test-trace-event-promises.js was added to the codebase between the last
CI for #22151 and it landing.

PR-URL: #22200
Refs: #22151
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>

targos added a commit that referenced this pull request Aug 11, 2018

test: remove common.fileExists()
common.fileExists() can be replaced with fs.existsSync().

PR-URL: #22151
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>

@rvagg rvagg referenced this pull request Aug 13, 2018

Merged

Release proposal: v10.9.0 #22295

@refack

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.