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

refactor: reduce debug logging if unlink was successful #196

Merged
merged 1 commit into from Jul 18, 2017

Conversation

jviotti
Copy link
Contributor

@jviotti jviotti commented Jul 18, 2017

As a way to reduce the amount of debug logging this module produces, we
only emit an unlink debug message if the unlink operation was succesful.

Also, as a better way to correlate unlink issues with a certain
drivelist call, we only report back the result of this module after the
unlink operation ended (sucessfully or not).

See: balena-io/etcher#1600
Signed-off-by: Juan Cruz Viotti jv@jviotti.com

@resin-io-modules-versionbot
Copy link
Contributor

VersionBot failed to carry out a status check for the above pull request here: #196. The reason for this is:
Resource not accessible by integration
Please carry out relevant changes or alert an appropriate admin.

As a way to reduce the amount of debug logging this module produces, we
only emit an unlink debug message if the unlink operation was succesful.

Also, as a better way to correlate unlink issues with a certain
drivelist call, we only report back the result of this module after the
unlink operation ended (sucessfully or not).

Change-Type: patch
See: balena-io/etcher#1600
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@resin-io-modules-versionbot
Copy link
Contributor

VersionBot failed to carry out a status check for the above pull request here: #196. The reason for this is:
Resource not accessible by integration
Please carry out relevant changes or alert an appropriate admin.

@jviotti jviotti merged commit 2827803 into master Jul 18, 2017
@jviotti jviotti deleted the reduce-unlinnk-logging branch July 18, 2017 18:20
jviotti added a commit to balena-io/etcher that referenced this pull request Jul 18, 2017
This new version contains the following PRs that we're interested about:

- balena-io-modules/drivelist#196

To reduce the amount of debug logging we produce (see
#1600).

- balena-io-modules/drivelist#195

To properly handle spawning EAGAIN errors.

Fixes: #1578
Change-Type: patch
Changelog-Entry: Retry various times on EAGAIN when spawning drive scanning scripts.
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@lurch
Copy link
Contributor

lurch commented Jul 19, 2017

What does this VB error mean @hedss ?

@lurch
Copy link
Contributor

lurch commented Jul 19, 2017

@jviotti "we only emit an unlink debug message if the unlink operation was succesful."
Presumably you meant "...was unsuccessful" ? ;-)

@hedss
Copy link

hedss commented Jul 19, 2017

Strangely it appears that VB couldn't access the repo. I've just tried my test repo, and all is well. I suspect this might have been a GH wobble, as there's nothing else in the logs to suggest VB wasn't trying to communicate with it properly.

@lurch
Copy link
Contributor

lurch commented Jul 19, 2017

So I guess if this happens again, the fix would be to re-kick VersionBot by adding a label or something?
I wonder if there could be a 'standard' label we could use to signify to VB that we want it to take another look at a PR, with VB then automatically removing that label after looking at the PR? Is that worth creating a suggestion issue for, or will this scenario be covered by balena-io-modules/balena-procbots#196 anyway?

@hedss
Copy link

hedss commented Jul 19, 2017

Yeah, that's what balena-io-modules/balena-procbots#196 is for, as you say. Though I'm not overly happy about it...

@lurch
Copy link
Contributor

lurch commented Jul 19, 2017

Are the logs kept by VB detailed enough for you to be able to ask GH support why their API keeps having "hiccups" ?

jviotti added a commit to balena-io/etcher that referenced this pull request Jul 19, 2017
This new version contains the following PRs that we're interested about:

- balena-io-modules/drivelist#196

To reduce the amount of debug logging we produce (see
#1600).

- balena-io-modules/drivelist#195

To properly handle spawning EAGAIN errors.

Fixes: #1578
Change-Type: patch
Changelog-Entry: Retry various times on EAGAIN when spawning drive scanning scripts.
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to balena-io/etcher that referenced this pull request Jul 19, 2017
This new version contains the following PRs that we're interested about:

- balena-io-modules/drivelist#196

To reduce the amount of debug logging we produce (see
#1600).

- balena-io-modules/drivelist#195

To properly handle spawning EAGAIN errors.

Fixes: #1578
Change-Type: patch
Changelog-Entry: Retry various times on EAGAIN when spawning drive scanning scripts.
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
jviotti added a commit to balena-io/etcher that referenced this pull request Jul 19, 2017
This new version contains the following PRs that we're interested about:

- balena-io-modules/drivelist#196

To reduce the amount of debug logging we produce (see
#1600).

- balena-io-modules/drivelist#195

To properly handle spawning EAGAIN errors.

Fixes: #1578
Change-Type: patch
Changelog-Entry: Retry various times on EAGAIN when spawning drive scanning scripts.
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
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.

None yet

3 participants