Git Product home page Git Product logo

auto_tagger's People

Contributors

daveyeu avatar elliterate avatar flavorjones avatar nakajima avatar niedfelj avatar rheaton avatar sarahmei avatar zilkey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

auto_tagger's Issues

Capistrano tasks fail

Getting the following error:

** transaction: commit
  * executing `deploy:restart'
  * executing "touch /u/apps/frontend/current/tmp/restart.txt"
    servers: ["fuzzy.benchmarksolutions.com"]
    [fuzzy.benchmarksolutions.com] executing command
    command finished
    triggering after callbacks for `deploy'
  * executing `deploy:notify:stop'
  * executing `release_tagger:create_tag'
  * executing `auto_tagger:create_ref'
 ** AUTO TAGGER: created tag refs/tags/staging/20100916133021 from c87291a0502f8dd65b95255344213dfe77e5c4bd
  * executing `release_tagger:write_tag_to_shared'
  * executing `auto_tagger:write_ref_to_shared'
 ** AUTO TAGGER: no branch available.  Text file was not written to server
the task `release_tagger:print_latest_tags' does not exist
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:79:in `abort'
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:79:in `handle_error'
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:39:in `execute!'
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:14:in `execute'
/Library/Ruby/Gems/1.8/gems/capistrano-2.5.19/bin/cap:4

deploy file:

# The :autotagger_stages variable is required
set :autotagger_stages, [:"ci-green", :staging, :uat, :production]

task :staging do
  set :stage, :staging # for autotagger
end

before "deploy:update_code", "release_tagger:set_branch"
after  "deploy", "release_tagger:create_tag"
after  "deploy", "release_tagger:write_tag_to_shared"
after  "deploy", "release_tagger:print_latest_tags"

auto tagger is totally broken with recent versions of capistrano.

Versions of capistrano greater than 2.14.2 use git clone -b BRANCH instead of just git clone, and the -b option of git clone can only take a branch name.

The auto_tagger capistrano recipe sets the branch variable to a git sha, so git clone -b breaks.

That bug was introduced way back in this commit in capistrano capistrano/capistrano@b8ce59c but only released with 2.15.2.

2.14.2 is the last good version, so I've released a new version of auto_tagger that only works with capistrano up to 2.14.2, but this is a hack.

The new version of auto_tagger is 0.2.10, and you have to downgrade capistrano, so this is obviously not a long-term fix.

autotagger can cause deploys to fail if the tag was pushed but the ref was not

to reproduce:

git commit -m "some changes"
autotag ci # => this pushes the tag to the remote repository
cap deploy # => sets it to the latest ci tag, which references a ref that doesn't exist

better behavior would be:

  • check to see if the ref is in the remote
  • if not, print a message like "did you forget to git push?" and run git status

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.