Son Luong NgocforA Bable in Bazelsluongng.hashnode.net·Jul 10, 2022Bazel Caching Explained (pt. 1): How Bazel WorksBefore we dive into Bazel’s caching mechanism, let’s first go over how Bazel works and some of the underlying assumptions that it makes. The Build Graph Bazel is an artifact-first Build Tools. This means the user asks Bazel for an artifact and Bazel ...Discuss·5 likes·7.2K readsBazel Caching Explainedbazel
Alex EagleforAspect Blogaspectdev.hashnode.net·Jun 17, 2022What's better than a genrule?Bazel is pretty confusing. One confusion I've seen a lot is, when do I need to write a custom rule? When can I use a macro? When can I use a genrule? To make matters worse, Xooglers tend to have a biased answer to this question because of what they s...Discuss·3 likes·1.2K readsbazel
Sarvesh KesharwaniforNLPsarvesh42.hashnode.net·Feb 22, 2023Permission Denied while starting Bazel from cmd/PowerShellOn running the bazel/bazelisk command in cmd I was getting this error like "Permission is denied for this system, contact your software provider" or something like that (I couldn't take the screenshot) while executing bazel/bazelisk command in cmd/Po...Discuss·3 likesbazel
Alex EagleforAspect Blogaspectdev.hashnode.net·Mar 9, 2023Multiple external dependency closures in BazelI frequently see organizations moving to a monorepo, where applications or services depend on different versions of third-party libraries, and face a decision. Should they align these versions, following a "single version policy". Should they allow e...Discuss·405 readsbazel
Alex EagleforAspect Blogaspectdev.hashnode.net·Feb 27, 2023Presets for bazelrcBazel has a TON of options - over 1500 of them! [1] It has so many obscure options that even experts like myself are often surprised to learn about a new one. Many of the options have the wrong default value for new repositories. This means new users...Discuss·1 like·422 readsbazel
Alex EagleforAspect Blogaspectdev.hashnode.net·Feb 25, 2023Estimating the effort to build a Bazel CI/CDAt Aspect, we've consulted for many companies, helping several of them to run Bazel on their CI/CD infrastructure. Since we've been through this migration several times we can report on the typical obstacles we've seen, and the engineering effort tha...Discuss·1 like·631 readsbazel
Sarvesh KesharwaniforNLPsarvesh42.hashnode.net·Feb 22, 2023Permission Denied while starting Bazel from cmd/PowerShellOn running the bazel/bazelisk command in cmd I was getting this error like "Permission is denied for this system, contact your software provider" or something like that (I couldn't take the screenshot) while executing bazel/bazelisk command in cmd/Po...Discuss·3 likesbazel
Antonio Di StefanoforDevEx & Ducksthegrizzlydev.hashnode.net·Jan 13, 2023Scaling testcontainers with Bazel - part 0 - introducing testcontainersWhat is integration testing? Sometimes controversy is all you need to start and what could be more controversial in the software engineering world than clearly defining a testing methodology? How about we all agree on defining integration testing as ...Discuss·1 like·63 readsScaling testcontainers with Bazelbazel
Son Luong NgocforA Bable in Bazelsluongng.hashnode.net·Nov 1, 2022Bazel in CI (Part 2): Worker SetupMany folks have asked questions regarding what is an optimized way to set up Bazel in CI. In particular, how to go about organizing and operating your CI Workers. Although I have hinted toward what is an ideal setup over in the Bazel Cache Explain se...Discuss·1.2K readsBazel in CIDevops
Alex EagleforAspect Blogaspectdev.hashnode.net·Sep 16, 2022Moving TypeScript code into a Bazel monoreponote, this article is still a work-in-progress as of September 2022 Aspect's rules_js and rules_ts finally make Bazel work well with TypeScript projects. If you're a Dev Infra team who's ready to do a migration, here's a practical step-by-step guide...Discuss·985 readsbazel
Alex EagleforAspect Blogaspectdev.hashnode.net·Sep 12, 2022Estimating Bazel's AdoptionThe Bazel team has not instrumented Bazel with telemetry, so Google can't publish any numbers regarding Bazel usage. This means the industry is lacking a metric of the total market penetration, which is useful information when you're planning a caree...Discuss·539 readsbazel
Son Luong NgocforA Bable in Bazelsluongng.hashnode.net·Sep 12, 2022Bazel in CI (Part 1): Commit Under TestToday I want to discuss a topic of different strategies in picking which commit to test against in CI, aka. choosing the commit under test or revision under test Why should I care about this? By picking the right commit in CI, you could solve sever...Discuss·2.1K readsBazel in CIDevops
Greg MagolanforAspect Blogaspectdev.hashnode.net·Sep 6, 2022Bazel + TypeScript: faster with Remote ExecutionThis post will show how much faster TypeScript builds can be when using remote execution, Bazel's unique ability to parallelize transpile and type-check work across a farm of machines. We hope that Bazel 6.0 will include fixes for symlinks support, m...Discuss·1.5K readsbazel