~addyess/layer-snap:akd/lp2037315/retry-and-debug-snap_refresh

Last commit made on 2023-09-25
Get this branch:
git clone -b akd/lp2037315/retry-and-debug-snap_refresh https://git.launchpad.net/~addyess/layer-snap
Only Adam Dyess can upload to this branch. If you are Adam Dyess please log in for upload directions.

Branch merges

Branch information

Name:
akd/lp2037315/retry-and-debug-snap_refresh
Repository:
lp:~addyess/layer-snap

Recent commits

f7c35a7... by Adam Dyess

Retry and log errors on snap refresh

c1fb0f7... by Corey Bryant

Only pin tenacity to < 5.0.4 for trusty

Ubuntu Lunar uses python 3.11 where tenacity < 5.0.4 fails with:
"AttributeError: module 'asyncio' has no attribute 'coroutine'"

This is because the @asyncio.coroutine has been deprecated since
version 3.8 and was removed in 3.11:
https://docs.python.org/3.10/library/asyncio-task.html#generator-based-coroutines

LP: #2031439

Reviewed-on: https://code.launchpad.net/~corey.bryant/layer-snap/+git/layer-snap/+merge/449280
Reviewed-by: Haw Loeung <email address hidden>
Reviewed-by: Felipe Reyes <email address hidden>

d87f234... by Corey Bryant

Only pin tenacity to < 5.0.4 for trusty

Ubuntu Lunar uses python 3.11 where tenacity < 5.0.4 fails with:
"AttributeError: module 'asyncio' has no attribute 'coroutine'"

This is because the @asyncio.coroutine has been deprecated since
version 3.8 and was removed in 3.11:
https://docs.python.org/3.10/library/asyncio-task.html#generator-based-coroutines

LP: #2031439

049618f... by Adam Dyess

the reactive refresh method didn't handle the new remove option added by a prior commit.

https://paste.ubuntu.com/p/PHhQbty6yS/

Reviewed-on: https://code.launchpad.net/~addyess/layer-snap/+git/layer-snap/+merge/429658
Reviewed-by: Barry Price <email address hidden>
Reviewed-by: Kevin W Monroe <email address hidden>

760c200... by Adam Dyess

Address issue with refresh now that remove option is avaialble

e13130d... by Adam Dyess

Ensure that snap removals occur before snap installs

Ignore the order of the snaps in layer.yaml under the snap layer options, but rely on the presence of the `remove is True` option of each snap to sort the snaps into removals and installs

Process the removals first

Reviewed-on: https://code.launchpad.net/~addyess/layer-snap/+git/layer-snap/+merge/429592
Reviewed-by: Barry Price <email address hidden>

746380e... by Adam Dyess

strengthen variable naming

2ec5348... by Adam Dyess

ensure flags are set during test_install for accurate call order

126c733... by Adam Dyess

ensure that snap removals occur before snap installs

2b6e017... by Adam Dyess

add a `remove` option in the snap layer to remove unneeded snaps

Reviewed-on: https://code.launchpad.net/~addyess/layer-snap/+git/layer-snap/+merge/429576
Reviewed-by: Barry Price <email address hidden>