From 821ae7e53760966d70d699f9d17f1bcfa25246f5 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Fri, 26 Nov 2021 18:32:54 -0500 Subject: [PATCH 1/6] gha: add index update workflow --- .github/workflows/update-index.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/update-index.yaml diff --git a/.github/workflows/update-index.yaml b/.github/workflows/update-index.yaml new file mode 100644 index 000000000..0beea367c --- /dev/null +++ b/.github/workflows/update-index.yaml @@ -0,0 +1,14 @@ +name: Update Index + +on: + # every 5 minutes + #schedule: + # - cron: '*/5 * * * *' + # manual rebuilds + workflow_dispatch: + +jobs: + update_index: + name: 'Update Index' + uses: StackStorm-Exchange/ci/.github/workflows/index-update.yaml@gha + #with: From 23569e2889981707469e287edbb30c8e4fbb03f8 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Mon, 6 Dec 2021 11:50:11 -0600 Subject: [PATCH 2/6] add exclude_packs.txt list to control pack exclusion in index-update CI workflow --- v1/exclude_packs.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 v1/exclude_packs.txt diff --git a/v1/exclude_packs.txt b/v1/exclude_packs.txt new file mode 100644 index 000000000..948a1dd31 --- /dev/null +++ b/v1/exclude_packs.txt @@ -0,0 +1,16 @@ +# Any packs in this file are excluded from the index. +# +# Each line is a pack name and should be part of the pack's repo name: +# StackStorm-Exchange/stackstorm- +# So, the "foo_bar" pack would be in this repo: +# StackStorm-Exchange/stackstorm-foo_bar +# +# Comment lines begin with "#" + +# utility packs +test +test-content-version + +# These packs are NOT excluded. CI uses them to test using the index. +#test2 +#python3_test From 372efd3732b5ea1274384bd62ccaae622fc35129 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Mon, 6 Dec 2021 13:54:09 -0600 Subject: [PATCH 3/6] gha: limit concurrency for index-update workflow --- .github/workflows/update-index.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/update-index.yaml b/.github/workflows/update-index.yaml index 0beea367c..db1a7f120 100644 --- a/.github/workflows/update-index.yaml +++ b/.github/workflows/update-index.yaml @@ -1,5 +1,12 @@ name: Update Index +# Only allow one workflow run per branch at a time. +# When one is already running, new runs will be pending. +# https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/ +concurrency: + group: index-update-${{ github.ref }} + # Do not use cancel-in-progress! Or we might create a scenario where all workflows get canceled before they complete. + on: # every 5 minutes #schedule: From 8e76d766beaffde71548487a5be8fe31c474dea2 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Mon, 6 Dec 2021 23:28:22 -0600 Subject: [PATCH 4/6] add test2 pack to exclude_packs.txt --- v1/exclude_packs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v1/exclude_packs.txt b/v1/exclude_packs.txt index 948a1dd31..51145c972 100644 --- a/v1/exclude_packs.txt +++ b/v1/exclude_packs.txt @@ -9,8 +9,8 @@ # utility packs test +test2 test-content-version # These packs are NOT excluded. CI uses them to test using the index. -#test2 #python3_test From 92dabb0198c8c59bf6649f9eee32759342bb93c6 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Thu, 9 Dec 2021 13:38:20 -0600 Subject: [PATCH 5/6] switch from gha branch to master --- .github/workflows/update-index.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-index.yaml b/.github/workflows/update-index.yaml index db1a7f120..eafec015d 100644 --- a/.github/workflows/update-index.yaml +++ b/.github/workflows/update-index.yaml @@ -17,5 +17,5 @@ on: jobs: update_index: name: 'Update Index' - uses: StackStorm-Exchange/ci/.github/workflows/index-update.yaml@gha + uses: StackStorm-Exchange/ci/.github/workflows/index-update.yaml@master #with: From a91deae3777a68458600a1798a51c8678a34cfb6 Mon Sep 17 00:00:00 2001 From: Jacob Floyd Date: Thu, 9 Dec 2021 13:39:47 -0600 Subject: [PATCH 6/6] add schedule for every 5 min --- .github/workflows/update-index.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-index.yaml b/.github/workflows/update-index.yaml index eafec015d..abd51e864 100644 --- a/.github/workflows/update-index.yaml +++ b/.github/workflows/update-index.yaml @@ -8,14 +8,13 @@ concurrency: # Do not use cancel-in-progress! Or we might create a scenario where all workflows get canceled before they complete. on: - # every 5 minutes - #schedule: - # - cron: '*/5 * * * *' - # manual rebuilds + # every 5 minutes. Increase time if workflows are overlapping. + schedule: + - cron: '*/5 * * * *' + # manual rebuilds by TSC members workflow_dispatch: jobs: update_index: name: 'Update Index' uses: StackStorm-Exchange/ci/.github/workflows/index-update.yaml@master - #with: