Give the stalled-fetch test a timeout that a loaded runner's reading-cost fits in
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-18 22:43:33 +01:00
parent 291d97a8f9
commit cf46cde1ec
2 changed files with 54 additions and 2 deletions
+3 -2
View File
@@ -302,8 +302,9 @@ class ChunkPreflightTool(unittest.TestCase):
def test_reads_origin_as_last_fetched_where_the_fetch_stalls_and_still_states_the_other_facts(self):
repo = Repo(self)
repo.stub_git(f'"fetch --quiet origin") exec {shutil.which("sleep")} 10;;')
done = repo.preflight("--worktree", CHUNK_PREFLIGHT_TIMEOUT="1")
repo.stub_git(f'"fetch --quiet origin") exec {shutil.which("sleep")} 30;;')
# The timeout also bounds `reading-cost`, so it stays well above what that takes on a loaded runner.
done = repo.preflight("--worktree", CHUNK_PREFLIGHT_TIMEOUT="5")
self.assertEqual(done.returncode, 0, done.stderr)
self.assertIn("as last fetched", done.stdout)
self.assertIn("item 3, L 2, E + I 5", done.stdout)
+51
View File
@@ -2837,3 +2837,54 @@ Read most (opens and searches):
- `bin/rule_hook/reviewer_rung.py` 2
- `docs/decisions.md` 2
- `skills/larv-review/SKILL.md` 2
## Reading cost, chunk 3285838bc2a8, finished 2026-11-18T19:24:08Z
82417 new input tokens before the first commit.
Read most (opens and searches):
- `bin/do_epic/backend/test_jira.py` 5
- `bin/plan_store/jira_epic.py` 5
- `bin/do_epic/test_ranking.py` 4
- `bin/do_epic/backend/contract.py` 3
- `README.md` 2
- `bin/do_epic/backend/fake.py` 2
- `bin/do_epic/backend/jira.py` 2
- `bin/do_epic/backend/protocol.py` 2
- `bin/do_epic/ranking.py` 2
- `bin/plan_store/test_jira_epic.py` 2
## Reading cost, chunk 410d6dbe665d, finished 2026-11-18T19:41:25Z
159659 new input tokens before the first commit.
Read most (opens and searches):
- `bin/project_config/settings.py` 7
- `README.md` 6
- `bin/larv_review/test_larv_review.py` 5
- `bin/project_config/main.py` 5
- `skills/larv-review/SKILL.md` 5
- `bin/larv_review/reviewer_header.py` 4
- `bin/project_config/test_project_config.py` 4
- `CLAUDE.md` 3
- `agents/stability-reviewer.md` 3
- `bin/chunk_pr/main.py` 3
## Reading cost, chunk 93fadde84de7, finished 2026-11-18T21:42:40Z
106794 new input tokens before the first commit.
Read most (opens and searches):
- `bin/rule_hook/test_rule_hook.py` 6
- `bin/rule_hook/main.py` 5
- `bin/rule_hook/rules.py` 5
- `bin/command_lines/shell_command.py` 3
- `bin/rule_hook/call.py` 3
- `settings.json` 3
- `bin/rule_hook/heavy_command.py` 2
- `README.md` 1
- `bin/rule_hook/endless_wait.py` 1
- `bin/rule_hook/env_file.py` 1