‹ BackHN Continuity

Thread

GitHub Actions and Pages are experiencing degraded availability

163 points · 95 comments · Footkerchief

  1. arandomhuman · · focus · HN ↗
    I love how even self hosted workers don't work during these outages - running jobs on their infrastructure being flakey is marginally acceptable, but the API to simply schedule workflows having this availability is mind boggling. Github just doesn't seem like a serious company anymore.
    1. x3n0ph3n3 · · focus · HN ↗
      Microsoft is not a serious company anymore.
      1. hinkley · · focus · HN ↗
        They never were. They were just really good at maintaining the bluster and backing it up with expensive lawyers. Now that they don't come in claws-first like they did when they were a NASDAQ rocket to the stars, it's easy to see.

        Their MO was to court an executive and sell second-rate tools to them before the people who had to use them had a chance to say anything. It doesn't matter how much evidence you can provide to the contrary, once the million dollar deal is signed, you are going to be tasked with finding reasons to say that your executive was shrewd for buying this pile of junk and unfulfilled promises, and not an insane idiot sucking away your job satisfaction as fast as they can.

        They did a lot of deals based on how their products would have features their competitors already have 'soon' when they haven't even started them, and a long track record of taking 3 major releases to get from something to good, and then breaking everything again by doing a 4th major release that re-imagined everything and made it horrible again.

        I'm not going to claim that Apple was or is a panacea. Apple doesn't use vaporware which is big, and their Cycle of Awful is 2 releases instead of 3. You could afford to skip 1 waiting for the next even-numbered version, instead of being 2 versions behind and getting pressed to upgrade.

        1. markus_zhang · · focus · HN ↗
          They definitely managed to create a lot of reliable products.

          Windows NT was one of them. Up to Windows XP the products were pretty solid and each had visible improvement against the previous one.

          Their language products were/are still solid IMO. Maybe Visual Studio is sluggish, but we can still use an older version if we want. Plus they put a lot of effort optimizing VSCode, too.

          Even back in the MS-DOS/16-bit Windows days, when things broke down quite easily, I think they still provide the best bang for individual users and developers. There was no competitors who could provide so much value back then.

      2. sharts · · focus · HN ↗
        One might question your perspective if you ever thought they were serious.
    2. vaneri2007 · · focus · HN ↗
      Maybe switching to <a href="https:&#x2F;&#x2F;github.com&#x2F;gitlabhq" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gitlabhq :)
    3. duped · · focus · HN ↗
      I&#x27;m not sure that it&#x27;s that mind boggling. The entire complexity and value of GHA is not in the runners but the scheduler that the GH frontend hooks into and runners subscribe to jobs from. It&#x27;s the most likely thing to fall over. &#x27;

      If the scheduling was self hosted it would be inexcusable but you can always just connect whatever you want to webhooks.

      1. hinkley · · focus · HN ↗
        The entire complexity and value of GHA is rent-seeking to keep the lights on for other things.

        They have a strong motivation (self preservation) to continue to misunderstand the problem. If they did what is best for us, then we could avoid a substantial fraction of all GH subscriptions by using a FOSS tool to hit the Pareto frontier by replicating just enough GH services to watch commits and PRs.

      2. packetlost · · focus · HN ↗
        That &quot;scheduling&quot; is just a git hook and a message queue, maybe with some database updates in between with very clear boundaries that make sharding easy to reason about, assuming they have a sane architecture (they evidently don&#x27;t)
        1. jacobgold · · focus · HN ↗
          It&#x27;s just silly to guess at how a system works, or should work, without digging into the details. Because you simply don&#x27;t know what you don&#x27;t know.
          1. packetlost · · focus · HN ↗
            The only statement I&#x27;m making about their system is that it appears to be poorly designed, as evident by their poor uptime. The rest is just visible details about what data is involved in performing the task at hand, agnostic to the implementation underlying it.
        2. duped · · focus · HN ↗
          The one thing that falls over is that the webhooks are actually self modifying code since you have an &#x27;on commit&#x27; webhook that bootstraps the actions logic from the workflow.yaml file(s) (which are not really config files, they have logic that needs to be evaluated).

          I don&#x27;t disagree that it&#x27;s obvious they&#x27;ve got problems but I&#x27;m just saying it&#x27;s obvious to me the part that falls over (the scheduling of jobs) and why that would impact self hosted runners, which do no scheduling but depend on it to function.

          As for &#x27;just a message queue with some database updates and sharding that&#x27;s easy to reason about&#x27;... Here&#x27;s a job scheduling problem as an example: imagine you schedule a job, and there&#x27;s no runner available. How do you disambiguate between no runners available because you&#x27;ve reached capacity, runners not being available because they&#x27;re on a real network with faulty connections, and runners not being available because of a faulty rollout of internal updates?

          A simple message queue for job scheduling is fine if you own everything and can deal with the operational overhead of identifying those cases by hand, but Github can&#x27;t do that.

          1. packetlost · · focus · HN ↗
            &gt; The one thing that falls over is that the webhooks are actually self modifying code since you have an &#x27;on commit&#x27; webhook that bootstraps the actions logic from the workflow.yaml file(s) (which are not really config files, they have logic that needs to be evaluated).

            Sure, but the part that actually schedules where a &#x27;job&#x27; gets run is based on a relatively simplistic tag system. Reading the yaml and plopping some job metadata into a queue-like system isn&#x27;t where I would expect their issues to be, but at their scale I&#x27;m sure everything becomes fragile and inscrutable.

            &gt; imagine you schedule a job, and there&#x27;s no runner available. How do you disambiguate between no runners available because you&#x27;ve reached capacity, runners not being available because they&#x27;re on a real network with faulty connections, and runners not being available because of a faulty rollout of internal updates?

            You don&#x27;t need to. GitHub Actions runners, and most CI runners that I&#x27;ve interacted with appear to have a pull-based model where they ask for work that matches their declared tags&#x2F;shape (usually platform&#x2F;runtime&#x2F;OS&#x2F;etc.). This probably amounts to a database query, but who knows.

            &gt; A simple message queue for job scheduling is fine if you own everything and can deal with the operational overhead of identifying those cases by hand, but Github can&#x27;t do that.

            I highly doubt it&#x27;s a simple message queue. My issue is git repos and their CI infrastructure have very low coupling to other repos or entities in most circumstances, at least conceptually, so parts of the system (ie. regions, shards, etc.) should be able to function even when others are down (ie. it shouldn&#x27;t break for everyone). There&#x27;s clearly centralization and coupling that isn&#x27;t obvious from an outside perspective, which sorta tells me it&#x27;s incidental.

    4. inigyou · · focus · HN ↗
      GitHub implements self hosted runners by running a normal runner that passes the environment to your runner and then polls it. That&#x27;s why they cost as much as the smallest GitHub-hosted runner.

      This is no surprise given standard Microsoft operating procedure - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47616242">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=47616242

      1. exochrono · · focus · HN ↗
        they walked that back for now at least - self-hosted gh runners are still free: <a href="https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;billing&#x2F;concepts&#x2F;product-billing&#x2F;github-actions" rel="nofollow">https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;billing&#x2F;concepts&#x2F;product-billing&#x2F;...
        1. inigyou · · focus · HN ↗
          Well, they&#x27;re still implemented that way.
      2. arandomhuman · · focus · HN ↗
        Oh that is pretty gross, thanks for sharing. I was not aware of that process, that explains the cost they attempted to roll out for runners too a few months back.
    5. cyanydeez · · focus · HN ↗
      gitlab-ce can run all the integration tests in docker et al.

      Sitting on Github these days is the same as sticking to twitter a decade ago, expect next mecha hitler, I suppose.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.