From 389b2ebd4450aaabf34ffe4826e59e914737cc24 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Fri, 20 Oct 2023 13:48:27 +0200 Subject: [PATCH] Remove github actions that check for new versions and that concretize new PRs (#535) --- .github/scripts/generate_new_version_issue.sh | 31 ------------ .github/scripts/generate_pr_comment.sh | 16 ------- .github/scripts/post_new_version_issue.sh | 19 -------- .../scripts/post_new_version_issue_comment.sh | 18 ------- .github/scripts/post_pr_comment.sh | 13 ----- .github/workflows/check-new-versions.yaml | 30 ------------ .../concretize-lxplus-pr-target.yaml | 48 ------------------- 7 files changed, 175 deletions(-) delete mode 100755 .github/scripts/generate_new_version_issue.sh delete mode 100755 .github/scripts/generate_pr_comment.sh delete mode 100755 .github/scripts/post_new_version_issue.sh delete mode 100755 .github/scripts/post_new_version_issue_comment.sh delete mode 100755 .github/scripts/post_pr_comment.sh delete mode 100644 .github/workflows/check-new-versions.yaml delete mode 100644 .github/workflows/concretize-lxplus-pr-target.yaml diff --git a/.github/scripts/generate_new_version_issue.sh b/.github/scripts/generate_new_version_issue.sh deleted file mode 100755 index 4458354c..00000000 --- a/.github/scripts/generate_new_version_issue.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -package_list=$(spack maintainers --by-user vvolkl mirguest tmadlener) - -# todo: add packages by hep/key4hep label also? - -# prune duplicates (needed if package list is appended to) -#package_list=$(echo ${package_list} | tr ' ' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/[[:space:]]*$//') - -for p in ${package_list}; do - # ignore deprecated packages - if [[ "$p" == "py-awkward1" ]] || [[ "$p" == "py-uproot4" ]]; then - continue - fi - v=$(spack versions --new $p) - # ignore pre and rc versions (for all packages) - v=$(echo $v | sed 's/\S*\(rc\|pre\|alpha\)\S*//g') - # ignore alpha and beta versions for py-kubernetes - if [[ "$p" == "py-kubernetes" ]] ; then - v=$(echo $v | sed 's/\S*\(a\|b\)\S*//g') - fi - # ignore version 00-03-02 for edm4hep which has no code changes - if [[ "$p" == "edm4hep" ]] ; then - v=$(echo $v | sed 's/\S*\(00-03-02\)\S*//g') - fi - # using `echo $v` instead of "$v" will handle v=" " correctly - if [[ ! -z `echo $v` ]]; then - echo "- [ ] \`$p\`: \`$v\` " >> gh-new-version.log - fi -done - diff --git a/.github/scripts/generate_pr_comment.sh b/.github/scripts/generate_pr_comment.sh deleted file mode 100755 index da6f2924..00000000 --- a/.github/scripts/generate_pr_comment.sh +++ /dev/null @@ -1,16 +0,0 @@ -grep "^ -" key4hep-stack-concretization.log > key4hep-stack-concretization-newpackages.log -echo "## New packages at next release after merge:" > gh-pr-comment.log -echo " " >> gh-pr-comment.log -echo "\`\`\`" >> gh-pr-comment.log -cat key4hep-stack-concretization-newpackages.log >> gh-pr-comment.log -echo "\`\`\`" >> gh-pr-comment.log -echo " " >> gh-pr-comment.log -echo "## Full List of Packages: " >> gh-pr-comment.log -echo " " >> gh-pr-comment.log -echo "
" >> gh-pr-comment.log -echo " " >> gh-pr-comment.log -echo "\`\`\`" >> gh-pr-comment.log -cat key4hep-stack-concretization.log >> gh-pr-comment.log -echo "\`\`\`" >> gh-pr-comment.log -echo " " >> gh-pr-comment.log -echo "
" >> gh-pr-comment.log diff --git a/.github/scripts/post_new_version_issue.sh b/.github/scripts/post_new_version_issue.sh deleted file mode 100755 index ab414bcb..00000000 --- a/.github/scripts/post_new_version_issue.sh +++ /dev/null @@ -1,19 +0,0 @@ -generate_new_version_data() -{ - cat <