-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add first possible annotation syntax #24
base: main
Are you sure you want to change the base?
Conversation
Annotations are a bit difficult. The problem is the cleanup process. The cleanup process is being executed before any annotation script is run. This leads to problems if the cleanup process actually removes files from hard disk, which actually need to be around for the annotation process e.g. filesize checks for generated files. There are two options to solve the problem. ProblemLet the annotation be the following [run.dd.annotations]
filesize = "ls -al {output} | awk '{{print $5}}'"
modified = "ls -al /tmp/Cargo.toml.dd | awk '{{print $6\" \"$7\" \"$8}}'" which returns the file size and the last modification date of the file. The filesize can not be computed afterwards, since Solutions
|
- In case there is a cleanup process already setup, then the annotation tasks will be prepended. Otherwise a cleanup process will be added and all annotations will be executed
/// Generate jq command to manipulate `hyperfine` result json | ||
pub fn generate_jq_cmd(key: &str, cmd: &str, json: &str) -> String { | ||
format!( | ||
"jq --arg {0} $({1}) '.results[0].{0}=${0}' {2} > {2}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This override of the file is not working with jq .. the output will be empty
fixes #17