A second build in the same root fails because build.log is locked by the first
Los mantenedores suelen responder en 5 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
Línea de trabajo
Empieza por src/Fallout.Build/Logging.cs, especialmente por Logging.Configure, DeleteOldLogFiles y ConfigureFiles. Reproduce el conflicto ejecutando una compilación larga y luego ./build.cmd --help desde la misma raíz. Implementa el comportamiento propuesto de omitir el truncamiento de build.log compartido y el sink cuando esté bloqueado; estará listo cuando la segunda compilación se inicie y escriba en su archivo de registro con marca de tiempo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Version: Fallout.Common 10.4.0, Windows 11, .NET SDK 10.0.112
What happens: while one build runs (for example a long-running target), starting a second build in the same root directory fails at startup with:
The process cannot access the file '<root>\.fallout\temp\build.log' because it is being used by another process.
Why: Logging.Configure calls DeleteOldLogFiles, which truncates build.log with File.OpenWrite, and ConfigureFiles opens build.log through a non-shared Serilog file sink. The first build holds that file for its whole run, so both steps fail in the second (Logging.cs). NUKE behaves the same.
Repro: start ./build.cmd SomeLongTarget, then run ./build.cmd --help in the same directory while the first is still running.
Expected: the second build runs. Each run already writes its own build.<timestamp>.log, so only the shared build.log stands in the way.
Possible fixes:
- When
build.logis in use, skip truncating it and skip thebuild.logsink, so that run logs only to its timestamped file. This is the smallest change, andbuild.logkeeps meaning "the log of the run that owns it". - Open
build.logwithshared: true, and truncate it only when nothing else holds it. Runs then interleave in one file.
Either way, the timestamped name has one-second resolution, so two runs started in the same second also collide. Adding milliseconds or the process ID would avoid that.
We would like to contribute option 1 if it's acceptable.
Current develop still contains the shared build.log truncation and non-shared sink as inspected on 12 October 2026. We found no matching existing report in the issue search. This report concerns logging; our separate bootstrap copies the build executable per invocation to avoid output-binary locks.
- Lenguaje dominante
- C#
- Estrellas
- 164
- Forks
- 19
- Merge medio
- 3 d 7 h
- PR fusionados (30 d)
- 9
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Fallout-build/Fallout
-
.\build.ps1 in its current state isn't capable for :add-package commandPosiblemente ocupada @ITaluone la tomó hace 33 días. Abiertobug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Fallout-build/Fallout#670 ·
Los mantenedores suelen responder en 5 días
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Fallout-build/Fallout#669 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
-
CD enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Fallout-build/Fallout#649 ·
Los mantenedores suelen responder en 5 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Fallout-build/Fallout#630 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 5 días
-
enhancement target/backlog
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Fallout-build/Fallout#609 ·
Los mantenedores suelen responder en 5 días
Todos los issues de Fallout-build/Fallout
Issues similares
-
:watch: Not Triaged async-task-programming/subsvc dotnet-csharp/svc
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Python: Bug: AnnotationContent and StreamingAnnotationContent to_element writes CitationType.X, so annotations in a rendered chat history fail to parsePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertopython triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
microsoft/semantic-kernel#14590 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Needs-Triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
PowerShell/PowerShell#28194 ·
Los mantenedores suelen responder en 1 día
-
AI Projects Client customer-reported needs-team-attention question Service Attention
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Azure/azure-sdk-for-net#63804 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día