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: run cctests as part of test-ci target by bnoordhuis · Pull Request #8034 · nodejs/node

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Aug 9, 2016 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

For discussion.

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@bnoordhuis bnoordhuis added c++ Issues and PRs that require attention from people who are familiar with C++. build Issues and PRs related to Node.js builds or CI infrastructure. tools Issues and PRs related to the tools directory. labels Aug 9, 2016
@nodejs-github-bot nodejs-github-bot added the gtest label Aug 9, 2016
@bnoordhuis
bnoordhuis force-pushed the gtest-tap branch from b5f3b54 to 316e033 Compare August 9, 2016 15:55
@bnoordhuis

bnoordhuis commented 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/

All reactions

Sorry, something went wrong.

Uh oh!

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

richardlau
richardlau reviewed Aug 9, 2016
View reviewed changes
Comment thread tools/merge-tap.py Outdated

@richardlau richardlau Aug 9, 2016

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.

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 ....

Sorry, something went wrong.

Uh oh!

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

All reactions
@jbergstroem

jbergstroem commented Aug 9, 2016

Copy link
Copy Markdown
Member

cc @nodejs/build

All reactions

Sorry, something went wrong.

Uh oh!

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

@joaocgreis

joaocgreis commented Aug 10, 2016

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
All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis
bnoordhuis force-pushed the gtest-tap branch from 316e033 to db27094 Compare August 10, 2016 09:53
@bnoordhuis

bnoordhuis commented Aug 10, 2016

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
All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis
bnoordhuis force-pushed the gtest-tap branch from 0180ce1 to 9720f0f Compare August 23, 2016 19:08
@bnoordhuis

bnoordhuis commented Aug 23, 2016

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/

All reactions

Sorry, something went wrong.

Uh oh!

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

@eugeneo

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 [email protected]
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
.

All reactions

Sorry, something went wrong.

Uh oh!

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

@eugeneo

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis
bnoordhuis force-pushed the gtest-tap branch from 9720f0f to a9aa0e5 Compare September 11, 2016 10:51
@bnoordhuis

bnoordhuis commented Sep 11, 2016

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis

bnoordhuis commented Sep 11, 2016

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
All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis bnoordhuis mentioned this pull request Sep 12, 2016
Test failures on macOS Sierra 10.12 (GM) with Xcode 8.0 (GM) #8498
Closed
@eugeneo eugeneo mentioned this pull request Sep 14, 2016
inspector: fix tests on Windows #8528
Closed
3 tasks done
@eugeneo

eugeneo commented Sep 14, 2016

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis
bnoordhuis force-pushed the gtest-tap branch from a9aa0e5 to b51b463 Compare September 14, 2016 10:24
@bnoordhuis

bnoordhuis commented Sep 14, 2016 •
edited
Loading

Uh oh!

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

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

ofrobots pushed a commit that referenced this pull request Sep 16, 2016
Eugene Ostroukhov @ofrobots
inspector: fix tests on Windows
6f9157f
Should help with #8034.

PR-URL: #8528
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
@Trott
Trott force-pushed the master branch from b0df363 to c5ce7f4 Compare September 21, 2016 00:09
@bnoordhuis
bnoordhuis force-pushed the gtest-tap branch from b51b463 to bdf3483 Compare September 23, 2016 18:25
@bnoordhuis

bnoordhuis commented Sep 23, 2016

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis

bnoordhuis commented Sep 23, 2016

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis
bnoordhuis deleted the gtest-tap branch October 3, 2016 17:49
@bnoordhuis bnoordhuis added the lts-watch-v4.x label Oct 3, 2016
@bnoordhuis
bnoordhuis merged commit b3d283a into nodejs:master Oct 3, 2016
@bnoordhuis

bnoordhuis commented 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.)

All reactions

Sorry, something went wrong.

Uh oh!

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

@mscdex

mscdex commented Oct 6, 2016 •
edited
Loading

Uh oh!

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

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.

All reactions

Sorry, something went wrong.

Uh oh!

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

jasnell pushed a commit that referenced this pull request Oct 6, 2016
@bnoordhuis @jasnell
deps: make gtest output tap
62f0576
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 <[email protected]>
jasnell pushed a commit that referenced this pull request Oct 6, 2016
@bnoordhuis @jasnell
build: run cctests as part of test-ci target
4cd3090
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: #8034
Reviewed-By: James M Snell <[email protected]>
jasnell pushed a commit that referenced this pull request Oct 6, 2016
@bnoordhuis @jasnell
test: fix -Wformat warnings in inspector cctest
ae2c344
Print size_t and ssize_t using %zd and %zu respectively, not %ld.

PR-URL: #8034
Reviewed-By: James M Snell <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
@bnoordhuis @Fishrock123
deps: make gtest output tap
46af588
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 <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
@bnoordhuis @Fishrock123
build: run cctests as part of test-ci target
f057d19
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: #8034
Reviewed-By: James M Snell <[email protected]>
Fishrock123 pushed a commit that referenced this pull request Oct 11, 2016
@bnoordhuis @Fishrock123
test: fix -Wformat warnings in inspector cctest
424c126
Print size_t and ssize_t using %zd and %zu respectively, not %ld.

PR-URL: #8034
Reviewed-By: James M Snell <[email protected]>
@MylesBorins

MylesBorins commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@mscdex

mscdex commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@MylesBorins

MylesBorins commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

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

mscdex commented Oct 24, 2016

Copy link
Copy Markdown
Contributor

@thealphanerd #8948

MylesBorins reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

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

MylesBorins commented Nov 14, 2016

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@jbergstroem

jbergstroem commented Nov 15, 2016

Copy link
Copy Markdown
Member

and on top, #9262.

All reactions

Sorry, something went wrong.

Uh oh!

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

mscdex pushed a commit to mscdex/io.js that referenced this pull request Nov 18, 2016
@bnoordhuis @mscdex
deps: make gtest output tap
f72f02f
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 <[email protected]>
mscdex pushed a commit to mscdex/io.js that referenced this pull request Nov 18, 2016
@bnoordhuis @mscdex
build: run cctests as part of test-ci target
938e67a
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: nodejs#8034
Reviewed-By: James M Snell <[email protected]>
@mscdex mscdex mentioned this pull request Nov 18, 2016
backport: cctest TAP output changes #9682
Closed
2 tasks done
@mscdex

mscdex commented Nov 18, 2016

Copy link
Copy Markdown
Contributor

@thealphanerd #9682

All reactions

Sorry, something went wrong.

Uh oh!

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

@MylesBorins MylesBorins added dont-land-on-v4.x and removed lts-watch-v4.x labels Nov 18, 2016
MylesBorins pushed a commit that referenced this pull request Nov 22, 2016
@bnoordhuis Myles Borins
deps: make gtest output tap
4c47446
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 <[email protected]>
MylesBorins pushed a commit that referenced this pull request Nov 22, 2016
@bnoordhuis Myles Borins
build: run cctests as part of test-ci target
7c73105
Enable the cctests on the CI now that they know how to write TAP output.

PR-URL: #8034
Reviewed-By: James M Snell <[email protected]>
@MylesBorins MylesBorins removed this from the 4.7.0 milestone Nov 22, 2016
@MylesBorins MylesBorins mentioned this pull request Nov 22, 2016
v4.7.0 proposal #9736
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. 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

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.

10 participants

@bnoordhuis @jbergstroem @joaocgreis @eugeneo @ofrobots @mscdex @MylesBorins @jasnell @richardlau @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 01402520 — 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.