XCMetrics icon indicating copy to clipboard operation
XCMetrics copied to clipboard

Skip post-action for clean tasks

Open Sherlouk opened this issue 1 year ago • 2 comments

We're currently seeing quite a lot of noise generated by clean builds (which on CI is before every real build). Is there a way to prevent the post-action script from being called when we're simply cleaning?

Could this be a case of ignoring the 'noop' category?

Sherlouk avatar Feb 21 '23 16:02 Sherlouk

I think you should look if there are any environment variables that are set in the post-action that would make it possible to skip it. For example, I know that in run script phase you can identify if a build is a indexing build or a normal build by checking "$ACTION" == "indexbuild". There might exist something similar in the post-action variables.

I think in our case we mostly filter them from our dashboard and data (after collecting them anyway) by looking at schema. Clean actions will have a name such as "Clean SchemeName".

BalestraPatrick avatar Feb 21 '23 23:02 BalestraPatrick

Unfortunately I did dump "env" into a file and compared and there was only one difference to a "deep analysis" variable which feels weak to rely on.

The schema doesn't contain "Clean" in it for us. It looks almost identical in Backstage to any other build except "noop" category and of course being far shorter in duration!

Sherlouk avatar Feb 22 '23 08:02 Sherlouk