Skip to content

bugfix for background checks not being aware of missing repositories - #5284

Merged
shiftkey merged 7 commits into
masterfrom
bugfix-missing-repos
Jul 31, 2018
Merged

shiftkey merged 7 commits into
masterfrom
bugfix-missing-repos

Conversation

@shiftkey

@shiftkey shiftkey commented Jul 30, 2018 •

Copy link
Copy Markdown
Member

Fixes #5282

  • skip background checks when repository is already marked as missing
  • skip background check if directory is missing from disk (don't set to missing)
  • changelog and publish to beta
  • changelog and publish to production

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

Copy link
Copy Markdown
Member Author

This doesn't cover every instance of ENOENT as when you switch to a newly-missing repository you'll see this, but I think this will stop the multiple background errors that are happening currently.

Ready for review and testing cc @iAmWillShepherd @outofambit.

@shiftkey

Copy link
Copy Markdown
Member Author

Pro Tip™ for speeding up reproducing this:

diff --git a/app/src/ui/app.tsx b/app/src/ui/app.tsx
index 63f8f2bda..d00495c96 100644
--- a/app/src/ui/app.tsx
+++ b/app/src/ui/app.tsx
@@ -95,7 +95,7 @@ const UpdateCheckInterval = 1000 * 60 * 60 * 4
 
 const SendStatsInterval = 1000 * 60 * 60 * 4
 
-const updateRepoInfoInterval = 1000 * 60 * 5
+const updateRepoInfoInterval = 1000 * 60 * 1
 
 interface IAppProps {
   readonly dispatcher: Dispatcher

@outofambit

Copy link
Copy Markdown
Contributor

the expected behavior as of this PR is to get the error popup once but have no recurring background errors, correct? @shiftkey

this is the behavior i'm currently seeing

@iAmWillShepherd iAmWillShepherd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

works on my machine

@shiftkey

Copy link
Copy Markdown
Member Author

the expected behavior as of this PR is to get the error popup once but have no recurring background errors, correct? @shiftkey

Yes, I'll extract that to a fresh issue and we can pick that up tomorrow. That one needs some more thought.

outofambit
outofambit previously approved these changes Jul 30, 2018
@shiftkey

Copy link
Copy Markdown
Member Author

the expected behavior as of this PR is to get the error popup once but have no recurring background errors, correct?

I've opened #5289 and we can dig into that tomorrow.

@shiftkey
shiftkey dismissed stale reviews from outofambit and iAmWillShepherd via 6f5f343 July 30, 2018 21:56
@hubot
hubot deployed to production July 30, 2018 21:57 Active
@shiftkey

Copy link
Copy Markdown
Member Author

@iAmWillShepherd @outofambit feel free to merge this once it's all gone green.

If someone wants to pick up #5289 as well they'd have my eternal gratitude!

@shiftkey
shiftkey merged commit 57a79a9 into master Jul 31, 2018
@shiftkey
shiftkey deleted the bugfix-missing-repos branch July 31, 2018 10:19

This branch was successfully deployed

2 active (1 outdated) deployments
production — 6f5f343a Deployed Jul 30, 2018 by hubot
beta — 61621770 Deployed Jul 30, 2018 by hubot
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.

4 participants