Software · Data Engineering

Schema drift between environments caught automatically, not by hand

An automated audit compares data schema components across dev, stage and prod. Drift is reported, flagged by email and published for review.

Manual Customer Engineering effort for environment audits and drift detection was eliminated.

The operating problem

No one could see what had changed between environments

The customer ran dev, stage and prod environments across two business units. Changes had to be audited between them, but no solution detected anomalies or drift between the business units and sandboxes.

Engineering teams checked by hand, and untested changes could reach a higher environment unnoticed.

What Ganit engineered

An end-to-end automated schema audit

A Python solution calls the schema APIs and audits differences between two sandboxes. It runs on Databricks on a fixed schedule, publishes results, adds data quality checks and alerts the engineering team on risky changes.

Python, Databricks, Confluence and SharePoint.

  1. Schema Audit

    Compares schema components between sandboxes to find diffs and drifts.

  2. Drift Alerts

    Emails the engineering team when a higher environment changes without testing below.

  3. Review Reports

    Publishes audit results to a wiki page and pushes flattened CSV files to SharePoint.

  4. Data Quality Checks

    Runs quality checks with each audit and publishes the component pages.

How the work changed

From manual environment checks to a scheduled audit

Current stateThe gapDesired state
No way to detect drift between business units and sandboxes.Automated audits compare the environments.
Engineers reviewed environment changes by hand.Reports and CSV files make drift quick to review.
Untested changes could reach a higher environment.An email alert flags them to the engineering team.

What closed the gapSchema Audit · Drift Alerts · Review Reports · Data Quality Checks

Next story · SoftwareFeature flags moved to a new platform without disrupting the teams