loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'chore(ci): optimize end-to-end runs [skip ci]' (#4888) from wip-ci-end-to-end into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4888
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>

+22 -21
+14 -13
.forgejo/cascading-pr-end-to-end
··· 13 13 14 14 cd $end_to_end 15 15 16 - if ! test -f forgejo/sources/$minor_version ; then 17 - echo "FAIL: forgejo/sources/$minor_version does not exist in the end-to-end repository" 18 - false 16 + if ! test -f forgejo/sources/$minor_version; then 17 + echo "FAIL: forgejo/sources/$minor_version does not exist in the end-to-end repository" 18 + false 19 19 fi 20 20 21 - date > last-upgrade 21 + echo -n $minor_version >forgejo/build-from-sources 22 + date >last-upgrade 22 23 23 - if test -f "$forgejo_pr_or_ref" ; then 24 - forgejo_pr=$forgejo_pr_or_ref 25 - head_url=$(jq --raw-output .head.repo.html_url < $forgejo_pr) 26 - test "$head_url" != null 27 - branch=$(jq --raw-output .head.ref < $forgejo_pr) 28 - test "$branch" != null 29 - echo $head_url $branch $full_version > forgejo/sources/$minor_version 24 + if test -f "$forgejo_pr_or_ref"; then 25 + forgejo_pr=$forgejo_pr_or_ref 26 + head_url=$(jq --raw-output .head.repo.html_url <$forgejo_pr) 27 + test "$head_url" != null 28 + branch=$(jq --raw-output .head.ref <$forgejo_pr) 29 + test "$branch" != null 30 + echo $head_url $branch $full_version >forgejo/sources/$minor_version 30 31 else 31 - forgejo_ref=$forgejo_pr_or_ref 32 - echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY ${forgejo_ref#refs/heads/} $full_version > forgejo/sources/$minor_version 32 + forgejo_ref=$forgejo_pr_or_ref 33 + echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY ${forgejo_ref#refs/heads/} $full_version >forgejo/sources/$minor_version 33 34 fi
+8 -8
.forgejo/cascading-release-end-to-end
··· 8 8 forgejo_ref=$4 9 9 10 10 cd $end_to_end 11 - date > last-upgrade 11 + date >last-upgrade 12 12 organizations=lib/ORGANIZATIONS 13 - if ! test -f $organizations ; then 14 - echo "$organizations file not found" 15 - false 13 + if ! test -f $organizations; then 14 + echo "$organizations file not found" 15 + false 16 16 fi 17 17 # 18 - # do not include forgejo-experimental so that 7.0-test is found 19 - # in forgejo-integration where it was just built instead of 20 - # forgejo-experimental which was published by the previous build 18 + # Inverse the order of lookup because the goal in the release built 19 + # pipeline is to test the latest build, if available, instead of the 20 + # stable version by the same version. 21 21 # 22 - echo forgejo forgejo-integration > $organizations 22 + echo forgejo-integration forgejo-experimental forgejo >$organizations