Leon
Leon
My [current](https://github.com/canonical/observability-libs/pull/19) (draft) use-case: - A charm library (which is the relation manager) registers an observer on behalf of the charm. - For testing, I only care that a certain...
Another use case is mocking an entire charm lib that also emits custom events. The unit test is mocking the entire charm lib: ```python @patch("charm.KubernetesComputeResourcesPatch") def test_whatever(self, *unused): # ......
Looks good. Next, I would [add tests](https://github.com/sed-i/operator/blob/0d88069fc02c230bc00abc8c0fe76fe4ade8ede5/test/test_testing.py#L2514) for: - leadership status retained - peer relations (data) retained - regular relations (data) retained - unit status retained
Yes, - in unit tests, there is no `event`. - in charm code, we often have a leader iterating over everything ([prom](https://github.com/canonical/prometheus-k8s-operator/blob/a161ac8529e64582d3d04c77cdd640637756afc4/lib/charms/prometheus_k8s/v0/prometheus_scrape.py#L883), [am](https://github.com/canonical/alertmanager-k8s-operator/blob/a518b17cadf76e0c29541975aaca79f4cb738835/lib/charms/alertmanager_k8s/v0/alertmanager_dispatch.py#L290), [graf](https://github.com/canonical/grafana-k8s-operator/blob/19a0d38ba1784d631b140266dc88bf85f586cd3e/lib/charms/grafana_k8s/v0/grafana_source.py#L460)).
This is exciting stuff @PietroPasotti! Are you aware of any sequnce/activity diagrams for secrets? There's quite a bit of new terminology (revision, owner, label, id, update, prune, remove, rotate, expired,...
Thanks for the pointers, @CattleProdigy ! I tried ```rust let m = matrix.clone(); // 4x4 matrix let mm = m.remove_row(1); let mmm = mm.remove_column(1); assert_eq!(mmm.lu().determinant(), 42.); ``` and got a...
I have a similar issue: ``` ✖ User 1 Iteration 2 Duration reached, user User 1 has been stopped ✖ User 2 Iteration 2 Duration reached, user User 3 has...
Yep. My workaround for Ubuntu 22.04 is ```bash apt remove -y nodejs npm --auto-remove snap install --classic node --channel=16/stable npm i -g [email protected] sudo -u ubuntu npx -y [email protected] install-deps...
I still experience this. I think a consistent reproducer is: 1. Use multipass just as usual. 2. Restart the host. 3. Shortly after login screen is on, restart again. At...
It's both. It seemed to me that clarifying that I experience it shortly after bootup gives you better localization to the problem.