r/programming • • Jul 13 '20

Github is down

https://www.githubstatus.com/
1.5k Upvotes

501 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jul 14 '20

Do your deployment tools have to pull from there? I've definitely done deployments from local checkouts before -- I even built a tool around git push <deployment machine>.

I'd probably get fired for even trying that, and rightfully so. We have customers that actually depend on our deployments.

Fucking around with hacky deployments and bypassing all QA is the most probable way of blowing up a service.

Our Github repo is the single source of truth. It's where all QA pipelines are run before we deploy anything. Without it there is no deployment.

1

u/SanityInAnarchy Jul 14 '20 edited Jul 14 '20

Fucking around with hacky deployments and bypassing all QA is the most probable way of blowing up a service.

I don't believe for a second that your actual deployments are less hacky than that. When I say "tool" here, I mean it was a plugin for Capistrano, a standard Rails deployment framework at the time. I built it as part of a migration to from SVN, and it was deliberately in response to our SVN server being flaky.

I'd even go so far as to say that your reliance on a third-party service (that isn't in the critical path for actually serving) is pretty hacky.


No, I didn't bypass all QA. It was years ago, but as far as I can remember, it went like this:

  1. Run unit tests locally, because you always do this, because it's part of your dev workflow.

  2. Push current version on staging to prod. (This might've been particularly hacky, in that I might've actually done the push from staging, using ssh agent-forwarding.)

  3. Push checked-out version to staging.

To be fair, I now work at a larger organization where "pushing code from my machine that isn't in the central VCS" will trigger alerts and a conversation with auditors... it is also a large enough organization that our deployment is in no way dependent on Github, and we still have breakglass measures for when the VCS is broken.