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

fix: don't start 'mutagen daemon run' during ddev stop/delete #5868

Merged
merged 2 commits into from Feb 23, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Feb 19, 2024

The Issue

In testing a completely unrelated issue on Linux/WSL2, I happened to notice that mutagen daemon run was running (ps -ef |grep mutagen) even though nothing in the system had performance_mode: mutagen.

It turned out that SyncAndPauseMutagenSession() and TerminateMutagenSession() were not protected by app.IsMutagenEnabled(), and even though their activities didn't cause trouble, there was the side-effect of starting the mutagen daemon, which is not needed.

How This PR Solves The Issue

Properly protect against use of those functions in non-mutagen setup.

Manual Testing Instructions

With mutagen disabled

  • Check to make sure mutagen daemon run isn't running
  • ddev start, ddev stop, ddev poweroff, ddev delete - none of these should result in the mutagen daemon running

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

Copy link

github-actions bot commented Feb 19, 2024

pkg/ddevapp/ddevapp.go Outdated Show resolved Hide resolved
@rfay rfay marked this pull request as ready for review February 19, 2024 19:38
@rfay rfay requested a review from a team as a code owner February 19, 2024 19:38
@rfay rfay requested a review from stasadev February 19, 2024 19:38
@rfay rfay force-pushed the 20240219_dont_accidentally_start_mutagen branch from 39d5a95 to 96daab6 Compare February 21, 2024 23:16
@rfay rfay merged commit e5e0238 into ddev:master Feb 23, 2024
17 of 18 checks passed
@rfay rfay deleted the 20240219_dont_accidentally_start_mutagen branch February 23, 2024 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants