Code Monkey home page Code Monkey logo

ci-release-publisher's People

Contributors

nurupo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ci-release-publisher's Issues

Add an option to modify Latest Release's check behavior

Currently the Latest Release will be created only if the Travis-CI build we are currently running in is the latest build for the branch. This is done to:

  1. Avoid the race condition of two builds modifying the same release at the same time.
  2. Prevent someone restarting an ancient Travis-CI build and getting the Latest Release updated to that.

While this check works very well if we assume that a user sets up CIRP to run on every git push and makes only git push builds, it stars to fall apart when it's ran only in Travis-CI's cron builds. We can get in a situation when a cron build is started first, but then someone makes a git push into the repo, creating another build, so the cron build is no longer the latest build for the branch and it won't update the Latest Release, yielding the right to update to the newer build, but since CIRP is ran only on cron builds, the newer build that was caused by git push won't be updating Latest Release, resulting in Latest Release not getting updated at all. The behavior we want here is for Latest Release to check if the current build is the latest cron build.

Since we have no way to know which kinds of builds: git push, cron, api, etc. a user restricted Travis-CI to run CRIP on, there is no way for the script to detect which kinds of builds it should be checking for, so some kind of an option is required. For example, --latest-release-check {push, cron, api} [{push, cron, api} ...], which, if not provided, will default to checking the latest build without any restriction, making it consistent with the current behavior.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.