PietroPasotti

Results 74 comments of PietroPasotti

For the records, Layer has in the mean time been typed (so linters and static type checkers will warn of potential issues). This is not as strong a guarantee as...

This has been implemented by @pengale in https://github.com/pengale/charm-rolling-ops/blob/main/lib/charms/rolling_ops/v0/rollingops.py I'll close this issue for now as we think this functionality is better served by remaining a standalone library. If someone thinks...

PyCharm is pretty clever in auto-importing stuff from the right place, so I can't say I feel your pain here. However. For the sake of brainstorming, I can think of...

For the records, we have prototyped a charm lib providing a CompoundStatus object that can be used to just this. That specific implementation turned out to be unnecessarily complicated, but...

> I can agree with that as well, but I think that the 'reinitialize_charm' method would be a generic utility worthy of making it directly into the harness. I've already...

> Side note: a [hypothesis extension](https://hypothesis.readthedocs.io/en/latest/strategies.html) for harness could be very interesting for test scalability and coverage. Silly example: > > ```python > from ops.testing.strategy import happy_path > from hypothesis...

Sounds like something we should clarify in https://discourse.charmhub.io/t/a-charms-life/5938 as well as https://discourse.charmhub.io/t/talking-to-a-workload-control-flow-from-a-to-z/6161 as for in-code documentation, I'm wondering where we could be writing this information...

I worked out this representation. It splits a charm's execution in three phases - setup (charm inits), observers run (all registered event handlers execute) and commit (charm tears down, framework...

I also added this and some notes on synchronization to https://discourse.charmhub.io/t/talking-to-a-workload-control-flow-from-a-to-z/6161 which felt like the most appropriate place for this information. Once we're happy with it, we could push some...

I'm pretty confident `RelationDataContents(LazyMapping)` is triggering relation-get the first time you attempt to `__getitem__` on it ```python def __getitem__(self, key: str) -> str: return self._data[key] @property def _data(self) -> Dict[str,...