Skip to content

Maintenance and verification

Keep canonical formulas, generated downloads, lessons, and expected data results synchronized. Never claim a DAX engine run from Python arithmetic.

Local checks

From a repository checkout, with Python 3.12:

python -m unittest discover -s scripts -p "test_*.py"
python scripts/build_downloads.py
python -m pip install -r requirements.txt
mkdocs build --strict
python scripts/check_site.py

The test suite checks dataset integrity, independent reference totals, blank/ ratio expectations, alternate-date data, and packaging behavior. Download generation validates catalog completeness, named definitions, and source delimiters, then derives query DEFINE blocks from the canonical measures. It is not a DAX parser or runtime.

The site build checks snippet paths/navigation/anchors. The generated-link check verifies same-site HTML targets, fragments, and referenced assets, including the example ZIP and query downloads.

Actual engine validation

  1. Follow model setup and record the engine version/storage mode.
  2. Run the downloaded totals, region, product, time, shipping, intersection, and check queries without unrelated filters.
  3. Compare their results with the documented fixture expectations.
  4. Save non-sensitive query output and the relationship state.
  5. Test report-specific ALLSELECTED behavior under equivalent slicers.
  6. Test RLS separately with the intended role/identity/permissions.

No engine runtime is provisioned by routine CI. Contributors with Power BI or Analysis Services access should include actual execution evidence in PRs. Query output values need independent requirements, not just assertions copied from the formula under review.

Publication

Pull requests run dataset/package/documentation validation without Pages write permissions. Main pushes and manual main dispatch publish only after checks succeed. The workflow never creates Azure resources, publishes a Power BI semantic model, or stores credentials in examples.

Change checklist

  • Explain the intended behavior, model assumptions, and context.
  • Modify the canonical source rather than editing generated downloads.
  • Update directly affected expected data/lessons when the business fixture changes.
  • Preserve GPL-3.0 and respect external licenses.
  • Keep the root README compatible with GitHub; avoid MkDocs-only syntax there.
  • Verify the source's object kind and copy/paste destination.
  • State precisely which checks ran and which engine exercises remain unrun.