You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove fallback in count_running_containers that causes flaky warm container tests
* Update notify-slack.yml to add sleep (aws#8646)
* fix: use tag prefix matching to clean up samcli/lambda-* images (aws#8647)
Docker's images.list(name='samcli/lambda') does exact repository matching
and won't match repositories like 'samcli/lambda-python'. This caused
stale images to persist across parameterized test classes, leading to
flaky test_download_two_layers failures where Layer2 should overwrite
Layer1 but the image was never rebuilt.
Fix by:
1. Adding _cleanup_samcli_images() that lists all images and filters by
'samcli/lambda-' tag prefix
2. Using this method in both tearDown and tearDownClass
3. Fixing the same pattern in TestLayerVersionThatDoNotCreateCache
* fix: remove fallback in count_running_containers that causes flaky warm container tests
The count_running_containers method had a fallback that returned the count
of ALL SAM CLI containers when MODE env var filtering found no matches.
This caused AssertionError: 3 != 2 when stale containers from other tests
were present. Now it strictly counts only containers matching this test's
unique MODE UUID and uses exact string matching.
* fix: add AWS_DEFAULT_REGION and use -k pattern for parameterized tests
* fix: add BY_CANARY=true to enable Docker tests on CI
* fix: exclude RemoteLayers tests that need AWS credentials
---------
Co-authored-by: seshubaws <116689586+seshubaws@users.noreply.github.com>
0 commit comments