Skip to content

Commit

Permalink
Limit number of versions shown in bug report template (#1324)
Browse files Browse the repository at this point in the history
feat(bug-report): generate only last X
  • Loading branch information
EagleoutIce authored Feb 14, 2025
1 parent b24af3a commit 62c1c92
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,20 @@ body:
description: "You can run flowr as `flowr --version` to find out (with docker: `docker run --rm flowr --version`)."
options:
# START::Versions
- (latest)
- <Older> (please consider updating)
- v2.1.8 (Nov 28, 2024)
- v2.1.9 (Dec 21, 2024)
- v2.1.10 (Jan 5, 2025)
- v2.1.11 (Jan 8, 2025)
- v2.1.12 (Jan 10, 2025)
- v2.2.0 (Jan 16, 2025)
- v2.2.1 (Jan 16, 2025)
- v2.2.3 (Feb 12, 2025)
- Unknown
- Unreleased/Dev
# END::Versions
# START::DefaultVersion
default: 0
default: 8
# END::DefaultVersion
validations:
required: true
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/broken-links-and-wiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
submodules: true
lfs: true
token: ${{ secrets.RELEASE_TOKEN }}
fetch-tags: true
fetch-depth: 0

- name: "🌍 Load Versions to Use"
id: doc-global-versions
Expand Down Expand Up @@ -99,16 +101,18 @@ jobs:
update_wiki_page "Core" wiki:core
# check for an update in the versions! (including the updated name information)
ALL_TAGS=$( git tag --list --format="%(tag) (%(creatordate))" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | sed -E 's/^(v[0-9]+\.[0-9]+\.[0-9]+)\s*\(([a-zA-Z]+\s*)([a-zA-Z]+)\s*([0-9]+)\s*[0-9:]+\s+([0-9]+).*/\1 (\3 \4, \5)/' | sort -V)
LIMIT_TO_LAST=8
ALL_TAGS=$( git tag --list --format="%(tag) (%(creatordate))" | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | sed -E 's/^(v[0-9]+\.[0-9]+\.[0-9]+)\s*\(([a-zA-Z]+\s*)([a-zA-Z]+)\s*([0-9]+)\s*[0-9:]+\s+([0-9]+).*/\1 (\3 \4, \5)/' | sort -V | tail -n$LIMIT_TO_LAST)
NUM_OF_TAGS=$(echo "$ALL_TAGS" | wc -l)
LATEST_TAG=$(echo "$ALL_TAGS" | tail -n1)
# add (latest) to the latest tag
ALL_TAGS=$(sed -E "s/^$LATEST_TAG$/$LATEST_TAG (latest)/" <<< "$ALL_TAGS")
ALL_TAGS=$(echo -e "<Older> (please consider updating)\n$ALL_TAGS")
ALL_TAGS+="\nUnknown\nUnreleased/Dev"
ALL_TAGS=$(echo -e "$ALL_TAGS" | sed -E 's/^(.*)$/ - \1/')
cp .github/ISSUE_TEMPLATE/bug-report.yaml .github/ISSUE_TEMPLATE/bug-report.yaml.tmp
sed -i -E "/\s*# START::Versions/,/\s*# END::Versions/c\\# START::Versions\n$(echo "$ALL_TAGS" | sed 's/$/\\/' ) \n# END::Versions" .github/ISSUE_TEMPLATE/bug-report.yaml
sed -i -E "/\s*# START::DefaultVersion/,/\s*# END::DefaultVersion/c\\# START::DefaultVersion\n default: $((NUM_OF_TAGS - 1))\n# END::DefaultVersion" .github/ISSUE_TEMPLATE/bug-report.yaml
sed -i -E "/\s*# START::DefaultVersion/,/\s*# END::DefaultVersion/c\\# START::DefaultVersion\n default: $((NUM_OF_TAGS))\n# END::DefaultVersion" .github/ISSUE_TEMPLATE/bug-report.yaml
if ! diff -q .github/ISSUE_TEMPLATE/bug-report.yaml .github/ISSUE_TEMPLATE/bug-report.yaml.tmp; then
echo "Versions in the bug-report changed!"
echo "CHANGED=true" >> $GITHUB_ENV
Expand Down

4 comments on commit 62c1c92

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"artificial" Benchmark Suite

Benchmark suite Current: 62c1c92 Previous: dbb424a Ratio
Retrieve AST from R code 242.9295950909091 ms (102.97443349796761) 249.37947845454548 ms (105.30380577481404) 0.97
Normalize R AST 17.454125318181816 ms (31.997567344212808) 17.348843454545452 ms (31.21973689525943) 1.01
Produce dataflow information 69.10726331818181 ms (150.82155674614418) 68.7544235909091 ms (147.7956392187733) 1.01
Total per-file 837.3044249545455 ms (1522.607026314934) 844.8489032727273 ms (1524.1418562737547) 0.99
Static slicing 2.001996905048225 ms (1.12137694655122) 2.025172437645931 ms (1.1355566492030682) 0.99
Reconstruct code 0.2210076471650418 ms (0.1692002115248019) 0.22742158824395448 ms (0.17405701360267453) 0.97
Total per-slice 2.2380209072130732 ms (1.186036237534396) 2.268788810036184 ms (1.203718432905737) 0.99
failed to reconstruct/re-parse 0 # 0 # 1
times hit threshold 0 # 0 # 1
reduction (characters) 0.7891949660994808 # 0.7891949660994808 # 1
reduction (normalized tokens) 0.7665650684287274 # 0.7665650684287274 # 1
memory (df-graph) 95.19682173295455 KiB (244.24808975931026) 95.19682173295455 KiB (244.24808975931026) 1

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"social-science" Benchmark Suite

Benchmark suite Current: 62c1c92 Previous: dbb424a Ratio
Retrieve AST from R code 249.40727008000002 ms (45.93870507857565) 240.53834136 ms (44.403378570471475) 1.04
Normalize R AST 18.80021838 ms (14.186262371791607) 18.56012626 ms (13.755764851072687) 1.01
Produce dataflow information 79.24944081999999 ms (73.39409360894798) 78.38113166 ms (72.02476055851989) 1.01
Total per-file 7665.48615328 ms (30146.668089334256) 7571.22196178 ms (30128.105092398102) 1.01
Static slicing 15.389431208569563 ms (45.51365047313445) 15.212406253695903 ms (45.4346849220547) 1.01
Reconstruct code 0.2881470205671367 ms (0.1600244077077112) 0.24474538664746154 ms (0.14868831866711876) 1.18
Total per-slice 15.686336634498648 ms (45.54176510252438) 15.464618232062096 ms (45.46448728825064) 1.01
failed to reconstruct/re-parse 0 # 0 # 1
times hit threshold 0 # 0 # 1
reduction (characters) 0.8760481407790371 # 0.8760481407790371 # 1
reduction (normalized tokens) 0.8152466834674152 # 0.8152466834674152 # 1
memory (df-graph) 99.6448046875 KiB (113.2159841674677) 99.6448046875 KiB (113.2159841674677) 1

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"artificial" Benchmark Suite (tree-sitter)

Benchmark suite Current: 62c1c92 Previous: dbb424a Ratio
Retrieve AST from R code 12.651470409090908 ms (14.274852088673192) 12.842791727272727 ms (16.181786708497913) 0.99
Normalize R AST 14.056163181818182 ms (17.806078059635958) 14.331072681818181 ms (19.71728647065712) 0.98
Produce dataflow information 72.58969781818182 ms (155.23342930270792) 74.67082990909091 ms (165.61645442564256) 0.97
Total per-file 628.2254822727273 ms (1449.2128677619596) 613.9104531818182 ms (1412.7933283316297) 1.02
Static slicing 1.9954328082551949 ms (1.095092761402665) 1.994018839046101 ms (1.082092681493097) 1.00
Reconstruct code 0.2367206944540257 ms (0.1881466479872196) 0.22893544883727432 ms (0.17082023672434832) 1.03
Total per-slice 2.2451315718326725 ms (1.1746112536197848) 2.2359297759714156 ms (1.1547970268451515) 1.00
failed to reconstruct/re-parse 0 # 0 # 1
times hit threshold 0 # 0 # 1
reduction (characters) 0.7891949660994808 # 0.7891949660994808 # 1
reduction (normalized tokens) 0.7665650684287274 # 0.7665650684287274 # 1
memory (df-graph) 95.19682173295455 KiB (244.24808975931026) 95.19682173295455 KiB (244.24808975931026) 1

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"social-science" Benchmark Suite (tree-sitter)

Benchmark suite Current: 62c1c92 Previous: dbb424a Ratio
Retrieve AST from R code 18.8590177 ms (11.309530575610653) 18.955982940000002 ms (11.286742384816787) 0.99
Normalize R AST 19.30783414 ms (10.371165430466878) 19.95284476 ms (10.337826794056342) 0.97
Produce dataflow information 80.47210543999999 ms (71.34519361765203) 81.72275382 ms (73.32590045655509) 0.98
Total per-file 7327.1701064 ms (29545.093303407866) 7391.1851669 ms (29681.523316961993) 0.99
Static slicing 15.14997622529936 ms (44.61738293244274) 15.22962818185736 ms (44.920584352782775) 0.99
Reconstruct code 0.266300682026326 ms (0.16912024974691744) 0.2979700390619409 ms (0.17291096655094218) 0.89
Total per-slice 15.42427378526228 ms (44.65232644473799) 15.536254324544688 ms (44.95819777105582) 0.99
failed to reconstruct/re-parse 0 # 0 # 1
times hit threshold 0 # 0 # 1
reduction (characters) 0.8752607999898916 # 0.8752607999898916 # 1
reduction (normalized tokens) 0.8150427620394497 # 0.8150427620394497 # 1
memory (df-graph) 99.6003515625 KiB (113.23180421291488) 99.6003515625 KiB (113.23180421291488) 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.