Skip to content

Prepping PR #5053 for review - #5134

Merged
shiftkey merged 7 commits into
shiftkey/status-with-spawnfrom
spawn
Jul 13, 2018
Merged

shiftkey merged 7 commits into
shiftkey/status-with-spawnfrom
spawn

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Jul 9, 2018 •

Copy link
Copy Markdown
Contributor
  • Wraps the call to getStatus inside of performFailableOperation in GitStore to make sure all errors are handled correctly
  • No longer re-logs the error condition; pushing the error to the UI instead now (the actual message hasn't been updated)
  • Adds a test to make sure 10k files won't cause an error

- [ ] Figure out a way to test 100k files without the test timing out

xref: #5053

@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 11, 2018
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

It may be worth figuring out a better way to test later.

@shiftkey

Copy link
Copy Markdown
Member

It may be worth figuring out a better way to test later.

We can manually test the original issue in #2449 in the meantime.

Comment thread app/test/unit/git/status-test.ts Outdated
expect(files[1].path).to.equal('docs/OVERVIEW.md')
})

it.only('returns null when result size is greater than max buffer size', async () => {

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member

This PR targets a non-default branch which means it isn't being run on some platforms, so I'm gonna merge it in and we can get back to #5053.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

This PR targets a non-default branch which means it isn't being run on some platforms...

Thanks for that, I was wondering why I didn't see all test running.

@shiftkey

Copy link
Copy Markdown
Member

@iAmWillShepherd are we able to tweak this test failing on VSTS or skip it if it's going to interfere with CI? If we want to run some "slow" tests like this (not necessarily run on each build) we can talk about it in #5134:

 1) git/status
    getStatus
          Handles at least 25k untracked files without failing:
             Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.�

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The last comment should have been a review

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

I looked into why it's failing, but I don't think there's anything I can do other than reverting back to creating 10k files. I only increased it to 25k to get that much closer to the 100k files I originally wanted to test with.

@shiftkey
shiftkey merged commit 1458f90 into shiftkey/status-with-spawn Jul 13, 2018
@shiftkey
shiftkey deleted the spawn branch July 13, 2018 11:56
@lock lock Bot locked as resolved and limited conversation to collaborators Sep 11, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants