News

GitHub Ditches macOS for Codespaces, Now Offered for Team/Enterprise Testing

GitHub has ditched its local macOS development model in favor of its new Codespaces cloud-hosted service, which is now available for try-out to customers on Team and Enterprise cloud plans.

GitHub Codespaces provides developer environments based on the open source-based, cross-platform Visual Studio Code editor from Microsoft (which also owns GitHub). These environments, running on virtual machines in the cloud, can be spun up with different amounts of storage, compute and memory resources. Codespaces debuted in May 2020 as a limited beta for individuals, but GitHub earlier this month said it can now be put through its paces by Team and Enterprise plan customers.

GitHub Codespaces
[Click on image for larger view.] GitHub Codespaces (source: GitHub).

Codespaces is also now the default development environment at GitHub, being used by internal developers for most of the work that previously was primarily done on local Mac computers over the 14-year history of the platform.

"Over the past months, we've left our macOS model behind and moved to Codespaces for the majority of GitHub.com development," the organization said in a blog post earlier this month. "This has been a fundamental shift for our day-to-day development flow. As a result, the Codespaces product is stronger and we're well-positioned for the future of GitHub.com development."

Despite years of improving the local development scheme for GitHub development -- with a heavy reliance on scripting and command lines -- the organization said that model was still "brittle" and fraught with challenges. For example, little changes in a setup could cause things to mysteriously break, resulting in time-consuming recovery operations. This was so common the engineering team tweaked a bootstrap script to provide an option to just try to restore things to a working state.

The team is now trying to speed up the Codespaces environment spin-up process, which could take more than 45 minutes previously but which has been cut down to five minutes, with more work to be done to reach GitHub's goal of achieving "instant-on, access-from-anywhere" functionality.

The process was quickened with several techniques, including "shallow" clones of the github/github repo, caching supporting software and services, ahead-of-time repo bootstrapping/cloning, and other app and service-level optimizations.

"The engineering investment we've made in prebuilds has returned its value many times over: we can now create reliable, preconfigured codespaces, primed and ready for GitHub.com development in 10 seconds," GitHub said. "New hires can go from zero to a functioning development environment in less time than it takes to install Slack. Engineers can spin off new codespaces for parallel workstreams with no overhead. When an environment falls apart -- maybe it's too far behind, or the test data broke something -- our engineers can quickly create a new environment and move on with their day."

GitHub documentation says Codespaces is free to use for all organizations on a GitHub Team or GitHub Enterprise Cloud plan until Sept. 10, 2021. After that, developers must set a spending limit to continue to use Codespaces.

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

Subscribe on YouTube