A gated commit, gated check-in[1] or pre-tested commit[2] is a software integration pattern that reduces the chances for breaking a build (and often its associated tests) by committing changes into the main branch of version control. This pattern can be supported by a continuous integration (CI) server.[3]

To perform a gated commit the software developer must request a gated commit from the CI server before committing the actual changes to a central location. The CI server merges the local changes with the head of the master branch and performs the validations (build and tests) that make up the gate. So the developer can see if their changes break the build without actually committing the changes. A commit to the central location will only be allowed if the gates are cleared.

As an alternative this pattern can be realized using different branches in version control. For instance, GitHub can force all commits to a branch B to be merge commits from pull requests which have successfully been built on the CI server and are up-to-date (i.e. based or rebased on B).[4]

See also

edit

References

edit
  1. ^ "Set build triggers on TFS". Visual Studio. Retrieved 2016-06-18.
  2. ^ "Pre-Tested (Delayed) Commit - TeamCity 9.x Documentation - Confluence". confluence.jetbrains.com. Retrieved 2016-11-25.
  3. ^ "Build Pattern: Gated Commit". Retrieved 2014-08-18.
  4. ^ "Enabling required status checks". GitHub user documentation. Retrieved 2016-06-18.

📚 Artikel Terkait di Wikipedia

Bill Gates

"Journalism's Gates keepers". Columbia Journalism Review. Archived from the original on August 21, 2020. Retrieved April 5, 2021. "Gates Foundation Commits $100

TeamCity

Configurable parameters for environment-specific builds and deployments Gated commits: Pre-commit validation that prevents developers from breaking the main branch

Baldur's Gate 3

Baldur's Gate 3 (also known as BG3 and Baldur's Gate III) is a role-playing video game by Larian Studios. It is the third installment in the Baldur's Gate series

Robert Gates

would not commit to how long he would serve as Secretary of Defense but implied that he would not serve the entire first term. While Gates continued the

Heaven's Gate (religious group)

Lewis 2003, p. 111. Baumgartner, Frederic J. (2023). "Heaven's Gate Cult Members Commit Mass Suicide". Salem Press Encyclopedia. Lalich 2004, pp. 44, 48

Suicide

normal verb in scholarly research and journalism for the act of suicide was commit, and argued for destigmatizing terminology related to suicide; in 2011,

Golden Gate Bridge

barrier since the 1980s, only in March 2005 did the Bridge Board of Directors commit to finding funding to complete the $2 million study required prior to the

Benjamin Netanyahu

previously called U.S.-backed peace talks a waste of time and refused to commit to the same two-state solution as had other Israeli leaders until 2009.