FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: run cctests as part of test-ci target by bnoordhuis · Pull Request #8034 · nodejs/node · GitHub

/ node Public

build: run cctests as part of test-ci target - #8034

Merged
bnoordhuis merged 3 commits into
nodejs:masterfrom
bnoordhuis:gtest-tap
Oct 3, 2016
Merged

build: run cctests as part of test-ci target#8034
bnoordhuis merged 3 commits into
nodejs:masterfrom
bnoordhuis:gtest-tap

Conversation

bnoordhuis commented Aug 9, 2016
edited
Loading

Copy link
Copy Markdown
Member

bnoordhuis added c++ Issues and PRs that require attention from people who are familiar with C++. build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory. labels Aug 9, 2016

Copy link
Copy Markdown
Member Author

Different take that moves merging of the TAP files out of tools/test.py and into a standalone script: https://ci.nodejs.org/job/node-test-pull-request/3592/

Comment thread tools/merge-tap.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Will this work without renumbering the individual tests in the files being merged?
As it stands I think we'll end up with multiple ok 1 ....

Copy link
Copy Markdown
Member

cc @nodejs/build

Copy link
Copy Markdown
Member

On Windows, vcbuild test-ci already runs cctest but ignores the results. Here is the error from a Debug build:

Running main() from gtest_main.cc
[==========] Running 22 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 4 tests from UtilTest
[ RUN      ] UtilTest.ListHead
[       OK ] UtilTest.ListHead (0 ms)
[ RUN      ] UtilTest.StringEqualNoCase
[       OK ] UtilTest.StringEqualNoCase (0 ms)
[ RUN      ] UtilTest.StringEqualNoCaseN
[       OK ] UtilTest.StringEqualNoCaseN (0 ms)
[ RUN      ] UtilTest.ToLower
[       OK ] UtilTest.ToLower (0 ms)
[----------] 4 tests from UtilTest (0 ms total)

[----------] 18 tests from InspectorSocketTest
[ RUN      ] InspectorSocketTest.ReadsAndWritesInspectorMessage
Assertion failed: backlog > 0, file src\win\tcp.c, line 561

Copy link
Copy Markdown
Member Author

Removed the script again, made changes to vcbuild.bat and added a -Wformat fix for the inspector cctest because I didn't feel like filing a separate PR for that. :-)

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

@ofrobots @eugeneo Running the cctests seems to have unearthed some issues. Several of the buildbots fail like this (from https://ci.nodejs.org/job/node-test-commit-linux/4529/nodes=debian8-x86/console):

# Value of: 0
# Expected: uv_is_active(reinterpret_cast<uv_handle_t*>(&socket))
# Which is: 1
not ok 9 - InspectorSocketTest.ExtraLettersBeforeRequest
  ---
  duration_ms: 0.001
  ...
# Value of: 0
# Expected: uv_is_active(reinterpret_cast<uv_handle_t*>(&socket))
# Which is: 1
not ok 10 - InspectorSocketTest.RequestWithoutKey
  ---
  duration_ms: 0
  ...
# Value of: 0
# Expected: uv_is_active(reinterpret_cast<uv_handle_t*>(&socket))
# Which is: 1
ok 11 - InspectorSocketTest.KillsConnectionOnProtocolViolation

Copy link
Copy Markdown
Member Author

Rebased, let's see if the test failures have been resolved: https://ci.nodejs.org/job/node-test-pull-request/3809/

eugeneo commented Aug 23, 2016

Copy link
Copy Markdown
Contributor

I'm working on it - failures are still there...

On Tue, Aug 23, 2016 at 12:10 PM Ben Noordhuis notifications@github.com
wrote:

Rebased, let's see if the test failures have been resolved:
https://ci.nodejs.org/job/node-test-pull-request/3809/


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#8034 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AARkrScGJo88I6TjfrW1w9jXvQZkVG6Fks5qi0WggaJpZM4JgM5v
.

eugeneo commented Aug 23, 2016

Copy link
Copy Markdown
Contributor

FYI - the test on Windows hit #8155, I'll create a PR once I fix it.

Copy link
Copy Markdown
Member Author

Rebased. New CI run: https://ci.nodejs.org/job/node-test-pull-request/4007/

Copy link
Copy Markdown
Member Author

@eugeneo cctest failures still appear to be unfixed:

not ok 8 - InspectorSocketTest.ExtraTextBeforeRequest
  ---
  duration_ms: 0
  ...
# Value of: 0
# Expected: uv_is_active(reinterpret_cast<uv_handle_t*>(&socket))
# Which is: 1
not ok 9 - InspectorSocketTest.ExtraLettersBeforeRequest
  ---
  duration_ms: 0
  ...
# Value of: 0
# Expected: uv_is_active(reinterpret_cast<uv_handle_t*>(&socket))
# Which is: 1
not ok 10 - InspectorSocketTest.RequestWithoutKey
  ---
  duration_ms: 0
  ...
# Value of: 0
# Expected: uv_is_active(reinterpret_cast<uv_handle_t*>(&socket))
# Which is: 1

eugeneo commented Sep 14, 2016

Copy link
Copy Markdown
Contributor

cctest works for me on Windows, Mac and Linux after I apply #8528

bnoordhuis commented Sep 14, 2016
edited
Loading

Copy link
Copy Markdown
Member Author

CI with fixes from #8505 and #8528 incorporated: https://ci.nodejs.org/job/node-test-pull-request/4044/

EDIT: Green, except for an infrastructure failure on one of the ARM buildbots.

ofrobots pushed a commit that referenced this pull request Sep 16, 2016
Should help with #8034.

PR-URL: #8528
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>

Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Member Author

Quite a few flakes but none related to this PR. Can I get a LGTM?

bnoordhuis deleted the gtest-tap branch October 3, 2016 17:49
bnoordhuis merged commit b3d283a into nodejs:master Oct 3, 2016

Copy link
Copy Markdown
Member Author

Back-porters, commit b3d283a (the last one) should be omitted when back-porting to v4.x (but not v6.x.)

mscdex commented Oct 6, 2016
edited
Loading

Copy link
Copy Markdown
Contributor

@bnoordhuis Why did the default result printer switch from pretty print to TAP? I get TAP output from cctest when running make test locally now.

jasnell pushed a commit that referenced this pull request Oct 6, 2016
Teach gtest to produce TAP so we can integrate it better with our CI
tooling.

TAP is printed to stdout but it can also be written to file by passing
the `--gtest_output=tap:filename.tap` switch to cctest.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit that referenced this pull request Oct 6, 2016
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit that referenced this pull request Oct 6, 2016
Print size_t and ssize_t using %zd and %zu respectively, not %ld.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
Teach gtest to produce TAP so we can integrate it better with our CI
tooling.

TAP is printed to stdout but it can also be written to file by passing
the `--gtest_output=tap:filename.tap` switch to cctest.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
Print size_t and ssize_t using %zd and %zu respectively, not %ld.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>

Copy link
Copy Markdown
Contributor

waiting to backport this until we have consensus on the tap output... has this been decided on master yet?

mscdex commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

@thealphanerd The default reporter format change was reverted in master.

Copy link
Copy Markdown
Contributor

@mscdex can you give me the PR that happened in?

MylesBorins added this to the v4.6.2 milestone Oct 24, 2016

mscdex commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

@thealphanerd #8948

MylesBorins modified the milestones: v4.7.0, v4.6.2 Oct 26, 2016

Copy link
Copy Markdown
Contributor

@bnoordhuis or @mscdex would one of you be willing to backport this with the commit from #8948?

Copy link
Copy Markdown
Member

and on top, #9262.

mscdex pushed a commit to mscdex/io.js that referenced this pull request Nov 18, 2016
Teach gtest to produce TAP so we can integrate it better with our CI
tooling.

TAP is printed to stdout but it can also be written to file by passing
the `--gtest_output=tap:filename.tap` switch to cctest.

PR-URL: nodejs#8034
Reviewed-By: James M Snell <jasnell@gmail.com>
mscdex pushed a commit to mscdex/io.js that referenced this pull request Nov 18, 2016
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: nodejs#8034
Reviewed-By: James M Snell <jasnell@gmail.com>
mscdex mentioned this pull request Nov 18, 2016
2 tasks

mscdex commented Nov 18, 2016

Copy link
Copy Markdown
Contributor

@thealphanerd #9682

MylesBorins pushed a commit that referenced this pull request Nov 22, 2016
Teach gtest to produce TAP so we can integrate it better with our CI
tooling.

TAP is printed to stdout but it can also be written to file by passing
the `--gtest_output=tap:filename.tap` switch to cctest.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 22, 2016
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: #8034
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins removed this from the 4.7.0 milestone Nov 22, 2016
MylesBorins mentioned this pull request Nov 22, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. c++ Issues and PRs that require attention from people who are familiar with C++. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants


Back | FazBrowse Home | New Git URL