GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: add node_lib_target_name to cctest deps by danbev · Pull Request #18576 · nodejs/node

Conversation

@danbev

@danbev danbev commented Feb 5, 2018

Copy link
Copy Markdown
Contributor

Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

build, test

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to Node.js builds or CI infrastructure. label Feb 5, 2018
@danbev

danbev commented Feb 5, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/12942/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Feb 5, 2018

Copy link
Copy Markdown
Contributor Author

Another try: https://ci.nodejs.org/job/node-test-pull-request/12948/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev
danbev force-pushed the fix_cctest_target_dependency branch from 3908cb7 to be95268 Compare February 6, 2018 06:42
@danbev

danbev commented Feb 6, 2018

Copy link
Copy Markdown
Contributor Author

Rebased CI: https://ci.nodejs.org/job/node-test-pull-request/12966/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev closed this Feb 6, 2018
@danbev

danbev commented Feb 6, 2018

Copy link
Copy Markdown
Contributor Author

Closed the wrong PR 😞

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev reopened this Feb 6, 2018
@BridgeAR

BridgeAR commented Feb 6, 2018

Copy link
Copy Markdown
Member

@nodejs/build PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev added the wip Issues and PRs that are still a work in progress. label Feb 7, 2018
@danbev

danbev commented Feb 7, 2018

Copy link
Copy Markdown
Contributor Author

@nodejs/build Don't bother looking into this yet. I don't think this will work as is. Let me come up with something better and I'll ping the group.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev
danbev force-pushed the fix_cctest_target_dependency branch from be95268 to b6ce878 Compare February 13, 2018 12:06
@danbev

danbev commented Feb 13, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/13143/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Feb 14, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/13163/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev
build: add node_lib_target_name to cctest deps
d39cbf9
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.
@danbev
danbev force-pushed the fix_cctest_target_dependency branch from 3a26ecd to a4565e2 Compare February 14, 2018 08:11
@danbev

danbev commented Feb 14, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/13169/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev
squash: add extern declarations for constants
9fc08af
@danbev
danbev force-pushed the fix_cctest_target_dependency branch from a4565e2 to 9fc08af Compare February 14, 2018 10:24
@danbev

danbev commented Feb 14, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/13171/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev
squash: re-add rename_node_bin_win to cctest deps
15051d3
@danbev
danbev force-pushed the fix_cctest_target_dependency branch from f750f20 to 15051d3 Compare February 15, 2018 11:57
@danbev
squash: add extern "C" to global vars
d76100c
It seems that these are not linked properly on Windows with out this.
@danbev

danbev commented Feb 16, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/13193/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev removed the wip Issues and PRs that are still a work in progress. label Feb 16, 2018
@danbev

danbev commented Feb 16, 2018

Copy link
Copy Markdown
Contributor Author

@nodejs/build Would be great to get some eyes on this and see if this is acceptable to merge.

Note sure if I was clear enough in the description but as it is at the moment, if an update is made to a source file and then make -j8 cctest is executed the change will be compiled, but the cctest executable will not be re-linked which means the change will not tested, and if a debugging session is started a warning similar to the following will be displayed:

(lldb) br s -f node.cc -l 4295                                                                                     
error: cctest debug map object file '/node/out/Debug/obj.target/node_lib/src/node.o' has changed (actual time is 0x5a86ccc5, debug map time is 0x5a86cc0c) since this executable was linked, file will be ignored
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Feb 16, 2018

Copy link
Copy Markdown
Member

/cc @nodejs/node-gyp

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott
Trott requested review from mmarchini and removed request for mmarchini February 16, 2018 14:45
mmarchini
mmarchini approved these changes Feb 16, 2018
View reviewed changes
@gibfahn
gibfahn requested a review from yhwang February 16, 2018 21:19
@gibfahn

gibfahn commented Feb 16, 2018

Copy link
Copy Markdown
Member

Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now

Is this the result of a recent change? Would be good to know which PR it depends on for backporting reasons.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yhwang

yhwang commented Feb 16, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Hi @gibfahn

Is this the result of a recent change? Would be good to know which PR it depends on for backporting reasons.

I added node_lib_target_name target in this change:
f878f94
And I also tried to modify cctest to depends on node_lib_target_name and failed at that moment. @danbev is right, putting cctest to depend on node_core_target_name would cause the issue. I didn't think about that and that's a good catch. However, I forgot why I failed to put cctest to depend on node_lib_target_name. I will try to figure it out and update it later. (I hope this change fix the issue that I hit before)

[Edit]
I think @danbev fixed the issue I hit before in test_node_postmortem_metadata.cc. Nice! These does remove a lots of duplications. 👍

danbev and gibfahn reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

yhwang
yhwang approved these changes Feb 16, 2018
View reviewed changes

@yhwang yhwang left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gibfahn
gibfahn approved these changes Feb 18, 2018
View reviewed changes
@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Feb 19, 2018
@danbev

danbev commented Feb 19, 2018

Copy link
Copy Markdown
Contributor Author

Are we good to land this, asking because I noticed that there is an awaiting review request from @bnoordhuis? (I don't recall doing that but it's possible that I did by mistake, not that I don't welcome a review)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis approved these changes Feb 19, 2018
View reviewed changes
@danbev

danbev commented Feb 19, 2018

Copy link
Copy Markdown
Contributor Author

Landed in 30f89df.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev closed this Feb 19, 2018
danbev added a commit that referenced this pull request Feb 19, 2018
@danbev
build: add node_lib_target_name to cctest deps
30f89df
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

PR-URL: #18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@danbev
danbev deleted the fix_cctest_target_dependency branch February 19, 2018 11:34
@MylesBorins MylesBorins added the backport-requested-v9.x label Feb 21, 2018
@MylesBorins

MylesBorins commented Feb 21, 2018

Copy link
Copy Markdown
Contributor

Should this be backported to v9.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

danbev added a commit to danbev/node that referenced this pull request Feb 23, 2018
@danbev
build: add node_lib_target_name to cctest deps
7fc7cd7
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

PR-URL: nodejs#18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@danbev danbev mentioned this pull request Feb 23, 2018
[v9.x backport] build: add node_lib_target_name to cctest deps #18954
Closed
2 tasks done
mmarchini pushed a commit to mmarchini/node that referenced this pull request Feb 26, 2018
@danbev Matheus Marchini
build: add node_lib_target_name to cctest deps
686a66d
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

PR-URL: nodejs#18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
addaleax pushed a commit that referenced this pull request Feb 26, 2018
@danbev @addaleax
build: add node_lib_target_name to cctest deps
562fdb5
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

Backport-PR-URL: #18550
PR-URL: #18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 26, 2018
@danbev @MylesBorins
build: add node_lib_target_name to cctest deps
8c93499
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

Backport-PR-URL: #18550
PR-URL: #18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@addaleax addaleax mentioned this pull request Feb 27, 2018
v9.7.0 proposal #19040
Closed
MayaLekova pushed a commit to MayaLekova/node that referenced this pull request May 8, 2018
@danbev @MayaLekova
build: add node_lib_target_name to cctest deps
25f3eb1
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

PR-URL: nodejs#18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
This was referenced May 17, 2018
won't link on OS X with --enable-static #20763
Closed
[v8.x backport] 16238 and 18576 #20797
Closed
yhwang pushed a commit to yhwang/node that referenced this pull request May 22, 2018
@danbev @yhwang
build: add node_lib_target_name to cctest deps
4aaa601
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.
PR-URL: nodejs#20797
Original PR-URL: nodejs#18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
MylesBorins pushed a commit that referenced this pull request May 23, 2018
@danbev @MylesBorins
build: add node_lib_target_name to cctest deps
04c166a
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

Backport-PR-URL: #20797
PR-URL: #18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jun 14, 2018
@danbev @MylesBorins
build: add node_lib_target_name to cctest deps
db17621
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

Backport-PR-URL: #20797
PR-URL: #18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Jul 9, 2018
v8.12.0 proposal #21593
Merged
rvagg pushed a commit that referenced this pull request Aug 16, 2018
@danbev @rvagg
build: add node_lib_target_name to cctest deps
18fd620
Currently the cctest target depend on the node_core_target_name
target. But it is the node_lib_target_name target that compiles the
sources now which means that if a source file in src is updated the
cctest executable will not be re-linked against it, but will remain
unchanged. The code will still be compiled, just not linked which
means that if you are debugging you'll not see the changes and also a
warning will be displayed about this issue.

This commit changes the cctest target to depend on node_lib_target_name.

Backport-PR-URL: #20797
PR-URL: #18576
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Yihong Wang <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bnoordhuis bnoordhuis bnoordhuis approved these changes
+3 more reviewers
@yhwang yhwang yhwang approved these changes
@mmarchini mmarchini mmarchini approved these changes
@gibfahn gibfahn gibfahn approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. build Issues and PRs related to Node.js builds or CI infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@danbev @BridgeAR @Trott @gibfahn @yhwang @MylesBorins @bnoordhuis @mmarchini @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.