Coder Social home page Coder Social logo

capistrano-sentry's People

Contributors

burisu avatar karlwilbur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

capistrano-sentry's Issues

Docs: Explain where to find config values

I recently suggested that some other devs use capistrano-sentry for their project. They had some questions about exactly what values should be provided in config/deploy.rb. I am suggesting some modifications to the docs to make this a little more clear.

I'll write this up and submit a PR.

Support multiple projects

In the current product I'm working on, we use two different Sentry projects to distinguish between backend and frontend.

We started using the gem, but it currently doesn't allow us to notify releases in multiple projects. I see a closed PR that tried to add this functionality, but it was closed by the author (#10).

Would you want this gem to support multiple projects? If you agree, I'm available to create a PR for it.

Thank you for the great gem ๐Ÿ’š

Failure at sentry:validate_config

gem version

v0.4.1

error message

  INFO [sentry:validate_config] Validating Sentry notification config
(Backtrace restricted to imported tasks)
cap aborted!
NoMethodError: undefined method `blank?' for #<String:0x00005577f98d6c58>

Tasks: TOP => deploy:starting => sentry:validate_config
(See full trace by running task with --trace)
The deploy has failed with an error: undefined method `blank?' for #<String:0x00005577f98d6c58>

code location

causing

blank? is the method of Ruby on Rails.

https://api.rubyonrails.org/v6.0.3.1/classes/String.html#method-i-blank-3F

It is not in method of ruby's string class.

irb(main):003:0> 'string'.respond_to?(:blank?)
=> false

comment

I'm at work so I created an issue first.
When I find the time, I will create a pull request.

Thanks for your gem.

Failure at sentry:validate_config

Command to reproduce the error.

be cap production deploy --dry-run

Errors that I'm getting.

00:00 sentry:validate_config
      [sentry:validate_config] Validating Sentry notification config
fatal: ambiguous argument '^': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
00:01 sentry:notice_deployment
      Notified Sentry of new release: 956e3ea6f4553437f9010bb1e81fdfb3425574ba
      Notified Sentry of new deployment: 956e3ea6f4553437f9010bb1e81fdfb3425574ba-20190813090706

After checking the source code, it's possible this is the line that's causing the error

prev_revision = fetch(:previous_revision) || `git rev-parse #{fetch(:current_revision)}^`.strip

Testing the command locally, possibly this is the issue?

  1. git rev-parse feature/update_sentry_capistrano^ - Ok
  2. git rev-parse master^ - Failed.

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.