Python: [Bug]: native Windows --files paths skip changed-package tasks
I maintainer di solito rispondono entro 1 giorno
@leilei3167 ci sta già lavorando.
Dal 27/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- build-system, cli
Direzione di ricerca
Leggi python/scripts/run_tasks_in_changed_packages.py, concentrandoti su get_changed_packages() e su come il suo risultato controlla l’esecuzione delle attività. Usa la sonda inclusa della libreria standard per confrontare i percorsi Windows relativi al repository con quelli che usano le barre oblique, quindi verifica la gestione esistente dei percorsi relativi allo spazio di lavoro e dei percorsi assoluti. Il lavoro è terminato quando le grafie equivalenti dei percorsi selezionano gli stessi pacchetti e i casi esistenti indicati continuano a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Observed Behavior
At main 1168c001dd228d6c7a623fd14f53e1f05b7b4540, python/scripts/run_tasks_in_changed_packages.py recognizes a repository-relative path with / but not the native Windows spelling with \. The complete get_changed_packages() function returns an empty set for python\packages\core\agent_framework\_types.py, while the same forward-slash path selects core. A native path to the redis package is also omitted.
The function strips only the text prefix python/, then joins the remaining path to workspace_root, which already ends in python. The native spelling therefore points under python/python. The calling script returns without running tasks when the set is empty. The package-routing result was reproduced directly; the task runner itself was not executed.
Expected Behavior
Repository-relative paths in the platform's native spelling should select the same package as equivalent forward-slash paths. Workspace-relative and absolute paths should keep their current behavior.
Steps to Reproduce
- Check out the above main commit on Windows.
- Run the standard-library-only probe below from the repository root.
- Observe that only the forward-slash path selects core; the native repo-relative path returns an empty set.
Minimal Reproduction
import ast
from pathlib import Path
source = Path("python/scripts/run_tasks_in_changed_packages.py")
tree = ast.parse(source.read_text(encoding="utf-8"))
function = next(n for n in tree.body if isinstance(n, ast.FunctionDef)
and n.name == "get_changed_packages")
namespace = {"Path": Path}
exec(compile(ast.Module(body=[function], type_ignores=[]), str(source), "exec"), namespace)
workspace = Path("python").resolve()
projects = [Path("packages/core")]
for spelling in ["python/packages/core/agent_framework/_types.py",
str(Path("python/packages/core/agent_framework/_types.py"))]:
print(repr(spelling), namespace["get_changed_packages"](projects, [spelling], workspace))
This executes the exact complete routing function with native pathlib and real path values. It avoids importing the task runner and does not stub Path or execute package commands.
Error Messages and Stack Traces
No exception: the native repo-relative case returns (set(), False).
Package Versions
Repository script at main 1168c001dd228d6c7a623fd14f53e1f05b7b4540; no installed agent-framework package used.
Python Version
CPython 3.12.14 AMD64
Operating System
Windows
Regression
Unknown
Additional Context
Six native routing cases were observed: repository-relative forward/native, workspace-relative forward/native, absolute core, and native repo-relative redis. Four passed; the latter native repo-relative core/redis cases did not. An isolated diagnostic variant using native Path components recognized all six. This is not a full CLI, SDK, build, type-checking or CI result. No repository branch, source change or PR has been submitted for this observation; maintainer direction is requested before proceeding with a production change.
AI Assistance
Codex assisted the report analysis and diagnostic code. The submitter is responsible for verifying this report.
Acknowledgements
- I searched existing issues and did not find a duplicate.
- I personally verified this behavior and the reproduction details are authentic.
- I will wait for explicit maintainer agreement before starting implementation of a non-trivial change.
- Lingua principale
- Python
- Stelle
- 14.3k
- Fork
- 2.5k
- Merge medio
- 2g 15h
- PR unite (30g)
- 370
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi 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.
Altre issue di microsoft/agent-framework
-
.NET triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
microsoft/agent-framework#9704 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Python: FileSessionStore.set fails on Windows for long session IDs because its temp file name is 38 characters longer than the snapshotForse già presa @Sonica-B l’ha presa 1 giorno fa. Apertapython ready-for-implementation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/agent-framework#9682 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Python: foundry-hosting drops request `metadata` from the stored response — `_create_response_event_stream` never passes `request` to `ResponseEventStream`Forse già presa @its-amann l’ha presa 1 giorno fa. Apertapython triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/agent-framework#9529 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
.NET python triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
microsoft/agent-framework#9092 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Python: raw-data content mappings lose annotations and attachment metadataForse di nuovo libera @moonbox3 l’ha presa 28 giorni fa e non c’è nessuna pull request aperta. Apertapython triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/agent-framework#8632 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/agent-framework
Issue simili
-
backlog
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
EchoTools/nevr-runtime#1108 ·
I maintainer di solito rispondono entro 1 giorno
-
parse names a key after a top-level multi() threshold Bitcoin Core v31.1 refuses as not validAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
btclib-org/btclib-wallet#587 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Judgment-Pack/judgment-pack-spec#275 ·
I maintainer di solito rispondono entro 1 giorno