layer-snap:master

Last commit made on 2024-03-12
Get this branch:
git clone -b master https://git.launchpad.net/layer-snap
Members of layer-snap-charmers can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
master
Repository:
lp:layer-snap

Recent commits

5c5d1b6... by Haw Loeung

[trivial] Fixed text / error msg

dc496ab... by Adam Dyess

Use tenacity to retry snap refresh on failures and log errors with the snap refresh process

Reviewed-on: https://code.launchpad.net/~addyess/layer-snap/+git/layer-snap/+merge/452021
Reviewed-by: Haw Loeung <email address hidden>

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