Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: fix bug with huge test output #619

Merged
merged 3 commits into from
Dec 11, 2018
Merged

Conversation

refack
Copy link
Contributor

@refack refack commented Nov 14, 2018

Fixes: #618

Checklist
  • npm test passes
  • contribution guidelines followed here

@refack
Copy link
Contributor Author

refack commented Nov 14, 2018

/CC @nodejs/citgm @addaleax PTAL. ATM jobs stall and don't even produce the report.

MylesBorins
MylesBorins previously approved these changes Nov 14, 2018
Copy link
Contributor

@MylesBorins MylesBorins left a comment

Choose a reason for hiding this comment

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

LGTM

@targos
Copy link
Member

targos commented Nov 14, 2018

Shouldn't we display the last N lines of the output instead of the first? They're more likely to contain useful information about the error

@refack
Copy link
Contributor Author

refack commented Nov 14, 2018

I think it's arbitrary. In the case of graseful-fs the failing test is at the top.
The bottom in actually the concatenated stderr. Which is this case is just noise.

lib/reporter/logger.js Outdated Show resolved Hide resolved
@refack
Copy link
Contributor Author

refack commented Nov 15, 2018

could we iterate over substrings rather than drop arbitrary content?

New code finished in reasonable time:

113199ms

@MylesBorins MylesBorins dismissed their stale review November 15, 2018 04:12

need to review new code

@refack refack force-pushed the skip-graceful-fs branch 2 times, most recently from b6dbe14 to 84b5048 Compare November 15, 2018 19:52
Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

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

LGTM

@targos
Copy link
Member

targos commented Nov 17, 2018

Ping @MylesBorins do you still want to review the new code?

@richardlau
Copy link
Member

Add test(s)?

@refack
Copy link
Contributor Author

refack commented Nov 18, 2018

citgm graceful-fs 😉
But seriously, I'll think of something...

@targos
Copy link
Member

targos commented Dec 8, 2018

@codecov-io
Copy link

codecov-io commented Dec 8, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@4f45d04). Click here to learn what that means.
The diff coverage is 47.36%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #619   +/-   ##
=========================================
  Coverage          ?   93.97%           
=========================================
  Files             ?       26           
  Lines             ?      830           
  Branches          ?        0           
=========================================
  Hits              ?      780           
  Misses            ?       50           
  Partials          ?        0
Impacted Files Coverage Δ
lib/package-manager/test.js 98.11% <100%> (ø)
lib/reporter/logger.js 82.22% <38.46%> (ø)
lib/spawn.js 77.77% <60%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f45d04...2f7aeb7. Read the comment docs.

@targos
Copy link
Member

targos commented Dec 11, 2018

CI is green but it doesn't run on Windows. I'll try to execute it on my computer today. Or maybe @richardlau if you have time?

@targos
Copy link
Member

targos commented Dec 11, 2018

Or better: add a Windows machine to https://ci.nodejs.org/job/citgm-continuous-integration/

@richardlau
Copy link
Member

Or better: add a Windows machine to https://ci.nodejs.org/job/citgm-continuous-integration/

I'll try to find time to do this later today (I need a few hours sleep first). We could also try adding Windows to the Travis testing.

@bzoz bzoz mentioned this pull request Dec 11, 2018
2 tasks
@bzoz
Copy link
Contributor

bzoz commented Dec 11, 2018

There is a bug with spawning and PATH (fix in #640). With that PR included, this PR works on my local box.

The CITGM tests are broken on Windows. With this PR we will be able to at least run them locally. Anyway - the CITGM is currently completely broken on Windows, this PR at least restores it to a working condition (and looks like nothing will get broken), I would be in favor of fast tracking this.

@MylesBorins
Copy link
Contributor

MylesBorins commented Dec 11, 2018 via email

@targos
Copy link
Member

targos commented Dec 11, 2018

I'm rebasing this

@bzoz
Copy link
Contributor

bzoz commented Dec 11, 2018

On my local box, tests results:

  323 passing (2m)
  27 failing

@targos
Copy link
Member

targos commented Dec 11, 2018

On mine:

  333 passing (3m)
  17 failing

@targos
Copy link
Member

targos commented Dec 11, 2018

Rebased with 89c487a to fix the linter issue

@targos
Copy link
Member

targos commented Dec 11, 2018

@bzoz LGTY? Can I land this as-is?

@bzoz
Copy link
Contributor

bzoz commented Dec 11, 2018

Yes

@targos targos merged commit 473f454 into nodejs:master Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants