Elegant way to check gitdiff files on PR for arm-estimator? #268
Replies: 1 comment 8 replies
-
Hey @riosengineer, do you need to run estimation for all the Bicep / ARM Templates files during PR, or only for the ones, which have changed? I don't know how the structure of your files looks like, but ACE is intended to run estimations against selected scope (resource group, subscription, etc.). In other words - it produces both total estimation and diff as long as ARM is able to provide what has changed. If this is your case, then it means, you don't need git diff - you will always run estimation for all the files and get the cost difference. If the cost difference is not reported, then it's either ARM not returning the proper value, or there's a bug in ACE :) |
Beta Was this translation helpful? Give feedback.
-
Hey,
Wondering if anyone has gone through the pain of figuring out a clean and sleek way to only run the tooling on commits present in a PR within Azure DevOps?
Would be awesome to run an estimation of costs for any files edited on PR, and even post the table in the ADO comments.
For now, it looks like I will need to create a ton of custom logic to get this done using gitdiff, and then figure out the paired param file based on repo structure.
Beta Was this translation helpful? Give feedback.
All reactions