PowerShell / PowerShell/PowerShellEditorServices
Verify the main runspace reset method in the PSES pipeline thread consumer
Nessuno ha ancora preso questa issue.
- Lingua principale
- C#
- Stelle
- 767
- Fork
- 266
- Merge medio
- 3g 16h
- PR unite (30g)
- 1
Descrizione
We have a kind of primitive stab at a method to clean up a faulty runspace state in the PSES pipeline thread consumer here:
We need to induce a fault and see if this works as expected, as well as ensure it doesn't run at other times...
My suspicion is that it will need some refinement and could have some significant bugs in it. But it's currently a corner case and a worse-case scenario handler anyway (if it didn't exist, we are essentially crashed).
So we need to investigate this and see how we can improve:
- detection of bad runspace state
- restoration of good runspace state
- how our threading mechanisms work in this scenario...
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs intorno alle righe 784–826, quindi segui il consumer del thread della pipeline e la gestione dello stato del relativo runspace. Induci la condizione di runspace difettosa descritta nell’issue e verifica il rilevamento, il ripristino e che il reset non venga eseguito durante il normale funzionamento; il lavoro è completo quando il comportamento è confermato oppure i perfezionamenti necessari sono documentati e testati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, powershell
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100