Example PR: GitHub Action Behaviour - validate semguard PR comment and annotations#2
Open
yeaight7 wants to merge 5 commits into
Open
Example PR: GitHub Action Behaviour - validate semguard PR comment and annotations#2yeaight7 wants to merge 5 commits into
yeaight7 wants to merge 5 commits into
Conversation
…R comment test workflow
dbt-semguard reportBreaking changes
Risky changes
Status: blocking |
Repository owner
locked and limited conversation to collaborators
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This is a deliberately artificial PR created to demonstrate how
dbt-semguardbehaves when a pull request introduces semantic changes in a dbt Semantic Layer definition.The goal is not to merge this PR. The goal is to leave it open as a public example showing:
dbt-semguardreportThis PR can be used by potential users to understand what the tool looks like in practice before installing it in their own dbt projects.
What this PR changes
This PR modifies the example semantic model fixture at:
The changes intentionally alter the semantic contract exposed by the fixture.
Breaking changes introduced
1.
gross_revenueaggregation changedThis changes the meaning of
gross_revenuefrom total revenue to average order revenue. Breaking change.2.
countrydimension removedThis removes a dimension that downstream BI users could previously use to slice or group the metric. Breaking change.
3. Ratio metric denominator changed
This changes the definition of the
aovratio metric.Previously,
aovmeant:After this PR, it means:
That completely changes the business meaning of the metric and should be blocked by default.
4.
ordered_attime granularity changedThis changes the time grain of the
ordered_atdimension from daily to weekly. This causes loss of information. Breaking change.Changing from
weektodaywould be risky instead of breaking (no loss of information).Risky changes introduced (click to expand subsections)
5. New `sales_rep` entity added
This adds a new foreign entity to the semantic model.
Adding an entity is not necessarily breaking, but it changes the available semantic join surface and should be visible during review.
6. New `sales_channel` dimension added
This adds a new categorical dimension to the semantic model.
This is useful as an example of a non-blocking semantic expansion: it changes the available analytical surface, but does not remove or redefine an existing field.
7. `gross_revenue` filter changed
This changes which rows are included in the
gross_revenuemetric.The metric now includes refunded orders, which may be intentional, but it changes the population behind the metric and should be reviewed explicitly.
8. New `refunded_orders` metric added
This adds a new metric to the semantic layer.
Adding a metric is generally not breaking, but it is still a semantic contract change and should appear in the review report.
Expected dbt-semguard behavior
The
dbt-semguardGitHub Action should detect both breaking and risky semantic changes.Expected result:
Because the workflow is configured with:
the action itself is expected to return a failing status for the semantic guard step.
For demo purposes, the workflow may use
continue-on-error: trueso that a later assertion step can print and verify the action outputs clearly.Why this matters
Normal dbt CI can tell you whether a project parses or builds.
It does not necessarily tell you whether a PR changed the business meaning of a metric.
This PR demonstrates the class of issue
dbt-semguardis designed to catch:Examples of downstream impact include:
What to look at in this PR
Reviewers should inspect:
orders.ymlfile.dbt-semguardGitHub Action run.highest-severityblockingbreaking-countrisky-countsafe-countThe important part is not the fixture itself. The important part is the review experience around the semantic diff.
Merge status
This PR is intentionally not meant to be merged.
It should remain open as a live demonstration of how
dbt-semguardbehaves on a realistic semantic change review.If this PR is eventually closed, it should be closed without merging.