`jhack tail` produces lots of "not found in history... simulating one" lines with Juju 4

Open
#232 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start with the jhack tail entry point and jhack/utils/tail_charms/core/processor.py, then reproduce the reported output with Juju 4. The issue does not yet provide reproduction steps or tests; done means the spurious “not found in history... simulating one” lines no longer appear during affected event tailing.

Written by the indexing model from the issue text.

Description

Bug Description
Listening for events...ERROR:jhack./home/ubuntu/.local/share/uv/tools/jhack/lib/python3.11/site-packages/jhack/utils/tail_charms/core/processor.py:mysql-k8s/0:mysql_pebble_ready not found in history... simulating one.
ERROR:jhack./home/ubuntu/.local/share/uv/tools/jhack/lib/python3.11/site-packages/jhack/utils/tail_charms/core/processor.py:mysql-k8s/1:mysql_pebble_ready not found in history... simulating one.
ERROR:jhack./home/ubuntu/.local/share/uv/tools/jhack/lib/python3.11/site-packages/jhack/utils/tail_charms/core/processor.py:mysql-k8s/2:mysql_pebble_ready not found in history... simulating one.
ERROR:jhack./home/ubuntu/.local/share/uv/tools/jhack/lib/python3.11/site-packages/jhack/utils/tail_charms/core/processor.py:mysql-k8s/0:config_changed not found in history... simulating one.
ERROR:jhack./home/ubuntu/.local/share/uv/tools/jhack/lib/python3.11/site-packages/jhack/utils/tail_charms/core/processor.py:mysql-k8s/2:config_changed not found in history... simulating one.
To Reproduce

(TBC)

Environment
                                 juju info v0.1                                 
┌──────────────┬───────────────────────────────────────────────────────────────┐
│ jhack        │ 0.4.4.0.24                                                    │
│ python       │ 3.11.14 (/home/ubuntu/.local/share/uv/tools/jhack/bin/python) │
│ juju-* snaps │  juju │ 4.0.0 - 33191 (4.0/stable)                            │
│ microk8s     │ Not Installed.                                                │
│ lxd          │ 5.21.4 LTS                                                    │
│ multipass    │ Not Installed.                                                │
│ multipassd   │ Not Installed.                                                │
│ os           │ Ubuntu 24.04.3 LTS                                            │
│ kernel       │ Linux 6.8.0-88-generic x86_64                                 │
└──────────────┴───────────────────────────────────────────────────────────────┘
Relevant log output
(See above)
Additional context

No response

Dominant language
Python
Stars
60
Forks
31
Avg merge
2d 15h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from canonical/jhack

All issues in canonical/jhack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.