Hi folks, I am now using monorepo-diff plugins to trigger both frontend and backend changes at the same time. But I have another step which depends on some steps in frontend and backend, which may lead to build failure because sometimes only frontend or backend are triggered, and the dependent step does not exist at all. It is like the following example:
I am not using wait: true here, because I don’t want to wait for all the steps in backend and frontend to finish.
What I want is when some steps to depend on are missing, the dependent step does not fail.
I have read the docs and I know that for such a case, the result is failure
Any suggestion is appreciated~ Maybe I am in the wrong direction for this task.
Inspired by you, I think maybe another way is to fork or contribute monorepo-diff, and add a when-not-match command to execute some command when there is no diff. So we can add a dummy step with id we want to satisfy the depends_on. Still ugly…
Yeah this whole issue seems very solvable natively, because buildkite already has soft-fail and depends_on configuration, such as allow_failure: true. To me it seems like it should be easy to add allow_skipped: true or something similar.