-
Notifications
You must be signed in to change notification settings - Fork 1
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
Question: how should analysis-result be used? #1
Comments
As for setting a hard limit - it might make sense for a constrained embedded system (you obviously have a hard cap on flash size), but I'd avoid doing it in other projects. I think it's hard to make a heuristic that determines whether the size increase is warranted. Oh, btw, Bloaty has mutliple output formats so if you want to parse the results with something else, I can add an option to use that flag. I didn't include it, because I didn't have a need for it so far. CSV might be easier to parse if you end up deciding to include a size-limiting job. |
Ok, how do I get the contents of that variable into a file? I tried - name: "store results"
run: |
echo -E ${{ analysis-result }} > bloaty-sizes.txt But it gives me this error:
I suspect that variable "ends it's scope" when the bloaty action ends? What is the best way for me to get the result into bloaty-sizes.txt so I can store it as an artifact? |
This suggests that workflow variables are scoped, so in order to refer to the variable, you need to use the id:
|
Thanks for the reference! I made progress. However, I think the action only assigns the first row to the variable. I get
from the analysis-results variable. If I look in the log output during the action, the body of the table seems to be written to the terminal rather than captured by the variable. I do not know if you can access it, but here is a link to the output: https://github.com/simdjson/simdjson/runs/1240273039?check_suite_focus=true and here is the workflow: https://github.com/pauldreik/simdjson/blob/pauldreik/bloaty/.github/workflows/bloaty.yml |
Hmm, I didn't expect this behavior. I'll consider it to be a bug and I'll fix it. |
Thanks. While we are at it, may I wish for an optional parameter specifying a file which the results are written to? |
@djarek friendly reminder, do you intend to fix this in the near future? |
Thanks for writing this action! I got it running, but now I want to store the results as an artifact.
I don't understand how the analysis-result is to be interpreted. Should it be set to a filename where to write the results? How do I get the results into a file I can store as a github action artifact?
On a side note. Is it possible to setup some limit, like failing the job if the binary size increases by more than x bytes (or percent)?
The text was updated successfully, but these errors were encountered: