Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is bug in bicep version 0.33.93 which is used in ubuntu 22.04 and 24.04 #11937

Closed
3 of 15 tasks
v-schhabra opened this issue Apr 3, 2025 · 2 comments
Closed
3 of 15 tasks

Comments

@v-schhabra
Copy link

Description

Customers are getting error in AzureResourceManagerTemplate deployment task as they are using ubuntu 22 and 24 version which is using 0.33.93 version of bicep.
Please upgrade the bicep version to v0.34.44 as this version contains the fix.

ERROR: Unhandled exception. System.NotSupportedException: The specified pattern with RegexOptions.NonBacktracking could result in an automata as large as '1305' nodes, which is larger than the configured limit of '1000'.
2025-03-26T13:25:44.7349327Z at System.Text.RegularExpressions.Symbolic.SymbolicRegexRunnerFactory..ctor(RegexTree, RegexOptions, TimeSpan)
2025-03-26T13:25:44.7352538Z at System.Text.RegularExpressions.Regex..ctor(String, RegexOptions, TimeSpan, CultureInfo)
2025-03-26T13:25:44.7352867Z at System.Text.RegularExpressions.RegexCache.GetOrAdd(String, RegexOptions, TimeSpan)
2025-03-26T13:25:44.7353172Z at System.Text.RegularExpressions.Regex.IsMatch(String, String , RegexOptions)
2025-03-26T13:25:44.7353470Z at Bicep.Core.TypeSystem.TypeHelper.MatchesPattern(String pattern, String value)
2025-03-26T13:25:44.7353845Z at Bicep.Core.TypeSystem.TypeValidator.NarrowStringAssignmentType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, StringType targetType)
2025-03-26T13:25:44.7354280Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
2025-03-26T13:25:44.7354721Z at Bicep.Core.TypeSystem.TypeValidator.NarrowObjectAssignmentType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, ObjectType targetType)
2025-03-26T13:25:44.7355150Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
2025-03-26T13:25:44.7355559Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol targetType)
2025-03-26T13:25:44.7355956Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
2025-03-26T13:25:44.7356341Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol targetType)
2025-03-26T13:25:44.7356834Z at Bicep.Core.TypeSystem.TypeValidator.NarrowTypeAndCollectDiagnostics(ITypeManager typeManager, IBinder binder, IDiagnosticLookup parsingErrorLookup, IDiagnosticWriter diagnosticWriter, SyntaxBase expression, TypeSymbol targetType, Boolean isResourceDeclaration)
2025-03-26T13:25:44.7357372Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass24_0.b__0(IDiagnosticWriter diagnostics)
2025-03-26T13:25:44.7357740Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
2025-03-26T13:25:44.7358084Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
2025-03-26T13:25:44.7358407Z at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
2025-03-26T13:25:44.7358742Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) 2025-03-26T13:25:44.7359085Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
2025-03-26T13:25:44.7359612Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitResourceDeclarationSyntax(ResourceDeclarationSyntax syntax)
2025-03-26T13:25:44.7359944Z at Bicep.Core.Syntax.ResourceDeclarationSyntax.Accept(ISyntaxVisitor visitor)
2025-03-26T13:25:44.7360239Z at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
2025-03-26T13:25:44.7360510Z at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
2025-03-26T13:25:44.7376190Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
2025-03-26T13:25:44.7376632Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7376928Z at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7377194Z at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
2025-03-26T13:25:44.7377463Z at Bicep.Core.Semantics.ResourceSymbol.get_Descendants()+MoveNext()
2025-03-26T13:25:44.7377761Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7378077Z at Bicep.Core.Semantics.SymbolVisitor.VisitResourceSymbol(ResourceSymbol symbol)
2025-03-26T13:25:44.7378393Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitResourceSymbol(ResourceSymbol symbol)
2025-03-26T13:25:44.7378893Z at Bicep.Core.Semantics.ResourceSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7379171Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7379437Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7379703Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7379987Z at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7380290Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7380579Z at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)

Please check this link for more information
Azure/bicep#16676
microsoft/azure-pipelines-tasks#20949

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

microsoft/azure-pipelines-tasks#20949

Is it regression?

yes

Expected behavior

AzureResourceManagerTemplateDeployment task should work fine with Ubuntu agent

Actual behavior

AzureResourceManagerTemplateDeployment task is failing with error
ERROR: Unhandled exception. System.NotSupportedException: The specified pattern with RegexOptions.NonBacktracking could result in an automata as large as '1305' nodes, which is larger than the configured limit of '1000'.
2025-03-26T13:25:44.7349327Z at System.Text.RegularExpressions.Symbolic.SymbolicRegexRunnerFactory..ctor(RegexTree, RegexOptions, TimeSpan)
2025-03-26T13:25:44.7352538Z at System.Text.RegularExpressions.Regex..ctor(String, RegexOptions, TimeSpan, CultureInfo)
2025-03-26T13:25:44.7352867Z at System.Text.RegularExpressions.RegexCache.GetOrAdd(String, RegexOptions, TimeSpan)
2025-03-26T13:25:44.7353172Z at System.Text.RegularExpressions.Regex.IsMatch(String, String , RegexOptions)
2025-03-26T13:25:44.7353470Z at Bicep.Core.TypeSystem.TypeHelper.MatchesPattern(String pattern, String value)
2025-03-26T13:25:44.7353845Z at Bicep.Core.TypeSystem.TypeValidator.NarrowStringAssignmentType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, StringType targetType)
2025-03-26T13:25:44.7354280Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
2025-03-26T13:25:44.7354721Z at Bicep.Core.TypeSystem.TypeValidator.NarrowObjectAssignmentType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, ObjectType targetType)
2025-03-26T13:25:44.7355150Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
2025-03-26T13:25:44.7355559Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol targetType)
2025-03-26T13:25:44.7355956Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
2025-03-26T13:25:44.7356341Z at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol targetType)
2025-03-26T13:25:44.7356834Z at Bicep.Core.TypeSystem.TypeValidator.NarrowTypeAndCollectDiagnostics(ITypeManager typeManager, IBinder binder, IDiagnosticLookup parsingErrorLookup, IDiagnosticWriter diagnosticWriter, SyntaxBase expression, TypeSymbol targetType, Boolean isResourceDeclaration)
2025-03-26T13:25:44.7357372Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass24_0.b__0(IDiagnosticWriter diagnostics)
2025-03-26T13:25:44.7357740Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
2025-03-26T13:25:44.7358084Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
2025-03-26T13:25:44.7358407Z at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
2025-03-26T13:25:44.7358742Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) 2025-03-26T13:25:44.7359085Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
2025-03-26T13:25:44.7359612Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitResourceDeclarationSyntax(ResourceDeclarationSyntax syntax)
2025-03-26T13:25:44.7359944Z at Bicep.Core.Syntax.ResourceDeclarationSyntax.Accept(ISyntaxVisitor visitor)
2025-03-26T13:25:44.7360239Z at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
2025-03-26T13:25:44.7360510Z at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
2025-03-26T13:25:44.7376190Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
2025-03-26T13:25:44.7376632Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7376928Z at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7377194Z at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
2025-03-26T13:25:44.7377463Z at Bicep.Core.Semantics.ResourceSymbol.get_Descendants()+MoveNext()
2025-03-26T13:25:44.7377761Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7378077Z at Bicep.Core.Semantics.SymbolVisitor.VisitResourceSymbol(ResourceSymbol symbol)
2025-03-26T13:25:44.7378393Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitResourceSymbol(ResourceSymbol symbol)
2025-03-26T13:25:44.7378893Z at Bicep.Core.Semantics.ResourceSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7379171Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7379437Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7379703Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7379987Z at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7380290Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7380579Z at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7385329Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7385623Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7385885Z at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
2025-03-26T13:25:44.7386177Z at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
2025-03-26T13:25:44.7386433Z at System.Lazy1.ViaFactory(LazyThreadSafetyMode) 2025-03-26T13:25:44.7386694Z at System.Lazy1.ExecutionAndPublication(LazyHelper, Boolean)
2025-03-26T13:25:44.7386930Z at System.Lazy1.CreateValue() 2025-03-26T13:25:44.7387138Z at System.Lazy1.get_Value()
2025-03-26T13:25:44.7387363Z at Bicep.Core.Semantics.SemanticModel.HasErrors()
2025-03-26T13:25:44.7387682Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass26_0.b__0(IDiagnosticWriter diagnostics)
2025-03-26T13:25:44.7388043Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
2025-03-26T13:25:44.7388386Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
2025-03-26T13:25:44.7388712Z at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
2025-03-26T13:25:44.7389038Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) 2025-03-26T13:25:44.7389382Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
2025-03-26T13:25:44.7389744Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax)
2025-03-26T13:25:44.7390062Z at Bicep.Core.Syntax.ModuleDeclarationSyntax.Accept(ISyntaxVisitor visitor)
2025-03-26T13:25:44.7390346Z at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
2025-03-26T13:25:44.7404341Z at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
2025-03-26T13:25:44.7404783Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
2025-03-26T13:25:44.7405291Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7405580Z at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7405851Z at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
2025-03-26T13:25:44.7406127Z at Bicep.Core.Semantics.ModuleSymbol.get_Descendants()+MoveNext()
2025-03-26T13:25:44.7406407Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7406696Z at Bicep.Core.Semantics.SymbolVisitor.VisitModuleSymbol(ModuleSymbol symbol)
2025-03-26T13:25:44.7407003Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitModuleSymbol(ModuleSymbol symbol)
2025-03-26T13:25:44.7407362Z at Bicep.Core.Semantics.ModuleSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7407637Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7407901Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7408175Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7408460Z at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7408838Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7409128Z at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7409400Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7409659Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7409920Z at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
2025-03-26T13:25:44.7410189Z at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
2025-03-26T13:25:44.7410442Z at System.Lazy1.ViaFactory(LazyThreadSafetyMode) 2025-03-26T13:25:44.7430989Z at System.Lazy1.ExecutionAndPublication(LazyHelper, Boolean)
2025-03-26T13:25:44.7431390Z at System.Lazy1.CreateValue() 2025-03-26T13:25:44.7431627Z at System.Lazy1.get_Value()
2025-03-26T13:25:44.7431859Z at Bicep.Core.Semantics.SemanticModel.HasErrors()
2025-03-26T13:25:44.7432186Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass26_0.b__0(IDiagnosticWriter diagnostics)
2025-03-26T13:25:44.7432554Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
2025-03-26T13:25:44.7432904Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
2025-03-26T13:25:44.7433226Z at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
2025-03-26T13:25:44.7433542Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) 2025-03-26T13:25:44.7433882Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
2025-03-26T13:25:44.7434230Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax)
2025-03-26T13:25:44.7434857Z at Bicep.Core.Syntax.ModuleDeclarationSyntax.Accept(ISyntaxVisitor visitor)
2025-03-26T13:25:44.7435193Z at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
2025-03-26T13:25:44.7435508Z at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
2025-03-26T13:25:44.7435838Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
2025-03-26T13:25:44.7436191Z at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7436548Z at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
2025-03-26T13:25:44.7436831Z at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
2025-03-26T13:25:44.7437199Z at Bicep.Core.Semantics.ModuleSymbol.get_Descendants()+MoveNext()
2025-03-26T13:25:44.7437552Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7438039Z at Bicep.Core.Semantics.SymbolVisitor.VisitModuleSymbol(ModuleSymbol symbol)
2025-03-26T13:25:44.7438393Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitModuleSymbol(ModuleSymbol symbol)
2025-03-26T13:25:44.7438737Z at Bicep.Core.Semantics.ModuleSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7439135Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7439434Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7439807Z at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
2025-03-26T13:25:44.7440158Z at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7440501Z at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
2025-03-26T13:25:44.7440988Z at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)
2025-03-26T13:25:44.7441306Z at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
2025-03-26T13:25:44.7441640Z at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
2025-03-26T13:25:44.7441950Z at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
2025-03-26T13:25:44.7442322Z at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
2025-03-26T13:25:44.7442680Z at System.Lazy1.ViaFactory(LazyThreadSafetyMode) 2025-03-26T13:25:44.7443002Z at System.Lazy1.ExecutionAndPublication(LazyHelper, Boolean)
2025-03-26T13:25:44.7443291Z at System.Lazy1.CreateValue() 2025-03-26T13:25:44.7443626Z at System.Lazy1.get_Value()
2025-03-26T13:25:44.7443909Z at Bicep.Core.Semantics.SemanticModel.GetAllDiagnostics()
2025-03-26T13:25:44.7444258Z at Bicep.Core.Semantics.Compilation.b__25_1(BicepSourceFile bicepFile)
2025-03-26T13:25:44.7444633Z at System.Collections.Immutable.ImmutableDictionary.<>c__DisplayClass9_03.<ToImmutableDictionary>b__0(TSource element) 2025-03-26T13:25:44.7445037Z at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
2025-03-26T13:25:44.7445426Z at System.Collections.Immutable.ImmutableDictionary2.AddRange(IEnumerable1, MutationInput, KeyCollisionBehavior )
2025-03-26T13:25:44.7445809Z at System.Collections.Immutable.ImmutableDictionary2.AddRange(IEnumerable1, Boolean)
2025-03-26T13:25:44.7446177Z at System.Collections.Immutable.ImmutableDictionary2.AddRange(IEnumerable1 )
2025-03-26T13:25:44.7446597Z at System.Collections.Immutable.ImmutableDictionary.ToImmutableDictionary[TSource,TKey,TValue](IEnumerable1, Func2, Func2, IEqualityComparer1 , IEqualityComparer1 ) 2025-03-26T13:25:44.7447739Z at System.Collections.Immutable.ImmutableDictionary.ToImmutableDictionary[TSource,TKey,TValue](IEnumerable1, Func2, Func2)
2025-03-26T13:25:44.7448158Z at Bicep.Core.Semantics.Compilation.GetAllDiagnosticsByBicepFile()
2025-03-26T13:25:44.7448585Z at Bicep.Cli.Logging.DiagnosticLogger.LogDiagnostics(DiagnosticOptions options, Compilation compilation)
2025-03-26T13:25:44.7449040Z at Bicep.Cli.Commands.BuildCommand.Compile(Uri inputUri, Uri outputUri, Boolean noRestore, Nullable1 diagnosticsFormat, Boolean outputToStdOut) 2025-03-26T13:25:44.7449423Z at Bicep.Cli.Commands.BuildCommand.RunAsync(BuildArguments args) 2025-03-26T13:25:44.7449777Z at Bicep.Cli.Program.RunAsync(String[] args, CancellationToken cancellationToken) 2025-03-26T13:25:44.7450111Z at Bicep.Cli.Program.<>c__DisplayClass3_0.<<Main>b__0>d.MoveNext() 2025-03-26T13:25:44.7450510Z --- End of stack trace from previous location --- 2025-03-26T13:25:44.7462250Z at Bicep.Cli.Program.RunWithCancellationAsync(Func2 runFunc)
2025-03-26T13:25:44.7462544Z at Bicep.Cli.Program.Main(String[] args)
2025-03-26T13:25:44.7462909Z at Bicep.Cli.Program.

(String[] args)
2025-03-26T13:25:44.7502165Z ##[error]Check out the troubleshooting guide to see if your issue is addressed: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting
2025-03-26T13:25:44.7510162Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=959bd12e-676f-4bb3-9752-f88c94c35d9a;]Check out the troubleshooting guide to see if your issue is addressed: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting
2025-03-26T13:25:44.7521701Z ##[debug]task result: Failed
2025-03-26T13:25:44.7556287Z ##[error]Error: "az bicep build" failed. Error: ERROR: Unhandled exception. System.NotSupportedException: The specified pattern with RegexOptions.NonBacktracking could result in an automata as large as '1305' nodes, which is larger than the configured limit of '1000'.
at System.Text.RegularExpressions.Symbolic.SymbolicRegexRunnerFactory..ctor(RegexTree, RegexOptions, TimeSpan)
at System.Text.RegularExpressions.Regex..ctor(String, RegexOptions, TimeSpan, CultureInfo)
at System.Text.RegularExpressions.RegexCache.GetOrAdd(String, RegexOptions, TimeSpan)
at System.Text.RegularExpressions.Regex.IsMatch(String, String , RegexOptions)
at Bicep.Core.TypeSystem.TypeHelper.MatchesPattern(String pattern, String value)
at Bicep.Core.TypeSystem.TypeValidator.NarrowStringAssignmentType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, StringType targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowObjectAssignmentType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, ObjectType targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol expressionType, TypeSymbol targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowType(TypeValidatorConfig config, SyntaxBase expression, TypeSymbol targetType)
at Bicep.Core.TypeSystem.TypeValidator.NarrowTypeAndCollectDiagnostics(ITypeManager typeManager, IBinder binder, IDiagnosticLookup parsingErrorLookup, IDiagnosticWriter diagnosticWriter, SyntaxBase expression, TypeSymbol targetType, Boolean isResourceDeclaration)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass24_0.b__0(IDiagnosticWriter diagnostics)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitResourceDeclarationSyntax(ResourceDeclarationSyntax syntax)
at Bicep.Core.Syntax.ResourceDeclarationSyntax.Accept(ISyntaxVisitor visitor)
at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
at Bicep.Core.Semantics.ResourceSymbol.get_Descendants()+MoveNext()
at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
at Bicep.Core.Semantics.SymbolVisitor.VisitResourceSymbol(ResourceSymbol symbol)
at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitResourceSymbol(ResourceSymbol symbol)
at Bicep.Core.Semantics.ResourceSymbol.Accept(SymbolVisitor visitor)
at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)
at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode) at System.Lazy1.ExecutionAndPublication(LazyHelper, Boolean)
at System.Lazy1.CreateValue() at System.Lazy1.get_Value()
at Bicep.Core.Semantics.SemanticModel.HasErrors()
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass26_0.b__0(IDiagnosticWriter diagnostics)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax)
at Bicep.Core.Syntax.ModuleDeclarationSyntax.Accept(ISyntaxVisitor visitor)
at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
at Bicep.Core.Semantics.ModuleSymbol.get_Descendants()+MoveNext()
at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
at Bicep.Core.Semantics.SymbolVisitor.VisitModuleSymbol(ModuleSymbol symbol)
at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitModuleSymbol(ModuleSymbol symbol)
at Bicep.Core.Semantics.ModuleSymbol.Accept(SymbolVisitor visitor)
at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)
at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode) at System.Lazy1.ExecutionAndPublication(LazyHelper, Boolean)
at System.Lazy1.CreateValue() at System.Lazy1.get_Value()
at Bicep.Core.Semantics.SemanticModel.HasErrors()
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass26_0.b__0(IDiagnosticWriter diagnostics)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.b__0()
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass16_0.b__0(SyntaxBase key)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey, Func2)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(SyntaxBase syntax, Func1 assignFunc) at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(SyntaxBase syntax, Func2 assignFunc)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitModuleDeclarationSyntax(ModuleDeclarationSyntax syntax)
at Bicep.Core.Syntax.ModuleDeclarationSyntax.Accept(ISyntaxVisitor visitor)
at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(SyntaxBase node)
at Bicep.Core.Syntax.SyntaxVisitor.Visit(SyntaxBase node)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax)
at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(SyntaxBase syntax)
at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(SyntaxBase syntax)
at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
at Bicep.Core.Semantics.ModuleSymbol.get_Descendants()+MoveNext()
at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
at Bicep.Core.Semantics.SymbolVisitor.VisitModuleSymbol(ModuleSymbol symbol)
at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitModuleSymbol(ModuleSymbol symbol)
at Bicep.Core.Semantics.ModuleSymbol.Accept(SymbolVisitor visitor)
at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Symbol symbol)
at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(FileSymbol symbol)
at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(FileSymbol symbol)
at Bicep.Core.Semantics.FileSymbol.Accept(SymbolVisitor visitor)
at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Symbol node)
at Bicep.Core.Semantics.SymbolVisitor.Visit(Symbol node)
at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode) at System.Lazy1.ExecutionAndPublication(LazyHelper, Boolean)
at System.Lazy1.CreateValue() at System.Lazy1.get_Value()
at Bicep.Core.Semantics.SemanticModel.GetAllDiagnostics()
at Bicep.Core.Semantics.Compilation.b__25_1(BicepSourceFile bicepFile)
at System.Collections.Immutable.ImmutableDictionary.<>c__DisplayClass9_03.<ToImmutableDictionary>b__0(TSource element) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Collections.Immutable.ImmutableDictionary2.AddRange(IEnumerable1, MutationInput, KeyCollisionBehavior )
at System.Collections.Immutable.ImmutableDictionary2.AddRange(IEnumerable1, Boolean)
at System.Collections.Immutable.ImmutableDictionary2.AddRange(IEnumerable1 )
at System.Collections.Immutable.ImmutableDictionary.ToImmutableDictionary[TSource,TKey,TValue](IEnumerable1, Func2, Func2, IEqualityComparer1 , IEqualityComparer1 ) at System.Collections.Immutable.ImmutableDictionary.ToImmutableDictionary[TSource,TKey,TValue](IEnumerable1, Func2, Func2)
at Bicep.Core.Semantics.Compilation.GetAllDiagnosticsByBicepFile()
at Bicep.Cli.Logging.DiagnosticLogger.LogDiagnostics(DiagnosticOptions options, Compilation compilation)
at Bicep.Cli.Commands.BuildCommand.Compile(Uri inputUri, Uri outputUri, Boolean noRestore, Nullable1 diagnosticsFormat, Boolean outputToStdOut) at Bicep.Cli.Commands.BuildCommand.RunAsync(BuildArguments args) at Bicep.Cli.Program.RunAsync(String[] args, CancellationToken cancellationToken) at Bicep.Cli.Program.<>c__DisplayClass3_0.<<Main>b__0>d.MoveNext() --- End of stack trace from previous location --- at Bicep.Cli.Program.RunWithCancellationAsync(Func2 runFunc)
at Bicep.Cli.Program.Main(String[] args)
at Bicep.Cli.Program.(String[] args)

Repro steps

Use AzureResourceManagerTemplateDeployment task in your pipeline with ubuntu agent.

@kishorekumar-anchala
Copy link
Contributor

Hi @v-schhabra ,

Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.

@vidyasagarnimmagaddi vidyasagarnimmagaddi added the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Apr 7, 2025
@hemanthmanga
Copy link
Contributor

Hi @v-schhabra,The latest Ubuntu image has been rolled out, and the Bicep version has been updated to 0.34.44. Kindly use the latest image to resolve the issue. We are closing this issue. Thank you.

@hemanthmanga hemanthmanga removed the awaiting-deployment Code complete; awaiting deployment and/or deployment in progress label Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants