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 — tools,makefile: fix file open mode and cleanup tap file by thefourtheye · Pull Request #2837 · nodejs/node

Conversation

@thefourtheye

@thefourtheye thefourtheye commented Sep 12, 2015

Copy link
Copy Markdown
Contributor

1st commit:

By default the logfile is opened in append mode. This commit makes sure
that the file is opened in write-binary mode, so that the file will be
created if it doesn't exist or overwrite if it exists.

2nd commit:

Make make clean cleanup the generated tap file as well.

Fixes: #2834

cc @nodejs/build

Sorry, something went wrong.

Uh oh!

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

All reactions
@thefourtheye thefourtheye added the tools Issues and PRs related to the tools directory. label Sep 12, 2015
@jbergstroem

jbergstroem commented Sep 13, 2015

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

1 similar comment
@bnoordhuis

bnoordhuis commented Sep 13, 2015

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis

bnoordhuis commented Sep 13, 2015

Copy link
Copy Markdown
Member

...with a teeny nit about the commit logs: s/Open/open/ and s/Makefile/build/ for consistency.

All reactions

Sorry, something went wrong.

Uh oh!

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

thefourtheye added 2 commits September 13, 2015 15:19
@thefourtheye
tools: open test.tap file in write-binary mode
43e809b
By default the logfile is opened in append mode. This commit makes sure
that the file is opened in write-binary mode, so that the file will be
created if it doesn't exist or overwrite if it exists.

Fixes: nodejs#2834
@thefourtheye
build: clean up the generated tap file
89d5237
Make `make clean` cleanup the generated tap file as well.

Fixes: nodejs#2834
@thefourtheye
thefourtheye force-pushed the fix-for-2834 branch from f933250 to 89d5237 Compare September 13, 2015 09:51
@thefourtheye thefourtheye added the build Issues and PRs related to Node.js builds or CI infrastructure. label Sep 13, 2015
@rvagg

rvagg commented Sep 14, 2015

Copy link
Copy Markdown
Member

lgtm, thanks for doing this @thefourtheye

All reactions

Sorry, something went wrong.

Uh oh!

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

@orangemocha

orangemocha commented Sep 14, 2015

Copy link
Copy Markdown
Contributor

I wonder: does appending to a .tap file ever make sense? If not, it would be better to have the test runner delete the file (instead of make test-ci).

All reactions

Sorry, something went wrong.

Uh oh!

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

@thefourtheye

thefourtheye commented Sep 14, 2015

Copy link
Copy Markdown
Contributor Author

@orangemocha If test-runner deletes the file, then we will not get to see the TAP results, right?

All reactions

Sorry, something went wrong.

Uh oh!

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

@evanlucas

evanlucas commented Sep 14, 2015

Copy link
Copy Markdown
Contributor

Maybe delete before running the tests?

All reactions

Sorry, something went wrong.

Uh oh!

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

@thefourtheye

thefourtheye commented Sep 14, 2015

Copy link
Copy Markdown
Contributor Author

@evanlucas This patch does something similar. Opens the file in write mode, which truncates the file if it exists.

All reactions

Sorry, something went wrong.

Uh oh!

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

@orangemocha

orangemocha commented Sep 14, 2015

Copy link
Copy Markdown
Contributor

@thefourtheye : sorry, I didn't catch that before. Your first commit already does what I was suggesting :)

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

thefourtheye added a commit that referenced this pull request Sep 15, 2015
@thefourtheye
tools: open test.tap file in write-binary mode
91e7e9c
By default the logfile is opened in append mode. This commit makes sure
that the file is opened in write-binary mode, so that the file will be
created if it doesn't exist or overwrite if it exists.

Fixes: #2834

PR-URL: #2837
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Alexis Campailla <[email protected]>
thefourtheye added a commit that referenced this pull request Sep 15, 2015
@thefourtheye
build: clean up the generated tap file
467eff2
Make `make clean` cleanup the generated tap file as well.

Fixes: #2834

PR-URL: #2837
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Alexis Campailla <[email protected]>
@thefourtheye

thefourtheye commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

Thanks for the review people :-) Landed in 467eff2 and 91e7e9c

All reactions

Sorry, something went wrong.

Uh oh!

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

@thefourtheye thefourtheye closed this Sep 15, 2015
@thefourtheye
thefourtheye deleted the fix-for-2834 branch September 15, 2015 04:51
thefourtheye added a commit that referenced this pull request Sep 15, 2015
@thefourtheye @rvagg
tools: open test.tap file in write-binary mode
07fbf83
By default the logfile is opened in append mode. This commit makes sure
that the file is opened in write-binary mode, so that the file will be
created if it doesn't exist or overwrite if it exists.

Fixes: #2834

PR-URL: #2837
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Alexis Campailla <[email protected]>
thefourtheye added a commit that referenced this pull request Sep 15, 2015
@thefourtheye @rvagg
build: clean up the generated tap file
574475d
Make `make clean` cleanup the generated tap file as well.

Fixes: #2834

PR-URL: #2837
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Alexis Campailla <[email protected]>
@rvagg rvagg mentioned this pull request Sep 15, 2015
Release proposal: v3.3.1 #2698
Merged
@rvagg

rvagg commented Sep 15, 2015

Copy link
Copy Markdown
Member

@thefourtheye I'm just noticing that these two commits made it in with PR-URL: #2837 and Fixes: #2834, this is probably a simple oversight but please be sure to include full URLs in future to make accounting easier

All reactions

Sorry, something went wrong.

Uh oh!

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

@thefourtheye

thefourtheye commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

@rvagg Ah, sorry about that. I just used that GitHub format. I'll keep it in mind for the next time.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jbergstroem

jbergstroem commented Sep 15, 2015

Copy link
Copy Markdown
Member

@thefourtheye downside being very hard to click in terminal :)

All reactions

Sorry, something went wrong.

Uh oh!

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

thefourtheye added a commit that referenced this pull request Sep 15, 2015
@thefourtheye @Fishrock123
tools: open test.tap file in write-binary mode
69e7b87
By default the logfile is opened in append mode. This commit makes sure
that the file is opened in write-binary mode, so that the file will be
created if it doesn't exist or overwrite if it exists.

Fixes: #2834

PR-URL: #2837
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Alexis Campailla <[email protected]>
thefourtheye added a commit that referenced this pull request Sep 15, 2015
@thefourtheye @Fishrock123
build: clean up the generated tap file
e35b1fd
Make `make clean` cleanup the generated tap file as well.

Fixes: #2834

PR-URL: #2837
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Alexis Campailla <[email protected]>
@Fishrock123 Fishrock123 mentioned this pull request Sep 15, 2015
Release proposal: v4.1.0 #2844
Closed
3 of 7 tasks
@rvagg rvagg mentioned this pull request Sep 22, 2015
Release proposal: v4.1.1 #2995
Merged
@snyk-bot snyk-bot mentioned this pull request Apr 30, 2023
[Snyk] Security upgrade karma from 1.3.0 to 2.0.0 aliscco/alisco-node#393
Open
@aliscco aliscco mentioned this pull request Apr 16, 2024
[Snyk] Fix for 1 vulnerabilities aliscco/alisco-node#1396
Open
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

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

6 participants

@thefourtheye @jbergstroem @bnoordhuis @rvagg @orangemocha @evanlucas
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.