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 — src: refactor crypto code with RAII cleanup by gireeshpunathil · Pull Request #23014 · nodejs/node

Conversation

@gireeshpunathil

@gireeshpunathil gireeshpunathil commented Sep 22, 2018

Copy link
Copy Markdown
Member

use more idiomatic expressions with RAII primitives, instead of old style goto

motivated by @addaleax 's efforts on the same, such as in #22981

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

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

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot

nodejs-github-bot commented Sep 22, 2018

Copy link
Copy Markdown
Collaborator

@gireeshpunathil build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/970/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

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

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem. labels Sep 22, 2018
@gireeshpunathil
gireeshpunathil requested review from addaleax and danbev September 22, 2018 07:46
addaleax
addaleax approved these changes Sep 22, 2018
View reviewed changes
tniessen
tniessen approved these changes Sep 22, 2018
View reviewed changes

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

I'd suggest to rename fail to failed which would make the added comment redundant IMO.

Sorry, something went wrong.

Uh oh!

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

All reactions
@gireeshpunathil

gireeshpunathil commented Sep 22, 2018

Copy link
Copy Markdown
Member Author

@tniessen - thanks, done.

tniessen reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

cjihrig
cjihrig approved these changes Sep 22, 2018
View reviewed changes
jasnell
jasnell approved these changes Sep 22, 2018
View reviewed changes
BridgeAR
BridgeAR approved these changes Sep 23, 2018
View reviewed changes
@addaleax

addaleax commented Sep 23, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 23, 2018
joyeecheung
joyeecheung approved these changes Sep 23, 2018
View reviewed changes
@gireeshpunathil

gireeshpunathil commented Sep 25, 2018

Copy link
Copy Markdown
Member Author

looks like an unrelated flake in the CI:

17:56:26 not ok 154 parallel/test-bootstrap-modules
17:56:26   ---
17:56:26   duration_ms: 0.330
17:56:26   severity: fail
17:56:26   exitcode: 1
17:56:26   stack: |-
17:56:26     
17:56:26     events.js:167
17:56:26           throw er; // Unhandled 'error' event
17:56:26           ^
17:56:26     AssertionError [ERR_ASSERTION]: Internal Binding contextify,Internal Binding worker,NativeModule events,Internal Binding trace_events,NativeModule internal/safe_globals,NativeModule internal/async_hooks,NativeModule internal/errors,Internal Binding uv,Binding buffer,Internal Binding async_wrap,Binding config,Binding icu,NativeModule util,NativeModule internal/validators,NativeModule internal/encoding,NativeModule internal/util,Binding constants,Internal Binding util,NativeModule internal/util/types,Internal Binding types,NativeModule buffer,NativeModule internal/buffer,NativeModule internal/process/per_thread,NativeModule internal/process/worker_thread_only,NativeModule internal/process/stdio,NativeModule internal/worker,NativeModule assert,NativeModule internal/assert,NativeModule fs,NativeModule path,NativeModule internal/constants,Binding fs,NativeModule internal/fs/utils,NativeModule internal/url,NativeModule internal/querystring,Internal Binding url,NativeModule stream,NativeModule internal/streams/pipeline,NativeModule internal/streams/end-of-stream,NativeModule internal/streams/legacy,NativeModule _stream_readable,NativeModule internal/streams/buffer_list,NativeModule internal/streams/destroy,NativeModule internal/streams/state,NativeModule _stream_writable,NativeModule _stream_duplex,NativeModule _stream_transform,NativeModule _stream_passthrough,Internal Binding messaging,Internal Binding symbols,NativeModule internal/error-serdes,NativeModule v8,Internal Binding serdes,Internal Binding v8,NativeModule url,NativeModule internal/process/warning,NativeModule internal/process/next_tick,NativeModule internal/process/promises,NativeModule internal/fixed_queue,Internal Binding performance,NativeModule internal/inspector_async_hook,Binding inspector,Internal Binding options,NativeModule timers,Internal Binding timers,NativeModule internal/linkedlist,NativeModule internal/priority_queue,NativeModule internal/timers,NativeModule internal/modules/cjs/loader,NativeModule vm,NativeModule internal/modules/cjs/helpers,NativeModule console,NativeModule internal/queue_microtask,NativeModule async_hooks,NativeModule internal/domexception,NativeModule worker_threads,NativeModule module
17:56:26         at Object.<anonymous> (/home/iojs/build/workspace/node-test-commit-custom-suites-freestyle/test/parallel/test-bootstrap-modules.js:14:1)
17:56:26         at Module._compile (internal/modules/cjs/loader.js:703:30)
17:56:26         at Object.Module._extensions..js (internal/modules/cjs/loader.js:714:10)
17:56:26         at Module.load (internal/modules/cjs/loader.js:613:32)
17:56:26         at tryModuleLoad (internal/modules/cjs/loader.js:552:12)
17:56:26         at Function.Module._load (internal/modules/cjs/loader.js:544:3)
17:56:26         at Function.Module.runMain (internal/modules/cjs/loader.js:756:12)
17:56:26         at MessagePort.port.on (internal/worker.js:447:27)
17:56:26         at MessagePort.emit (events.js:182:13)
17:56:26         at MessagePort.onmessage (internal/worker.js:67:8)
17:56:26     Emitted 'error' event at:
17:56:26         at Worker.[kOnErrorMessage] (internal/worker.js:319:10)
17:56:26         at Worker.[kOnMessage] (internal/worker.js:329:37)
17:56:26         at MessagePort.Worker.(anonymous function).on (internal/worker.js:266:57)
17:56:26         at MessagePort.emit (events.js:182:13)
17:56:26         at MessagePort.onmessage (internal/worker.js:67:8)
17:56:26   ...

@addaleax - do you know if it is known (and / or captured elsewhere) and can be ignored here?

All reactions

Sorry, something went wrong.

Uh oh!

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

thefourtheye
thefourtheye approved these changes Sep 25, 2018
View reviewed changes
@devsnek

devsnek commented Sep 25, 2018

Copy link
Copy Markdown
Member

@gireeshpunathil that failure was caused by another change and was fixed. you should be able to rebuild the worker job without problems.

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

@joyeecheung joyeecheung mentioned this pull request Sep 25, 2018
CI failures: 20180925 nodejs/reliability#17
Closed
danbev
danbev approved these changes Sep 26, 2018
View reviewed changes
@danbev

danbev commented Sep 26, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Re-run of failing node-test-commit-custom-suites-freestyle.

All reactions

Sorry, something went wrong.

Uh oh!

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

@gireeshpunathil

gireeshpunathil commented Sep 27, 2018

Copy link
Copy Markdown
Member Author

second time failure in parallel/test-bootstrap-modules . @devsnek @joyeecheung any guidance here?

All reactions

Sorry, something went wrong.

Uh oh!

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

@joyeecheung

joyeecheung commented Sep 27, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

@gireeshpunathil Can you try rebasing onto the current master and start a fresh CI?

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

@gireeshpunathil
gireeshpunathil force-pushed the raii branch from f704422 to f82c4f5 Compare September 27, 2018 16:22
@gireeshpunathil

gireeshpunathil commented Sep 27, 2018

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@gireeshpunathil
src: refactor crypto code with RAII cleanup
406e3ad
use more idiomatic expressions with RAII primitives,
instead of old style goto

PR-URL: nodejs#23014

Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@gireeshpunathil
gireeshpunathil force-pushed the raii branch from f82c4f5 to 406e3ad Compare September 28, 2018 04:39
@gireeshpunathil
gireeshpunathil merged commit 406e3ad into nodejs:master Sep 28, 2018
@tniessen tniessen mentioned this pull request Sep 28, 2018
crypto: replace gotos #23132
Closed
2 tasks done
targos pushed a commit that referenced this pull request Sep 28, 2018
@gireeshpunathil @targos
src: refactor crypto code with RAII cleanup
77e2e08
use more idiomatic expressions with RAII primitives,
instead of old style goto

PR-URL: #23014

Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
targos pushed a commit that referenced this pull request Oct 3, 2018
@gireeshpunathil @targos
src: refactor crypto code with RAII cleanup
4bd3b6e
use more idiomatic expressions with RAII primitives,
instead of old style goto

PR-URL: #23014

Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@targos targos mentioned this pull request Oct 7, 2018
Release proposal: v10.12.0 #23313
Merged
This was referenced Oct 10, 2018
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#225
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#239
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#226
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#240
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#227
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#241
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#242
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#228
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#243
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#229
Closed
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
@addaleax addaleax addaleax approved these changes
@cjihrig cjihrig cjihrig approved these changes
@tniessen tniessen tniessen approved these changes
@joyeecheung joyeecheung joyeecheung approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
+2 more reviewers
@danbev danbev danbev approved these changes
@thefourtheye thefourtheye thefourtheye 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. c++ Issues and PRs that require attention from people who are familiar with C++. crypto Issues and PRs related to the crypto subsystem.

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.

11 participants

@gireeshpunathil @nodejs-github-bot @addaleax @devsnek @danbev @joyeecheung @jasnell @thefourtheye @cjihrig @tniessen @BridgeAR
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.