{"product_id":"detect-flaky-github-actions-jobs-with-openai-slack","title":"Detect Flaky GitHub Actions Jobs with OpenAI + Slack","description":"\u003ch3\u003eDetect flaky GitHub Actions jobs—and get Slack reports with OpenAI insights\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow automatically analyzes your \u003cstrong\u003eGitHub Actions\u003c\/strong\u003e re-runs to spot \u003cstrong\u003eflaky jobs\u003c\/strong\u003e, summarizes likely intermittent causes with \u003cstrong\u003eOpenAI\u003c\/strong\u003e, posts a clear update to \u003cstrong\u003eSlack\u003c\/strong\u003e, and files \u003cstrong\u003eGitHub issues\u003c\/strong\u003e for confirmed flakes—while tracking flake rates in an n8n Data Table.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns daily (or on demand)\u003c\/strong\u003e to start the analysis for a configured repository, workflow, and branch.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches recent GitHub Actions runs\u003c\/strong\u003e and filters to the target workflow’s successful and failed attempts, including earlier runs when a job was \u003cem\u003ere-run\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetrieves all jobs per run attempt\u003c\/strong\u003e (paging through results) to ensure matrix workflows are fully captured.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClassifies job behavior\u003c\/strong\u003e by aggregating outcomes by job name: flaky, confirmed flaky (failed then passed via re-run on the same commit), broken, or one-off.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eComputes flake rates\u003c\/strong\u003e and extracts common failing step names.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCompares against history\u003c\/strong\u003e stored in the \u003ccode\u003eflaky_jobs\u003c\/code\u003e n8n Data Table, reporting only new or significantly worse flaky jobs.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses OpenAI\u003c\/strong\u003e to group reported flaky jobs by likely intermittent cause based on failing step names.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePosts a formatted report to Slack\u003c\/strong\u003e and \u003cstrong\u003ecreates GitHub issues\u003c\/strong\u003e (up to a configured limit) for confirmed flakes.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpserts verdicts and latest flake rates\u003c\/strong\u003e back into the \u003ccode\u003eflaky_jobs\u003c\/code\u003e Data Table.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS ops teams want automated visibility into flaky CI\/CD behavior that wastes engineering time.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers need a repeatable workflow to turn flaky test signals into actionable GitHub issues.\u003c\/li\u003e\n  \u003cli\u003eTeams running GitHub Actions matrices want comprehensive job coverage and trend-based detection.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e GitHub, Slack, OpenAI\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNode categories used:\u003c\/strong\u003e \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003eno op\u003c\/code\u003e, \u003ccode\u003eslack\u003c\/code\u003e, \u003ccode\u003egithub\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStorage:\u003c\/strong\u003e n8n Data Table named \u003ccode\u003eflaky_jobs\u003c\/code\u003e for flake rates and verdicts\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAuth:\u003c\/strong\u003e HTTP Header Auth credential (setup step referenced in the source)\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45945735545011,"sku":"N8N-19072","price":6.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/sbi02xLDmo6YKtQRuY4S2_Ju58dK4I.png?v=1788427127","url":"https:\/\/buyflowscripts.com\/products\/detect-flaky-github-actions-jobs-with-openai-slack","provider":"N8N Commerce","version":"1.0","type":"link"}