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

Concurrent transforms with the same source and/or transform file can fail

Aperta
#21 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell

Direzione di ricerca

Individua il codice che apre i file sorgente e di trasformazione durante la trasformazione JSON, quindi esamina come le esecuzioni parallele di MSBuild condividono questi handles. Riproduci il problema con una build parallela con più target e verifica che le trasformazioni simultanee vengano completate senza errori intermittenti quando i file consentono letture condivise.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When using slow cheetah to transform json files we discovered that the transforms would fail intermittently. This was particularly frequent when building a project targeting multiple frameworks (net461 and netcore2.1 in this instance). The parallel build behaviour of msbuild meant it would regularly attempt to perform the same transforms at the same time (once for each target framework).

This would result in msbuild output similar to:

[17:52:50] [Step 6/12]      2>UpdateLocalAppSettings:
[17:52:50] [Step 6/12]          Beginning transformation.
[17:52:50] [Step 6/12]     15>UpdateLocalAppSettings:
[17:52:50] [Step 6/12]          Beginning transformation.
[17:52:50] [Step 6/12]          Transformation failed.

This seems to be caused by the source file being opened with exclusive access for the duration of the transform. The files need to be opened with a FileShare mode of Read to allow concurrent transformations.

Lingua principale
PowerShell
Stelle
117
Fork
38
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 microsoft/json-document-transforms

Tutte le issue di microsoft/json-document-transforms

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.