100 Day of MLOps: 47 Day 47: Debug a Failing Great Expectations Checkpoint



I’m working on a Great Expectations (GX) lab task. I updated the fraud_schema suite and fixed the failing rule by changing the amount lower bound to handle negative values in the drifted dataset.

I ran the script:

python3 /root/code/dataquality/fix_drift.py

The output shows:

  • Checkpoint drift_check result: success=True

Data Docs also shows:

  • Status: Succeeded
  • 4/4 expectations passed
  • Everything is green

Problem

Even though everything looks correct, the lab is still marked as FAILED and there is no error message explaining why.

The observed minimum value is -372.22. I used -400 as the lower bound (buffer), but I was told either -372.22 or -400 should work.


What might be wrong

I suspect one of these issues:

  1. The grader expects the exact value -372.22, not -400
  2. The autograder checks the saved JSON file, not runtime success or Data Docs
  3. A hidden validation step is failing that is not shown in Data Docs
  4. The suite update is not being correctly picked up by the grader

Question

Why would the lab still fail even when:

  • success=True
  • Data Docs is green
  • All expectations pass

What am I missing?

You can refer to this solutiion

1 Like