tests: run-engine and session tests read the box's real load and time out on a busy machine
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 65/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- go
- Domaine
- testing-qa
Piste de recherche
Start with the named tests in internal/session and internal/run, reproducing them with stress-ng and the provided go test commands. Trace how their fixtures obtain the machine load and identify a fixture-profile or injected load-reader path that avoids real /proc/loadavg unless the test covers the gate. Done means all named tests pass under sustained load and a law test or fixture helper prevents new run-engine tests from reading the real load accidentally.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What happened
Several run-engine and session tests start real run seats, which pass through the machine gate (task.max_load, default 1.5 per core). On a busy box they wait machine busy · load per core at or above task.max_load 1.5, then time out. They are green in CI and alone, and red when another suite is running beside them. CLAUDE.md treats that as a bug, not a known flake.
Seen on 2026-09-25 on an 8-core box at load 11–24:
internal/sessionTestUnderOneModelEveryRunSeatRidesTheConversationsModel/the_launch_model:timed out waiting for the run to endondev@691ade547at load 12, and 11 s alone. Added in #1517.internal/runTestSupervisorLaunchesEveryReadyLeafAtOnceWithNoSlotBoundandTestAnUnboundedRunEndedEarlyStillDrainsEveryWorker: fail even alone at load about 11.- Also timing out only under load:
TestPlandbCliWorkerOwnDone,TestARunCorrectedPastItsRoundLimitStopsWithoutMergingOrSayingDone,TestBeltRunCarriesMachineGateAndShowsItsHold,TestPlandbCliLoopThroughBash,TestACarriedOverDesignRaisesItsCardAndSavesOnYes,TestTheDelegationDoorsCrossFromTheEnginesProfile(session);TestHostedTasksToolStopEndsTheRunAndReportsWhatHappened(remote).
Replication
Deterministic:
stress-ng --cpu $(( $(nproc) * 2 )) --timeout 600s & # or any load above 1.5 per core
go test -count=1 -run 'TestUnderOneModelEveryRunSeatRidesTheConversationsModel' ./internal/session
go test -count=1 -run 'TestSupervisorLaunchesEveryReadyLeafAtOnceWithNoSlotBound' ./internal/run
Both fail today. Without the load, both pass.
The fix
A test that is not about the machine gate runs with the gate out of its way, through its fixture profile or an injected load reader, never the box's real /proc/loadavg. A test that IS about the gate injects the load it needs.
Acceptance
- Unit: each named test passes with
stress-ngholding the box above 1.5 per core. - A law test, or a single fixture helper, so that a new run-engine test cannot read the real load by accident.
- Langage dominant
- Go
- Étoiles
- 115
- Forks
- 14
- Merge moyen
- 9 h 37 min
- PR mergées (30 j)
- 755
Préparer son environnement
Nous n'avons pas encore vérifié les fichiers d'installation de ce projet. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Agent-Field/CodeAF
-
area:chat bug sev:papercut
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Agent-Field/CodeAF#1592 ·
Les mainteneurs répondent en général sous 1 jour
-
area:headless bug sev:critical
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1566 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
area:chat feature
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Agent-Field/CodeAF#1510 ·
Les mainteneurs répondent en général sous 1 jour
-
area:tests bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Agent-Field/CodeAF#1489 ·
Les mainteneurs répondent en général sous 1 jour
-
area:chat bug good first issue sev:papercut
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Agent-Field/CodeAF#1470 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Agent-Field/CodeAF
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
rossoctl/context-guru#346 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
prime-radiant-inc/evener#2883 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
gravitational/teleport#69805 ·
Les mainteneurs répondent en général sous 11 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Under Poisson sampling, the `PLDAccountant` composes the inner event both before and after samplingOuverte
Difficulté 2/5 Une demi-journée Accessibilité débutants 78/100
google/differential-privacy#496 ·