8000 Improve caching for Community Integration Tests against Pro (#9114) · codeperl/localstack@7974a9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7974a9c

Browse files
Improve caching for Community Integration Tests against Pro (localstack#9114)
1 parent c0a7e29 commit 7974a9c

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/tests-pro-integration.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ on:
3838
- master
3939
- 'v[0-9]+'
4040
- release/*
41+
schedule:
42+
- cron: '0 4 * * *' # run once a day at 4 AM UTC
43+
push:
44+
paths:
45+
- ".github/workflows/tests-pro-integration.yml"
46+
- "localstack/**/packages.py"
47+
- "localstack/packages/*.py"
48+
- "setup.py"
49+
- "pyproject.toml"
50+
- "setup.cfg"
51+
branches:
52+
- master
4153

4254
concurrency:
4355
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -171,9 +183,22 @@ jobs:
171183
with:
172184
path: |
173185
localstack-ext/.venv
186+
# include the matrix group (to re-use the var-libs used in the specific test group)
187+
key: community-it-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-venv-${{ hashFiles('localstack-ext/setup.cfg', 'localstack-ext/pyproject.toml', 'localstack/setup.cfg') }}-${{steps.determine-companion-ref.outputs.result}}
188+
restore-keys: |
189+
community-it-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-venv-${{ hashFiles('localstack-ext/setup.cfg', 'localstack-ext/pyproject.toml', 'localstack/setup.cfg') }}-refs/heads/master
190+
191+
- name: Cache Ext Dependencies (libs)
192+
if: inputs.disableCaching != true
193+
uses: actions/cache@v3
194+
with:
195+
path: |
174196
localstack/.filesystem/var/lib/localstack
175197
# include the matrix group (to re-use the var-libs used in the specific test group)
176-
key: community-it-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-venv-${{ hashFiles('localstack-ext/setup.cfg', 'localstack-ext/pyproject.toml', 'localstack/setup.cfg', '**/packages.py', '**/packages/*') }}-${{steps.determine-companion-ref.outputs.result}}-group-${{ matrix.group }}
198+
key: community-it-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-libs-${{ hashFiles('localstack-ext/**/packages.py','localstack-ext/packages/*.py', 'localstack/**/packages.py', 'localstack/packages/*.py') }}-${{steps.determine-companion-ref.outputs.result}}-group-${{ matrix.group }}
199+
restore-keys: |
200+
community-it-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-libs-${{ hashFiles('localstack-ext/**/packages.py','localstack-ext/packages/*.py','localstack/**/packages.py', 'localstack/packages/*.py') }}-refs/heads/master-group-${{ matrix.group }}
201+
177202
178203
- name: Restore Lambda common runtime packages
179204
id: cached-lambda-common-restore
@@ -235,6 +260,7 @@ jobs:
235260
# add the GitHub API token to avoid rate limit issues
236261
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
237262
DEBUG: 1
263+
DISABLE_BOTO_RETRIES: 1
238264
DNS_ADDRESS: 0
239265
LAMBDA_EXECUTOR: "local"
240266
LOCALSTACK_API_KEY: "test"

localstack/aws/connect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def my_patch(fn, self, **kwargs):
4949
patched_kwargs = {
5050
**kwargs,
5151
"WaiterConfig": {
52-
# TODO: make these configurable
5352
"Delay": localstack_config.BOTO_WAITER_DELAY,
5453
"MaxAttempts": localstack_config.BOTO_WAITER_MAX_ATTEMPTS,
5554
**kwargs.get(

0 commit comments

Comments
 (0)
0