Skip to content

Fix couldn't start notify trigger in multi-config projects #6114

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

Conversation

madogiwa
Copy link
Contributor

Description
This PR fixes the problem that notify trigger does not start in multi-config projects.

Here is how to reproduce the problem.

$ cd examples/multi-config-microservices
$ skaffold dev -vdebug
...
DEBU[0043] Couldn't start notify trigger. Falling back to a polling trigger
Watching for changes...

The current code expects the workspace path is an relative path.
However, in multi-config projects, the workspace path seems to have already been converted to an absolute path.

User facing changes
The notify trigger will also work in multi-config projects.
This will reduce CPU usage in multi-config projects with a large number of files.

@madogiwa madogiwa requested a review from a team as a code owner June 30, 2021 14:38
@madogiwa madogiwa requested a review from tejal29 June 30, 2021 14:38
@google-cla google-cla bot added the cla: yes label Jun 30, 2021
@gsquared94 gsquared94 enabled auto-merge (squash) June 30, 2021 18:59
@gsquared94 gsquared94 disabled auto-merge July 1, 2021 06:00
@gsquared94 gsquared94 merged commit 3278918 into GoogleContainerTools:master Jul 1, 2021
@gsquared94
Copy link
Contributor

Travis CI is stuck, merging based on successful Github Actions CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants