Skip to content

feat(preprod): Add artifact-type filtering to size status checks#108311

Open
cameroncooke wants to merge 3 commits intomasterfrom
codex/eme-808-backend-artifact-rules
Open

feat(preprod): Add artifact-type filtering to size status checks#108311
cameroncooke wants to merge 3 commits intomasterfrom
codex/eme-808-backend-artifact-rules

Conversation

@cameroncooke
Copy link
Contributor

@cameroncooke cameroncooke commented Feb 16, 2026

Add artifact-type filtering support to preprod size status checks.

Previously rules were effectively evaluated only against main-app metrics. This change introduces explicit rule artifact types and applies them during status check evaluation, so rules can target Main App, Watch App, Android Dynamic Feature, or All artifacts.

Key changes:

  • Parse and normalize rule artifact type via a typed enum.
  • Preserve legacy behavior by defaulting missing artifact type to Main App.
  • Select candidate compare metrics per rule artifact type.
  • Match base metrics using both metric artifact type and identifier.
  • Include triggered artifact type details in status check output.
  • Count failed checks from triggered rules and dedupe expanded rule links.
  • Add and expand tests for rule parsing, artifact-targeted evaluation, helper selection logic, and templates.

Refs EME-808

@linear
Copy link

linear bot commented Feb 16, 2026

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 16, 2026
Parse status check rule artifact types as explicit enums and apply artifact-matching semantics consistently when selecting compare metrics. Add focused tests for candidate metric and base metric matching helpers to guard against neutral-first-run regressions.

Refs EME-808
@cameroncooke cameroncooke force-pushed the codex/eme-808-backend-artifact-rules branch from 334b6f1 to ad7fc00 Compare February 16, 2026 16:41
Copy link
Contributor Author

cameroncooke commented Feb 16, 2026

Fix CI pre-commit lint by applying ruff formatting to the status check filter test file.

Refs EME-808
@cameroncooke cameroncooke changed the title fix(preprod): Apply artifact-aware status check evaluation feat(preprod): Add artifact-type filtering to size status checks Feb 16, 2026
@cameroncooke cameroncooke marked this pull request as ready for review February 16, 2026 16:58
@cameroncooke cameroncooke requested a review from a team as a code owner February 16, 2026 16:58
Replace string artifact type values with RuleArtifactType enums in status check filter tests so backend typing passes.

Refs EME-808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant