aws / aws/aws-lambda-builders

Receiving error trying to update amazon.lambda.tools global tool when running two sam build commands concurrently

Aperta
#205 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area/workflow/dotnet_clipackage type/bug
Lingua principale
Python
Stelle
380
Fork
161
Merge medio
1g 1h
PR unite (30g)
2

Descrizione

**Description:**

Receiving error from `sam build` when building a dotnet core 3.1 lambda function on a CI build server that is running more than one agent.

Error: DotnetCliPackageBuilder:GlobalToolInstall - Error configuring the Amazon.Lambda.Tools .NET Core Global Tool: Dotnet CLI Failed: Tool 'amazon.lambda.tools' failed to update due to the following:

Failed to uninstall tool 'amazon.lambda.tools': Failed to retrieve tool configuration: The process cannot access the file 'C:\Users\CruiseControl\.dotnet\tools\.store\amazon.lambda.tools\4.3.0\amazon.lambda.tools\4.3.0\tools\netcoreapp2.1\any\DotnetToolSettings.xml' because it is being used by another process.

**Steps to reproduce the issue:**
1. Create a SAM project that includes a lambda with the dotnetcore3.1 runtime
2. Create two different workspaces with the same code on your machine
3. run `sam build` concurrently until the file locking issue is encountered

**Additional environment details (Ex: Windows, Mac, Amazon Linux etc)** observed on a windows build host

This seems related to #126 and would likely be resolved by #127 as well. Is there any timeline for releasing that change?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo comandi `sam build` concorrenti su un host di build Windows usando due workspace e una Lambda dotnetcore3.1. Leggi le issue correlate #126 e #127 per la direzione proposta; il lavoro è completato quando le build concorrenti non falliscono più durante l’aggiornamento dello strumento globale Amazon.Lambda.Tools.

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

Valutazione

Stack tecnologico
aws
Ambito
build-system
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.