Skip to content

Mac: Kill any git/gvfs processes when cleaning up after Functional Tests#567

Merged
nickgra merged 1 commit into
microsoft:masterfrom
nickgra:pkillFunctionalTests
Dec 3, 2018
Merged

Mac: Kill any git/gvfs processes when cleaning up after Functional Tests#567
nickgra merged 1 commit into
microsoft:masterfrom
nickgra:pkillFunctionalTests

Conversation

@nickgra
Copy link
Copy Markdown
Member

@nickgra nickgra commented Nov 30, 2018

In some cases, a developer might make a change that causes the functional tests to hang or take an extremely long time. The job will time out after 120 minutes and we don't currently clean up any processes that could still be running. We should pkill any git/gvfs processes still running while we're cleaning up.

This is similar to what we're doing in UnInstallGVFS.bat on Windows.

Comment thread Scripts/Mac/CleanupFunctionalTests.sh Outdated
. "$(dirname ${BASH_SOURCE[0]})/InitializeEnvironment.sh"

pkill -l git
pkill -l gvfs
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.

Will this also take down gvfs.mount?

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.

We should probably also kill the prjfs-log tool unless that's already handled elsewhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This will take down gvfs.mount as well as it matches substrings per the man page for pkill. I've validated this locally and confirmed that the PIDs that were killed match both 'gvfs' and 'gvfs.mount' processes that were running.

Thanks for catching prjfs-log!

@nickgra nickgra force-pushed the pkillFunctionalTests branch from 5a16064 to 46c9ca6 Compare December 1, 2018 01:59
Copy link
Copy Markdown
Contributor

@pmj pmj left a comment

Choose a reason for hiding this comment

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

Looks sensible enough to me!

@jeschu1
Copy link
Copy Markdown
Member

jeschu1 commented Dec 3, 2018

Thanks for looking into this @nickgra!

@nickgra nickgra merged commit b3ab6d7 into microsoft:master Dec 3, 2018
@jrbriggs jrbriggs added this to the S147 milestone Feb 7, 2019
@jrbriggs jrbriggs added the type: test-reliability Issues that contribute to test failures label Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: test-reliability Issues that contribute to test failures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants