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 — test: loosen condition to detect infinite loop by yosuke-furukawa · Pull Request #1857 · nodejs/node

Conversation

@yosuke-furukawa

@yosuke-furukawa yosuke-furukawa commented Jun 1, 2015

Copy link
Copy Markdown
Member

Under heavy load condition, this condition is strict that the test detects infinite loop.
So I have to loosen the condition more. currently I set the recursiveLimit is 100.
if over 100, throw Error that detects infinite loop.

this condition can detect original infinite loop problem and reduce the count of test failure like #1856 (comment)

Sorry, something went wrong.

Uh oh!

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

All reactions
@yosuke-furukawa
test: loosen condition to detect infinite loop
8b1f4ef
@silverwind silverwind added the test Issues and PRs related to Node.js core tests and test infrastructure. label Jun 1, 2015
@silverwind

silverwind commented Jun 1, 2015

Copy link
Copy Markdown
Contributor

Can that condition still be met with that kind of increase? I wonder when v8's Maximum call stack size exceeded triggers.

All reactions

Sorry, something went wrong.

Uh oh!

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

@yosuke-furukawa

yosuke-furukawa commented Jun 1, 2015

Copy link
Copy Markdown
Member Author
$ node --v8-options
--stack_size (default size of stack region v8 is allowed to use (in kBytes))
        type: int  default: 984

984 kBytes is enough to call 100 recursive calls. I guess over 10000 loops, we should consider the Maximum call stack size exceeded warnings. (I tried 10000 loops, I cannot see the warnings).

My pull request decides the infinite loop when the recursive counts over 100 but received udp message count is less than 10.

I know this value is not perfect, I should loosen the value from limit + 1 (11) to X. it is not so easy to decide proper X for me.

If someone has suggestion, I will follow.

All reactions

Sorry, something went wrong.

Uh oh!

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

@silverwind

silverwind commented Jun 1, 2015

Copy link
Copy Markdown
Contributor

Well, I wouldn't put too much thought into it. LGTM if it increases CI reliabilty while still catching a real infinte loop.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Fishrock123

Fishrock123 commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

LGTM, 100 depth recursion is pretty trivial for a test imo.

CI for good measure, if it looks good, land it. https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/752/

All reactions

Sorry, something went wrong.

Uh oh!

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

@yosuke-furukawa

yosuke-furukawa commented Jun 2, 2015

Copy link
Copy Markdown
Member Author

some tests are failed, but those tests are unrelated to this PR.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Fishrock123

Fishrock123 commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

Unrelated, yes, but slightly worrying. PR still LGTM to land.

Haven't seen either of these before:

not ok 146 - test-dgram-exclusive-implicit-bind.js

not ok 718 - test-tls-securepair-server.js
# ***server*** connection fd=undefined
# ***server*** i set it secure
# ***server*** connected+secure!
# ***server*** [object Object]
# ***server*** [object Object]
# ***server*** read bytes 7
# CONNECTED(00000003)
# ---
# Certificate chain
# 0 s:/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
# i:/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
# ---
# Server certificate
# -----BEGIN CERTIFICATE-----
# MIIDXTCCAkWgAwIBAgIJAMUSOvlaeyQHMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV
# BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
# aWRnaXRzIFB0eSBMdGQwHhcNMTAxMTE2MDkzMjQ5WhcNMTMxMTE1MDkzMjQ5WjBF
# MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
# ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
# CgKCAQEAz+LXZOjcQCJq3+ZKUFabj71oo/ex/XsBcFqtBThjjTw9CVEVwfPQQp4X
# wtPiB204vnYXwQ1/R2NdTQqCZu47l79LssL/u2a5Y9+0NEU3nQA5qdt+1FAE0c5o
# exPimXOrR3GWfKz7PmZ2O0117IeCUUXPG5U8umhDe/4mDF4ZNJiKc404WthquTqg
# S7rLQZHhZ6D0EnGnOkzlmxJMYPNHSOY1/6ivdNUUcC87awNEA3lgfhy25IyBK3QJ
# c+aYKNTbt70Lery3bu2wWLFGtmNiGlQTS4JsxImRsECTI727ObS7/FWAQsqW+COL
# 0Sa5BuMFrFIpjPrEe0ih7vRRbdmXRwIDAQABo1AwTjAdBgNVHQ4EFgQUDnV4d6mD
# tOnluLoCjkUHTX/n4agwHwYDVR0jBBgwFoAUDnV4d6mDtOnluLoCjkUHTX/n4agw
# DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAFwV4MQfTo+qMv9JMiyno
# IEiqfOz4RgtmBqRnXUffcjS2dhc7/z+FPZnM79Kej8eLHoVfxCyWRHFlzm93vEdv
# wxOCrD13EDOi08OOZfxWyIlCa6Bg8cMAKqQzd2OvQOWqlRWBTThBJIhWflU33izX
# Qn5GdmYqhfpc+9ZHHGhvXNydtRQkdxVK2dZNzLBvBlLlRmtoClU7xm3A+/5dddeP
# AQHEPtyFlUw49VYtZ3ru6KqPms7MKvcRhYLsy9rwSfuuniMlx4d0bDR7TOkw0QQS
# A0N8MGQRQpzl4mw4jLzyM5d5QtuGBh2P6hPGa0YQxtI3RPT/p6ENzzBiAKXiSfzo
# xw==
# -----END CERTIFICATE-----
# subject=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
# issuer=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
# ---
# No client certificate CA names sent
# ---
# SSL handshake has read 1197 bytes and written 684 bytes
# ---
# New, TLSv1/SSLv3, Cipher is AES256-SHA
# Server public key is 2048 bit
# Secure Renegotiation IS supported
# Compression: NONE
# Expansion: NONE
# No ALPN negotiated
# SSL-Session:
# Protocol  : TLSv1.2
# Cipher    : AES256-SHA
# Session-ID: B84425B6D5BFDF104CAAB0D8EF646D8E3F0E748D4572871853960F1E4B767A11
# Session-ID-ctx: 
# Master-Key: 0EE4488A175879164FE81A613EE706D9623CC14015863473E0BE7146B54C2D8BDD080EF98C7B2BBEA7139D7BEB0CD22E
# Key-Arg   : None
# PSK identity: None
# PSK identity hint: None
# SRP username: None
# TLS session ticket lifetime hint: 300 (seconds)
# TLS session ticket:
# 0000 - f3 09 69 49 4f b0 bf 2f-9c 2a 65 9c 72 7f 7b 16   ..iIO../.*e.r.{.
# 0010 - 89 4c d4 d2 fc 9e cd c2-85 6c a2 ae 10 9c 70 a1   .L.......l....p.
# 0020 - 91 7d bd eb 53 ce 9b 2a-d6 23 09 ec 0c a4 33 bd   .}..S..*.#....3.
# 0030 - 58 0e f7 43 47 5a c1 c8-88 ed 8a c7 50 0f fc 12   X..CGZ......P...
# 0040 - 28 87 67 35 87 67 6e 56-ae de e5 fa ac c5 3e ab   (.g5.gnV......>.
# 0050 - 94 6d 56 0a e0 92 b7 5a-ad d8 5a 58 1e 6f a1 e1   .mV....Z..ZX.o..
# 0060 - 3f 8e 72 59 e9 a8 14 0f-e0 20 4f ca 72 61 7b 3d   ?.rY..... O.ra{=
# 0070 - fb 8f 7a 74 9d 5e 90 77-d5 1c e8 b2 5f 13 46 47   ..zt.^.w...._.FG
# 0080 - e6 38 66 9d 7a bf 5c c0-0c 83 c2 5f 60 07 4c 34   .8f.z.\...._`.L4
# 0090 - de e8 5a 0d 4a 9f 87 50-01 af 4c ee 53 f9 bc d6   ..Z.J..P..L.S...
# 
# Start Time: 1433259883
# Timeout   : 300 (sec)
# Verify return code: 10 (certificate has expired)
# ---
# hello
# world

cc @nodejs/crypto, any idea what's up with the last one?

All reactions

Sorry, something went wrong.

Uh oh!

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

@silverwind

silverwind commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

Cant read an error message out of that, but I guess we could update the test certs:

$ openssl x509 -enddate -noout -in test/fixtures/agent.crt
notAfter=Nov 15 09:32:49 2013 GMT
All reactions

Sorry, something went wrong.

Uh oh!

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

yosuke-furukawa added a commit that referenced this pull request Jun 2, 2015
@yosuke-furukawa
test: loosen condition to detect infinite loop
d20f018
PR-URL: #1857
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@yosuke-furukawa

yosuke-furukawa commented Jun 2, 2015

Copy link
Copy Markdown
Member Author

landed d20f018
Thank you for your review.

All reactions

Sorry, something went wrong.

Uh oh!

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

@Fishrock123 Fishrock123 closed this Jun 2, 2015
@silverwind

silverwind commented Jun 2, 2015

Copy link
Copy Markdown
Contributor

Have to blame these random ARMv7 errors on the CI again, I can't reproduce this one in 100 runs on my pi2.

All reactions

Sorry, something went wrong.

Uh oh!

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

andrewdeandrade pushed a commit to andrewdeandrade/node that referenced this pull request Jun 3, 2015
@yosuke-furukawa @andrewdeandrade
test: loosen condition to detect infinite loop
0b4a378
PR-URL: nodejs/node#1857
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@rvagg rvagg mentioned this pull request Jun 11, 2015
Release proposal: 2.3.0 #1939
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

test Issues and PRs related to Node.js core tests and test 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.

3 participants

@yosuke-furukawa @silverwind @Fishrock123
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.