Home / Companies / Aspect Build / Blog / April 2024

April 2024 Summaries

2 posts from Aspect Build

Filter
Month: Year:
Post Summaries Back to Blog
Sourcegraph, a code intelligence platform, enhanced its development process by adopting Bazel, an open-source build and test tool, to tackle inefficiencies in its CI/CD pipeline. Initially, their CI process was hampered by non-incremental builds and unoptimized Docker images, which made it slow and costly. Aspect, a Bazel product partner, assisted Sourcegraph in this transition, providing expertise and their monorepo developer platform, Aspect Workflows. This collaboration led to a significant improvement, making CI 2-3 times faster and reducing cloud compute costs by 40%. The migration was executed in phases to mitigate risks, starting with a proof of concept for migrating a React frontend app to Bazel. After successful implementation, they further optimized the build process using Aspect Workflows, achieving faster builds and reduced costs. By March 2024, Sourcegraph fully integrated Aspect Workflows into its pipeline, enhancing build speed and efficiency, and earning the approval of CEO Quinn Slack, who noted a more rapid and reliable development process.
Apr 23, 2024 1,218 words in the original blog post.
Developers often face challenges with ensuring that command-line tools are up-to-date and compatible across different machines, particularly when working with tools like Terraform. The article discusses using Bazel to streamline the process of managing these tool versions, although setting it up has traditionally been cumbersome. A recent contribution to a Bazel utility ruleset introduces a JSON-format lockfile to help fetch specific tool binaries across various platforms, simplifying the installation process. Despite some inherent limitations in Bazel, such as issues with the working directory when running commands, the article provides a workaround using a helper script and symlinks to ensure tools run as expected in any directory. This method allows for consistent and reliable tool usage, and although a new feature in rules_multitool aims to address the working directory concern, the described approach remains valuable for those fetching tools differently.
Apr 05, 2024 1,020 words in the original blog post.