<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Suyash Magar</title>
    <description>The latest articles on DEV Community by Suyash Magar (@suyashmagar17).</description>
    <link>https://dev.to/suyashmagar17</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1317014%2F9ddbd946-41e1-4457-8169-6ffe383ad9ce.png</url>
      <title>DEV Community: Suyash Magar</title>
      <link>https://dev.to/suyashmagar17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/suyashmagar17"/>
    <language>en</language>
    <item>
      <title>10 Real Airflow Incidents, 5 AI Models — Which One Handled Production Best?</title>
      <dc:creator>Suyash Magar</dc:creator>
      <pubDate>Sat, 26 Sep 2026 15:47:54 +0000</pubDate>
      <link>https://dev.to/suyashmagar17/10-real-airflow-incidents-5-ai-models-which-one-handled-production-best-4480</link>
      <guid>https://dev.to/suyashmagar17/10-real-airflow-incidents-5-ai-models-which-one-handled-production-best-4480</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/kaggle-2026-09-23"&gt;Kaggle Benchmarking Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Benchmarked
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;OpsBench - Airflow and SRE Troubleshooting&lt;/strong&gt;, a benchmark designed to test whether AI models can diagnose realistic production issues rather than only answer coding questions.&lt;/p&gt;

&lt;p&gt;The benchmark contains 10 tasks covering:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Airflow Slow DAG Parsing Diagnosis&lt;/li&gt;
&lt;li&gt;Fixed EST vs Daylight Saving Time&lt;/li&gt;
&lt;li&gt;Shell Script Failure Reported as Success&lt;/li&gt;
&lt;li&gt;API Timeout and Retry Strategy&lt;/li&gt;
&lt;li&gt;Airflow Logical Date vs Business Date&lt;/li&gt;
&lt;li&gt;Airflow DAG Parser Scalability&lt;/li&gt;
&lt;li&gt;Airflow Worker Deadlock Diagnosis&lt;/li&gt;
&lt;li&gt;Batch Job Performance Regression&lt;/li&gt;
&lt;li&gt;Distributed Concurrency Control&lt;/li&gt;
&lt;li&gt;Noisy Production Incident Root Cause&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wanted to measure whether models could identify root causes, ignore misleading symptoms, reason about Airflow internals, and recommend production-safe fixes.&lt;/p&gt;

&lt;p&gt;The tasks cover scenarios such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;expensive top-level code slowing DAG parsing&lt;/li&gt;
&lt;li&gt;DST-aware timezones vs fixed UTC-5 schedules&lt;/li&gt;
&lt;li&gt;shell scripts returning non-zero exit codes&lt;/li&gt;
&lt;li&gt;retry storms caused by unbounded API retries&lt;/li&gt;
&lt;li&gt;business-date calculation mistakes&lt;/li&gt;
&lt;li&gt;scheduler scalability issues&lt;/li&gt;
&lt;li&gt;database deadlocks&lt;/li&gt;
&lt;li&gt;batch jobs becoming 3x slower&lt;/li&gt;
&lt;li&gt;concurrency across multiple workers&lt;/li&gt;
&lt;li&gt;noisy production logs containing one real root cause&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Models Tested
&lt;/h2&gt;

&lt;p&gt;I evaluated the benchmark against five models:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 4.6&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-5.4 mini&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-5.5&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 3.7 Flash&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen 3 Coder 480B&lt;/td&gt;
&lt;td&gt;90&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqex58fz9nxtrcpcl1ghr.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqex58fz9nxtrcpcl1ghr.PNG" alt="Score vs total cost" width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I intentionally selected models from different providers and capability/cost profiles so I could compare not only correctness, but also efficiency.&lt;/p&gt;

&lt;h2&gt;
  
  
  Findings
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzcf45is5gd80lb8myueu.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzcf45is5gd80lb8myueu.PNG" alt="Kaggle leaderboard" width="800" height="584"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The biggest surprise was that &lt;strong&gt;four of the five models achieved a perfect score across all 10 tasks&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This suggests that current models are already quite capable at many common Apache Airflow and SRE troubleshooting scenarios when the problem contains enough evidence.&lt;/p&gt;

&lt;p&gt;Another important finding was the relationship between &lt;strong&gt;cost and performance&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Some of the lower-cost models achieved the same perfect score as more expensive models. For this benchmark, higher inference cost did not automatically produce better results.&lt;/p&gt;

&lt;p&gt;This changed the question for me from:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which model is the most powerful?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Which model is powerful enough for the task at the lowest practical cost?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is especially relevant when building production AI assistants for incident triage or operational support.&lt;/p&gt;

&lt;h3&gt;
  
  
  The most interesting failure
&lt;/h3&gt;

&lt;p&gt;Qwen 3 Coder 480B scored &lt;strong&gt;90&lt;/strong&gt;, failing only the &lt;strong&gt;Airflow DAG Parser Scalability&lt;/strong&gt; task.&lt;/p&gt;

&lt;p&gt;The model correctly identified that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;expensive operations were happening during DAG parsing&lt;/li&gt;
&lt;li&gt;repeated parsing across 120 DAGs compounds the problem&lt;/li&gt;
&lt;li&gt;increasing CPU, timeout, or parser processes does not fix the root cause&lt;/li&gt;
&lt;li&gt;expensive work should be moved into Airflow tasks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, it missed one operational consequence:&lt;/p&gt;

&lt;p&gt;Repeated parse-time API calls and database queries can also put pressure on the &lt;strong&gt;external systems themselves&lt;/strong&gt;, such as databases and APIs.&lt;/p&gt;

&lt;p&gt;That difference was useful because it showed that a technically strong answer can still miss a broader systems-level impact.&lt;/p&gt;

&lt;h3&gt;
  
  
  Noisy production incident reasoning
&lt;/h3&gt;

&lt;p&gt;One task intentionally included several distractions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;worker memory warning&lt;/li&gt;
&lt;li&gt;DNS latency&lt;/li&gt;
&lt;li&gt;DAG parsing delay&lt;/li&gt;
&lt;li&gt;database CPU information&lt;/li&gt;
&lt;li&gt;an actual database deadlock&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The models had to prioritize direct evidence and identify the real issue rather than react to every warning.&lt;/p&gt;

&lt;p&gt;The strongest evidence was the circular database lock wait combined with a recent change in transaction lock ordering.&lt;/p&gt;

&lt;p&gt;The models generally handled this well, which suggests they can be effective at separating symptoms from root causes when the logs contain clear evidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  What surprised me most
&lt;/h3&gt;

&lt;p&gt;I expected the larger or more expensive models to consistently outperform smaller ones.&lt;/p&gt;

&lt;p&gt;That did not happen in this benchmark.&lt;/p&gt;

&lt;p&gt;Several models reached the same maximum score, while a lower-cost model could be significantly more cost-efficient.&lt;/p&gt;

&lt;p&gt;So for this type of production troubleshooting, model selection may need to consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;accuracy&lt;/li&gt;
&lt;li&gt;latency&lt;/li&gt;
&lt;li&gt;cost&lt;/li&gt;
&lt;li&gt;operational reliability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;rather than just choosing the largest available model.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I would measure next
&lt;/h3&gt;

&lt;p&gt;The current benchmark provides all relevant logs and context in a single prompt.&lt;/p&gt;

&lt;p&gt;A future version would test &lt;strong&gt;interactive incident investigation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For example, the model might initially receive only:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An Airflow task has been running for 45 minutes with no progress.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The model would then need to decide what evidence to request next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;task logs&lt;/li&gt;
&lt;li&gt;worker CPU&lt;/li&gt;
&lt;li&gt;database lock information&lt;/li&gt;
&lt;li&gt;stack traces&lt;/li&gt;
&lt;li&gt;scheduler health&lt;/li&gt;
&lt;li&gt;network metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That would test whether the model knows &lt;strong&gt;how to investigate an incident&lt;/strong&gt;, rather than simply recognizing the answer after all evidence has already been provided.&lt;/p&gt;

&lt;p&gt;I would also like to test:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;business holiday calendars&lt;/li&gt;
&lt;li&gt;partial upstream data availability&lt;/li&gt;
&lt;li&gt;retry multiplication across multiple layers&lt;/li&gt;
&lt;li&gt;stale dependency state&lt;/li&gt;
&lt;li&gt;multi-step incident response&lt;/li&gt;
&lt;li&gt;tool-using SRE agents&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Benchmark
&lt;/h2&gt;

&lt;p&gt;You can view the complete benchmark, tasks, model results, and leaderboard here:&lt;br&gt;
&lt;a href="https://www.kaggle.com/benchmarks/suyashmagar/opsbench-airflow-and-sre-troubleshooting/leaderboard" rel="noopener noreferrer"&gt;OpsBench - Airflow and SRE Troubleshooting&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI Disclosure:&lt;/strong&gt; AI assistance was used for article drafting and editing. The benchmark design, execution, results, and final review were performed by the author.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>kagglechallenge</category>
      <category>ai</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
