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

Track uses of bug minimizer for eventual paper #8

Open
JasonGross opened this issue Jun 21, 2021 · 2 comments
Open

Track uses of bug minimizer for eventual paper #8

JasonGross opened this issue Jun 21, 2021 · 2 comments

Comments

@JasonGross
Copy link
Collaborator

JasonGross commented Jun 21, 2021

It seems useful to collect instances of the bug minimizer being used, since I'm hopeful @achlipala and @Zimmi48 and I will be able to get a paper out of this.

Here are uses so far:

To get another of these lines:

export pr=14746; export id=894323119; \
( curl -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/coq/coq/issues/${pr}/comments?per_page=100" > /tmp/body ); \
export ci_target="$(cat /tmp/body |  jq ".[] | select(.id == ${id}) | .body" | grep -o '^"Minimized File [^ ]* (from [^)]*' | grep -o '[^ ]*$')"; export end_time="$(cat /tmp/body |  jq ".[] | select(.id == ${id}) | .created_at" | sed 's/"//g')"; for d in $(cat /tmp/body |  jq ".[] | select(.body | startswith(\"I have initiated minimization at commit\")) | select(.body | contains(\"${ci_target}\")) | .created_at" | sed 's/"//g'); do if [ $(date -d ${d} +%s) -le $(date -d ${end_time} +%s) ]; then export start_time=${d}; fi; done; export secs=$(( $(date -d ${end_time} +%s) - $(date -d ${start_time} +%s) )); export duration=$(if [ $((secs / 86400)) == 0 ]; then if [ $((secs / 3600)) == 0 ]; then printf '%dm' $((secs/60)); else printf '%dh%dm' $((secs/3600)) $((secs%3600/60)); fi; else printf '%dd%dh%dm' $((secs/86400)) $((secs%86400/3600)) $((secs%3600/60)); fi); export times="$( export TZ=US/Eastern; if [ $(date -d "${start_time}" +%F) == $(date -d "${end_time}" +%F) ]; then echo "$(date -d "${start_time}" +"%b %_d, %_I:%M %p") -- $(date -d "${end_time}" +"%_I:%M %p %Z")"; else echo "$(date -d "${start_time}" +"%b %_d, %_I:%M %p") -- $(date -d "${end_time}" +"%b %_d, %_I:%M %p %Z")"; fi | sed 's/  / /g' )"; echo "- https://github.com/coq/coq/pull/${pr}#issuecomment-${id} (${ci_target}, ${duration} (${times}))"

Reactions to minimization:

Early speedbumps and non-uses:

Not yet diagnosed, but unable to reproduce from the artifact:

Not yet fixed:

In process of fixing

Not yet diagnosed:

PR for testing ci minimization: coq/coq#14328, now coq/coq#14579

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

1 participant