Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[SU] Extendable test timeouts

Aperta
#759 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@jtrejoespinoza-grid ci sta già lavorando.

Dal 24/2/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Extendable test timeouts

It is hard to predict what test timeout to set in Software Update tests -- it depends on the image size. Implement a feedback mechanism in tests that prompts a user whether the timeout should be extended and extends the timeout.

reschedule method

One of the possible implementations is reschedule method and asynchronous context managers.

Example:

import asyncio

async def my_task():
    try:
        # Start with a 5-second timeout
        async with asyncio.timeout(5) as delay:
            print("Starting long task...")
            await asyncio.sleep(3)
            
            # Something happened! We need more time.
            # Extend it by another 5 seconds from right now
            new_deadline = asyncio.get_running_loop().time() + 5
            delay.reschedule(new_deadline)
            print("Timeout extended!")
            
            await asyncio.sleep(4) 
    except TimeoutError:
        print("Task timed out anyway!")

asyncio.run(my_task())
Lingua principale
Python
Stelle
19
Fork
7
Merge medio
3g 4h
PR unite (30g)
2

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di project-chip/matter-test-scripts

Tutte le issue di project-chip/matter-test-scripts

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.