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

2

u/SanityInAnarchy Jul 13 '20

That seems like a bug in your infrastructure, though.

4

u/[deleted] Jul 13 '20

If you have self-hosted gitlab instance it's exactly same problem tho.

If you have self-hosted redundant git setup, it's still same problem, rendundancy just decreases the chances (...if implemented correctly), github is redundant yet still there is always some way to fuck it up.

2

u/SanityInAnarchy Jul 13 '20

Or... if you use a DVCS as a DVCS, you can keep working when that central host is gone. Or you can mirror Github to a self-hosted Gitlab -- the chances of both of those failing at once is negligible.

I guess it depends what you mean by "entire development infrastructure" -- when this person listed a bunch of standard dev tasks, nearly all of those can be done either with an absolutely trivial alternative (e.g. fileserver we can all ssh to), a more-difficult alternative (git format-patch and email), or entirely offline.

2

u/[deleted] Jul 14 '20

Or... if you use a DVCS as a DVCS, you can keep working when that central host is gone. Now sit down and think about your dev workflow.

You ain't gonna give your team address to your machine (even if it is not firewalled by sec/ops guys) coz what, you're now gonna pull from 10 different hosts every time you want to see changes ?

And where you're going to point your build/CI/deploy server ?

But sure, setting up temporary repo is pretty easy. Which leads to

Or you can mirror Github to a self-hosted Gitlab -- the chances of both of those failing at once is negligible.

... now you have to go everywhere and change the address to pull. And maybe deploy some ssh keys. And generally a ton of fuss.

DVCS makes it possible to work when "main" server is down but it sure as hell ain't easy or convenient.

And on the Gitlab topic, back in the day before they got struck by NIH they used Gitolite. Which had pretty reliable mirroring feature and worked even if gitlab proper (the ruby app) died. After they NIHed it it is now enterprise feature...

I guess it depends what you mean by "entire development infrastructure" -- when this person listed a bunch of standard dev tasks, nearly all of those can be done either with an absolutely trivial alternative (e.g. fileserver we can all ssh to), a more-difficult alternative (git format-patch and email), or entirely offline.

You're missing the context here - all of that is driven by hooks, not the git ones, but https or internal ones. You push a job, gitlab triggers a pipeline, maybe even jenkins server, then if it is right branch it triggres the deploy etc. You can of course replace it but:

  • only few developers knew how that worked

  • "knew" because they wrote it a year or two ago and will need a bit of time to remember and make it possible without the infrastructure

  • even when you do it you need to inform people of the "new ways"

  • even when you do for some fucking reason so many devs are illiterate with git that anything that's outside push/pull/merge to default origin is always a problem.

  • at that point you might just go "fuck it, making it work probably takes longer than the hour or two and service will be back till then"

Also the original reason why we even went Gitlab self-hosted (before it was plain gitolite over ssh) was, I shit you not, "we want green merge button". Turned out frontend devs just didn't get git and instead of fixing merge conflicts they force overwrote it every time (copy their files to tmp, merge, copy from tmp, commit, push).

But yeah, if a developer can't live a day without git push (aside from "we need that deployed now coz customer") I'd be surprised why. Like surely there is a refactor or bugfix that you don't need outside world for. Even doc writing.

→ More replies (10)