Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip post-action for clean tasks #96

Open
Sherlouk opened this issue Feb 21, 2023 · 2 comments
Open

Skip post-action for clean tasks #96

Sherlouk opened this issue Feb 21, 2023 · 2 comments

Comments

@Sherlouk
Copy link

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?

@BalestraPatrick
Copy link
Member

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".

@Sherlouk
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants