Giter Site home page Giter Site logo

tps-report's Introduction

Hi there ๐Ÿ‘‹

I'm a Director of Engineering currently focused on Twilio Segment's Infrastructure Platform.

  • ๐Ÿข I'm currently working at Segment
  • ๐ŸŒ I'm passionate about remote work and do so from my home in Orlando, FL
  • ๐Ÿ’ฌ Ask me about leadership, DevOps, SRE, or most of the popular CNCF projects
  • ๐Ÿฆ You can reach me @jesseadametz
  • ๐Ÿ“ซ Or by email; jesseadametz at sent.com
  • ๐Ÿ˜„ Pronouns: he/him/his

tps-report's People

Contributors

dependabot[bot] avatar jadametz avatar praymann avatar

Watchers

 avatar  avatar

tps-report's Issues

in_use_release has to be an exact match of the tag/release, else the ReconcileSoftware fails

The bug here exposes itself is a weird way too, as the Software still successfully creates even though a "Create Failed" message is surfaced to the end-user. If they try again, they just get a 422 response since that org/name is already taken.

It might be slick here to catch this, and try again with a v#{in_use_release} to see if the end-user just forgot about the repository's naming convention.

Started POST "/api/v1/software/create" for ::1 at 2020-08-14 09:48:24 -0500
Processing by Api::V1::SoftwareController#create as JSON
  Parameters: {"name"=>"kops", "org"=>"kubernetes", "full_name"=>"kubernetes/kops", "in_use_release"=>"1.16.2", "software"=>{"name"=>"kops", "org"=>"kubernetes", "full_name"=>"kubernetes/kops", "in_use_release"=>"1.16.2"}}
Unpermitted parameters: :format, :software
   (0.0ms)  begin transaction
  โ†ณ app/controllers/api/v1/software_controller.rb:8
  Software Exists (0.2ms)  SELECT  1 AS one FROM "softwares" WHERE "softwares"."name" = ? AND "softwares"."org" = ? LIMIT ?  [["name", "kops"], ["org", "kubernetes"], ["LIMIT", 1]]
  โ†ณ app/controllers/api/v1/software_controller.rb:8
  Software Exists (0.1ms)  SELECT  1 AS one FROM "softwares" WHERE "softwares"."full_name" = ? LIMIT ?  [["full_name", "kubernetes/kops"], ["LIMIT", 1]]
  โ†ณ app/controllers/api/v1/software_controller.rb:8
  Software Create (2.0ms)  INSERT INTO "softwares" ("name", "org", "full_name", "created_at", "updated_at", "in_use_release") VALUES (?, ?, ?, ?, ?, ?)  [["name", "kops"], ["org", "kubernetes"], ["full_name", "kubernetes/kops"], ["created_at", "2020-08-14 14:48:24.348402"], ["updated_at", "2020-08-14 14:48:24.348402"], ["in_use_release", "1.16.2"]]
  โ†ณ app/controllers/api/v1/software_controller.rb:8
   (1.1ms)  commit transaction
  โ†ณ app/controllers/api/v1/software_controller.rb:8
[ActiveJob] [ReconcileSoftware] [097ca3d3-c869-431f-b448-05a85257e07a] Performing ReconcileSoftware (Job ID: 097ca3d3-c869-431f-b448-05a85257e07a) from Async(default) with arguments: #<GlobalID:0x00007ff798bcac18 @uri=#<URI::GID gid://tps-report/Software/9>>
[ActiveJob] [ReconcileSoftware] [097ca3d3-c869-431f-b448-05a85257e07a] Error performing ReconcileSoftware (Job ID: 097ca3d3-c869-431f-b448-05a85257e07a) from Async(default) in 1396.76ms: NoMethodError (undefined method `published_at' for nil:NilClass):
/Users/dpramann/repos/tps-report/app/models/software.rb:34:in `reconcile_with_github'
/Users/dpramann/repos/tps-report/app/models/software.rb:14:in `reconcile!'
/Users/dpramann/repos/tps-report/app/jobs/reconcile_software.rb:5:in `perform'
/Users/dpramann/.rvm/gems/ruby-2.6.3/gems/activejob-5.2.4.2/lib/active_job/execution.rb:39:in `block in perform_now'
/Users/dpramann/.rvm/gems/ruby-2.6.3/gems/activesupport-5.2.4.2/lib/active_support/callbacks.rb:109:in `block in run_callbacks'

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.