public static function getCrashesForBuildID()

in app/classes/ReleaseInsights/Utils.php [20:33]


    public static function getCrashesForBuildID(int $buildid): array
    {
        // We only fetch Desktop builds crashes, I haven't found out how to get Fenix crashes per buildID yet
        $cache_id = URL::Socorro->value . 'SuperSearch/?build_id=' . $buildid . '&_facets=signature&product=Firefox';

        if (defined('TESTING_CONTEXT')) {
            $cache_id = TEST_FILES .'/crash-stats.mozilla.org.json';
            if ($buildid == '20190927094817') {
                $cache_id = TEST_FILES .'/empty.json';
            }
        }

        return Json::load(url: $cache_id, ttl: 30);
    }