Skip to content

fix(aci): Extend taint tracking to delayed workflow condition evaluation#104368

Merged
kcons merged 3 commits intomasterfrom
kcons/more_prec
Dec 12, 2025
Merged

fix(aci): Extend taint tracking to delayed workflow condition evaluation#104368
kcons merged 3 commits intomasterfrom
kcons/more_prec

Conversation

@kcons
Copy link
Copy Markdown
Member

@kcons kcons commented Dec 4, 2025

delayed_workflow can fail to evaluate snuba queries and as a result potentially trigger incorrectly.
We already report this case, but only locally and without any reasonable way to assess the impact.

Extending the TriggerResult taint-tracking approach to delayed workflow condition evaluation allows us to start
tracking at least in terms of if-condition evaluations how many results are tainted vs not, giving us something much more user-relevant to alert on.

This should be refined further to be reported in terms of workflows and/or actions, but that's a follow-up.

Updates ACI-563.

@kcons kcons requested a review from ameliahsu December 4, 2025 00:43
@kcons kcons requested a review from a team as a code owner December 4, 2025 00:43
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 4, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 93.75000% with 2 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...try/workflow_engine/processors/delayed_workflow.py 93.75% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #104368      +/-   ##
===========================================
+ Coverage   72.09%    80.40%   +8.30%     
===========================================
  Files        9388      9393       +5     
  Lines      403214    403531     +317     
  Branches    25991     25991              
===========================================
+ Hits       290699    324458   +33759     
+ Misses     112067     78625   -33442     
  Partials      448       448              

@kcons kcons requested a review from saponifi3d December 5, 2025 23:51
groups_to_fire[group_id].add(dcg)

return groups_to_fire
return groups_to_fire, _ConditionEvaluationStats(tainted=tainted, untainted=untainted)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Wondering if we should just report the stats in here instead of returning them

@kcons kcons enabled auto-merge (squash) December 12, 2025 23:15
@kcons kcons merged commit 181d18f into master Dec 12, 2025
67 checks passed
@kcons kcons deleted the kcons/more_prec branch December 12, 2025 23:37
@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants