---
title: "David Cardona (@davidpccode) | Hashnode"
description: "David Cardona (@davidpccode) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@davidpccode"
---

@davidpccode

# David Cardona

@davidpccode · Joined December 2022

## Comments

[Hi Alex Eagle I really appreciate your comments. So, can I say that If we don't have Bazel/Nx/etc implemented (which would be the optimal solution), but we have a good cache, good CI runners which can run all CI Jobs in a efficient way, would it be better to run all build/test/deploy jobs instead of trying to arrange the rules/change/chang\_in of my CI tool? This in a monorepo with about 20-30 projects. Thank you very much](https://hashnode.com/posts/monorepo-shared-green/62f1891278c42064d1f33d93/comment/639b3c25412a7e5bea6a0ba8#reply-639badd0412a7e5bea6a1925)

Reply · Article · Dec 15, 2022 · [Monorepo Shared Green](https://hashnode.com/posts/monorepo-shared-green/62f1891278c42064d1f33d93)

[Hi Alex Eagle, thank you very much. We don't have Bazel nor incremental build/test. It's true that build everything on every merge is expensive and time consuming. What about this scenario: What happen if I merge into main a super feture which work and run perfectly on PR/MR but when run on main there was a small error in a yml file or some misconfigure file/script? The code was already merged but none of the changes was deployed. So I fix the yml/script but none of the paths defined in change/rules (depends on the CI tool) where touched then nothing will be deployed… We can not just re-run the last failed pipeline because it always checked out agains the old/failed commit.. Can you think of something to handle this situation?](https://hashnode.com/posts/monorepo-shared-green/62f1891278c42064d1f33d93/comment/639b3c25412a7e5bea6a0ba8#reply-639b6c38412a7e5bea6a145a)

Reply · Article · Dec 15, 2022 · [Monorepo Shared Green](https://hashnode.com/posts/monorepo-shared-green/62f1891278c42064d1f33d93)

[Hello David. Thanks for this amazing article. I always have a big question about monorepo and its CICD workflow The direct question is: Should I build and test all projects into the monorepo every time a merge on main/master/trunk occur? No matter if a projects doesn't change I will build and test, is it a good approach? Why did this idea come to me? What happen if I merge into main a super feture which work and run perfectly on PR/MR but when run on main there was a small error in a yml file or some misconfigure file? The code was already merged but no one of the changes was deployed. So I fix the yml but non of the paths defined in change/rules (depends on the CI tool) where touched then nothing will de deployed… We cann’t just re run the last failed pipeline because it always checked out agains the old/failed commit.. There is no way to run the same projects that failed unless I touch some files (with empty spaces or enter or whatever change). IMO This is ugly. So, an idea came up, what if I always build and test all projects on main . Somehow find the way to deploy those that was changed. Maybe a creating a docker-tag based on the digest-content and so avoid a rolling update, or use the changes/rules, or something else. What do you think about this? Thank you very much](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7/comment/639b3eb3412a7e5bea6a0c1c)

Comment · Article · Dec 15, 2022 · [Best Practices for TypeScript Monorepo](https://hashnode.com/posts/best-practices-for-typescript-monorepo/63033a088cb53b2c162675c7)

[Hello Alex. Thanks for this amazing article. I always have a big question about monorepo and its CICD workflow The direct question is: Should I build and test all projects into the monorepo every time a merge on main/master/trunk occur? No matter if a projects doesn't change I will build and test, is it a good approach? Why did this idea come to me? What happen if I merge into main a super feture which work and run perfectly on PR/MR but when run on main there was a small error in a yml file or some misconfigure file? The code was already merged but no one of the changes was deployed. So I fix the yml but non of the paths defined in change/rules (depends on the CI tool) where touched then nothing will de deployed… We cann’t just re run the last failed pipeline because it always checked out agains the old/failed commit.. There is no way to run the same projects that failed unless I touch some files (with empty spaces or enter or whatever change). IMO This is ugly. So, an idea came up, what if I always build and test all projects on main . Somehow find the way to deploy those that was changed. Maybe a creating a docker-tag based on the digest-content and so avoid a rolling update, or use the changes/rules, or something else. What do you think about this? Thank you very much](https://hashnode.com/posts/monorepo-shared-green/62f1891278c42064d1f33d93/comment/639b3c25412a7e5bea6a0ba8)

Comment · Article · Dec 15, 2022 · [Monorepo Shared Green](https://hashnode.com/posts/monorepo-shared-green/62f1891278c42064d1f33d93)

[Hi Marcin Wosinek Yes I think build everything on main is the real continuos integration. It ensure that everything no matter if was changed or not is working. Thank you very much](https://hashnode.com/posts/how-to-set-up-monorepo-build-in-gitlab-ci/60fd1d7318fbbb77c94672d6/comment/6397b64632e52b31f1387bac#reply-6398e4aa452f4e3f4cb65f8d)

Reply · Article · Dec 13, 2022 · [How to set up monorepo build in GitLab CI](https://hashnode.com/posts/how-to-set-up-monorepo-build-in-gitlab-ci/60fd1d7318fbbb77c94672d6)

[Hi. Tks for this article. I always have a big question about this Workflow. What happen if I merge into main a super feture which work and run perfectly on PR/MR but when run on main there was a small error in a yml file or some missconfiguring file? The code was already merged but no one of the changes was deployed. So I fix the yml but non of the paths defined in change/rules where touched then nothing will de deployed… We cann’t just re run the last failed pipeline because it always checked out agains the old commit.. There is no way to run the same projects that failed unless I touch some files (with empty spaces or enter or whatever change). This is ugly for me. One idea came up, what if I always build all projects on main but when deploy the docker images that hasn’t changed won’t be deployed Any ideas? Thanks](https://hashnode.com/posts/how-to-set-up-monorepo-build-in-gitlab-ci/60fd1d7318fbbb77c94672d6/comment/6397b64632e52b31f1387bac)

Comment · Article · Dec 12, 2022 · [How to set up monorepo build in GitLab CI](https://hashnode.com/posts/how-to-set-up-monorepo-build-in-gitlab-ci/60fd1d7318fbbb77c94672d6)
