Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Azure/bicep into asilverman…
Browse files Browse the repository at this point in the history
…/central-mgmt-providers
  • Loading branch information
asilverman committed Mar 5, 2024
2 parents 71ec14b + b41394e commit 6d061b4
Show file tree
Hide file tree
Showing 321 changed files with 6,885 additions and 6,707 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
"version": "lts",
"nodeGypDependencies": true
}
}
},
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", "--privileged" ],
"postAttachCommand": "sudo bash -c \"echo 0 > /proc/sys/kernel/yama/ptrace_scope\""
}
3 changes: 2 additions & 1 deletion docs/release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

1. (**end-of-month releases only**) Update Bicep Az types:
1. Run the [Update Types](https://github.com/Azure/bicep-types-az/actions/workflows/update-types.yml) GitHub Action to generate the latest type definitions.
1. Wait ~3hrs for it to complete. Ensure it runs successfully and that it generates + merges a PR (example [here](https://github.com/Azure/bicep-types-az/pull/1299)).
1. Wait ~3hrs for it to complete. Ensure it runs successfully.
2. Submit a PR to merge the `autogenerate` branch to `main`. You can use [this link](https://github.com/Azure/bicep-types-az/compare/main...autogenerate) to start the PR.
1. Run the Official Build for BicepMirror-Types-Az(see [this README](https://msazure.visualstudio.com/One/_git/BicepMirror-Types-Az) for instructions).
Note: There are several (non-blocking) known issues:
- https://msazure.visualstudio.com/One/_workitems/edit/25142078
Expand Down
98 changes: 49 additions & 49 deletions src/Bicep.Cli.E2eTests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Bicep.Cli.E2eTests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@types/rimraf": "^4.0.5",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/parser": "^7.1.0",
"cross-env": "^7.0.3",
"cross-spawn": "^7.0.3",
"eslint": "^8.57.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
5 changes: 1 addition & 4 deletions src/Bicep.Cli.IntegrationTests/CliScenarioTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ public async Task Test_Issue3182()
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
name: guid(roleAssignmentName)
properties: {
roleDefinitionId: subscriptionResourceId(
'Microsoft.Authorization/roleDefinitions',
roleDefinitionId
)
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', roleDefinitionId)
principalId: principalId
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ public async Task Decompile_ValidParamFile_ShouldSucceed()

param second = 1

param third = [1, 'foo']
param third = [
1
'foo'
]

param fourth = {
firstKey: 'bar'
Expand Down
12 changes: 6 additions & 6 deletions src/Bicep.Cli.IntegrationTests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net8.0": {
"coverlet.collector": {
"type": "Direct",
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "tW3lsNS+dAEII6YGUX/VMoJjBS1QvsxqJeqLaJXub08y1FSjasFPtQ4UBUsudE9PNrzLjooClMsPtY2cZLdXpQ=="
"requested": "[6.0.1, )",
"resolved": "6.0.1",
"contentHash": "q/8r0muHlF7TbhMUTBAk43KteZYG2ECV96pbzkToQwgjp3BvbS766svUcO6va+cohWOkigeBWmHs0Vu5vQnESA=="
},
"FluentAssertions": {
"type": "Direct",
Expand Down Expand Up @@ -82,8 +82,8 @@
},
"Azure.Bicep.Types.Az": {
"type": "Transitive",
"resolved": "0.2.675",
"contentHash": "tTj/kbXmtPIbNW2/TwuWpRQ1cV528FZf/sP3kYkh9XrHJEuQ4PLLuGBTVF5/qVvJ613lTekDAmUj7cXaNXVH1A==",
"resolved": "0.2.677",
"contentHash": "OPpNWvgo7VArxDSOrGVGqG1z37rorVeaNyk/8U1g/xFtcrOR2fn7BOQYhq4IGhbpgI4DTJTIUMjZp8yPilFhLA==",
"dependencies": {
"Azure.Bicep.Types": "0.5.6"
}
Expand Down Expand Up @@ -2164,7 +2164,7 @@
"type": "Project",
"dependencies": {
"Azure.Bicep.Types": "[0.5.6, )",
"Azure.Bicep.Types.Az": "[0.2.675, )",
"Azure.Bicep.Types.Az": "[0.2.677, )",
"Azure.Bicep.Types.K8s": "[0.1.626, )",
"Azure.Containers.ContainerRegistry": "[1.1.1, )",
"Azure.Deployments.Core": "[1.0.1158, )",
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.Cli.UnitTests/Bicep.Cli.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
12 changes: 6 additions & 6 deletions src/Bicep.Cli.UnitTests/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net8.0": {
"coverlet.collector": {
"type": "Direct",
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "tW3lsNS+dAEII6YGUX/VMoJjBS1QvsxqJeqLaJXub08y1FSjasFPtQ4UBUsudE9PNrzLjooClMsPtY2cZLdXpQ=="
"requested": "[6.0.1, )",
"resolved": "6.0.1",
"contentHash": "q/8r0muHlF7TbhMUTBAk43KteZYG2ECV96pbzkToQwgjp3BvbS766svUcO6va+cohWOkigeBWmHs0Vu5vQnESA=="
},
"FluentAssertions": {
"type": "Direct",
Expand Down Expand Up @@ -82,8 +82,8 @@
},
"Azure.Bicep.Types.Az": {
"type": "Transitive",
"resolved": "0.2.675",
"contentHash": "tTj/kbXmtPIbNW2/TwuWpRQ1cV528FZf/sP3kYkh9XrHJEuQ4PLLuGBTVF5/qVvJ613lTekDAmUj7cXaNXVH1A==",
"resolved": "0.2.677",
"contentHash": "OPpNWvgo7VArxDSOrGVGqG1z37rorVeaNyk/8U1g/xFtcrOR2fn7BOQYhq4IGhbpgI4DTJTIUMjZp8yPilFhLA==",
"dependencies": {
"Azure.Bicep.Types": "0.5.6"
}
Expand Down Expand Up @@ -1983,7 +1983,7 @@
"type": "Project",
"dependencies": {
"Azure.Bicep.Types": "[0.5.6, )",
"Azure.Bicep.Types.Az": "[0.2.675, )",
"Azure.Bicep.Types.Az": "[0.2.677, )",
"Azure.Bicep.Types.K8s": "[0.1.626, )",
"Azure.Containers.ContainerRegistry": "[1.1.1, )",
"Azure.Deployments.Core": "[1.0.1158, )",
Expand Down
2 changes: 1 addition & 1 deletion src/Bicep.Cli/Commands/PublishCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public async Task<int> RunAsync(PublishArguments args)

await ioContext.Output.WriteLineAsync(string.Format(CliResources.ExperimentalFeaturesDisclaimerMessage, PublishSourceFeatureName));

sourcesStream = SourceArchive.PackSourcesIntoStream(compilation.SourceFileGrouping, features.CacheRootDirectory);
sourcesStream = SourceArchive.PackSourcesIntoStream(moduleDispatcher, compilation.SourceFileGrouping, features.CacheRootDirectory);
Trace.WriteLine("Publishing Bicep module with source");
}
else
Expand Down
6 changes: 3 additions & 3 deletions src/Bicep.Cli/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
},
"Azure.Bicep.Types.Az": {
"type": "Transitive",
"resolved": "0.2.675",
"contentHash": "tTj/kbXmtPIbNW2/TwuWpRQ1cV528FZf/sP3kYkh9XrHJEuQ4PLLuGBTVF5/qVvJ613lTekDAmUj7cXaNXVH1A==",
"resolved": "0.2.677",
"contentHash": "OPpNWvgo7VArxDSOrGVGqG1z37rorVeaNyk/8U1g/xFtcrOR2fn7BOQYhq4IGhbpgI4DTJTIUMjZp8yPilFhLA==",
"dependencies": {
"Azure.Bicep.Types": "0.5.6"
}
Expand Down Expand Up @@ -1881,7 +1881,7 @@
"type": "Project",
"dependencies": {
"Azure.Bicep.Types": "[0.5.6, )",
"Azure.Bicep.Types.Az": "[0.2.675, )",
"Azure.Bicep.Types.Az": "[0.2.677, )",
"Azure.Bicep.Types.K8s": "[0.1.626, )",
"Azure.Containers.ContainerRegistry": "[1.1.1, )",
"Azure.Deployments.Core": "[1.0.1158, )",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.2.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.2.0" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using Bicep.Core.Diagnostics;
using Bicep.Core.UnitTests;
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Utils;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.Diagnostics;

namespace Bicep.Core.IntegrationTests
{
Expand Down
5 changes: 0 additions & 5 deletions src/Bicep.Core.IntegrationTests/CompileTimeImportTests.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Diagnostics.CodeAnalysis;
using Bicep.Core.Configuration;
using Bicep.Core.Diagnostics;
using Bicep.Core.Emit;
using Bicep.Core.Features;
using Bicep.Core.UnitTests;
using Bicep.Core.UnitTests.Assertions;
using Bicep.Core.UnitTests.Features;
using Bicep.Core.UnitTests.Mock;
using Bicep.Core.UnitTests.Utils;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Newtonsoft.Json.Linq;

namespace Bicep.Core.IntegrationTests;
Expand Down

0 comments on commit 6d061b4

Please sign in to comment.