Skip to content

Conversation

anthony-c-martin
Copy link
Member

@anthony-c-martin anthony-c-martin commented Oct 6, 2025

Noticed while testing out repro for #18213. This just reduces friction slightly when trying to get a minimal repro of a problem.

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Test this change out locally with the following install scripts (Action run 18280030142)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 18280030142
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 18280030142"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 18280030142
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 18280030142"

Copy link
Contributor

github-actions bot commented Oct 6, 2025

Dotnet Test Results

    96 files   -     48      96 suites   - 48   41m 13s ⏱️ - 30m 21s
12 410 tests  -     13  12 410 ✅  -     13  0 💤 ±0  0 ❌ ±0 
28 565 runs   - 14 276  28 565 ✅  - 14 276  0 💤 ±0  0 ❌ ±0 

Results for commit 8889ec7. ± Comparison against base commit 180d3d5.

This pull request removes 1922 and adds 652 tests. Note that renamed tests count towards both.

		nestedProp1: 1
		nestedProp2: 2
		prop1: true
		prop2: false
	1
	2
	\$'")
	prop1: true
	prop2: false
…
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
�ӽ
�0\u0010\u0007��>E�\u0003ċ�%���"��\u0000�=�bki+\u0014�w�\u000e�bq�`~c� �\u000b�1ߺfM.��\u0012�\u0000��
ZF��OR[&�\u000b0��
c��}�\u000f�U��v�1��A���:�h%-F\u0016�TZ`�\u0008��Y[��j2Ⅻ��4O�\u0011��?۳�����ux��p+���P�I\u0004\u000bVI���A�6��d������.�����dCٞ�`�\u000f�\�}��<���<\u0000\u000e�\u0012\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
�ӽ\u000e�0\u0010\u0007��>E���q\u001c����Wh�ďP\u000c�@b|w�`�\u0000qA0����K�m�*ڛ~W�cQ7�	 Rbn�I2�>@F��\u0005\u0004hNP\u0008��>Ɉ�q���,q�\u000f��ҸsY�9�LH��S�2���a���f�)o��V�U���CC9հ�E�Q����'����X �\u0006M�r���w�E2����?֞ \u0008� X�\u0013��Y�\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
���\u000b�0\u0014\u0007��+���|s{�\u0002\u000fA��� �\u001a#�\u000c�P\u0003���y�.J\u0017�\u0004�s�{�����:�qR�\u000c\u0005��H���l]opS��
\u0008(��\u0010Z�>I�GY��2�^?�STWi�\u0004\�\��\u0002��\u001er�fJ�\u0012�ӻ�.A��Iͮ�-o�����hu���p��-����#(P���\u0011�\u0011M\u001e�(����?�0:.���9�"gA�\u000f<�L�eY��^'y��\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003�ӽ
�0\u0010\u0007��>E�\u0003��4i���Ep�\u0001b{b���V(��n;�K�K?\u0004�\u001bs\u0007w��3�o�-�\u0004ˊ\u0005
�gdl�\u0015J���\u0001�	�7N�V�\u0013B��7�q�j[���1�\u0007�5�u�a\u0004Z\u0019��\u0011��B�ڈU[��j`ha�s��	6�R��=\u001bj_��΀�����-�<�\u0004\u0014�\\u0007\u0010H <T]7�%����\u0007�\u000e96\u0005�5&;̎Xz\u001bz��
�K��8��L�\u0005�\u000c�\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���
�0\u000c\u0007�}�=A���b\u000f�{�\u0015�\u000e�`��
\u0007��\u001d\u0004\u000f\u001b^�&�߱!$%�e�uݦp��ZKM��\u0014S� 3f\ud8b4\uddc4\u0002�\u0005\u00040\u0019-D�M�ɀ�n�5�2Ǭ\u001f�։k�e�#�eRVYI�2\u000bf\u0015j��\u001a&\u0017�\u001c�֟}u��TW�o(�\u001a��h4��~ߚ�)�\u0000J \u0001\u0003k�\u0006C�Qq��,�����\u001fKo\u0010EQ\u0014-�	\u0017/�s\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���\u000b�0\u0014\u0007��+�?`�͵�C�!#,\u0008���A\u0006Z���?�<D\u0017��?��9�=xo�ﰷW�Z�D\u0017%�\u001c�èo�\u0008\u0018k=o\u0000\u0013\u0008�\u001bADpN\u0010r��7i�(+U�UƘ������4�!\u0008.\u0005��/1\u0017r\u001e\u0004tfj�\u001aH箪K�扮��M{��>�5�\u000e��\u001bnƷ�\u0013�!�D\u0010A�2@$�������?��Ӎ��r\u001b�N��.v\u0017�����ɲ,�\u001a�\u000b�y\u0016_\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.DirectResourceCollectionTests ‑ DirectResourceCollectionAccess_NotAllowedWithinLoops ("output loopOutput array = [for i in range(0, 2): {
  prop: map(containerWorkers, (w) => w.properties.ipAddress.ip)
}]")
Bicep.Core.IntegrationTests.DirectResourceCollectionTests ‑ DirectResourceCollectionAccess_NotAllowedWithinLoops ("resource propertyLoop 'Microsoft.ContainerInstance/containerGroups@2022-09-01' = {
  name: 'gh9440-loop'
  location: 'westus'
  properties: {
    containers: [for i in range(0, 2): {
      name: 'gh9440-w1c-${i}'
      properties: {
        command: [
          'echo "${join(map(containerWorkers, (w) => w.properties.ipAddress.ip), ',')}"'
        ]
      }
    }]
  }
}")
Bicep.Core.IntegrationTests.DirectResourceCollectionTests ‑ DirectResourceCollectionAccess_NotAllowedWithinLoops ("var loopVar = [for i in range(0, 2): {
  prop: map(containerWorkers, (w) => w.properties.ipAddress.ip)
}]")
Bicep.Core.IntegrationTests.Emit.ParamsFileWriterTests ‑ Params_file_with_no_errors_should_compile_correctly ("
using 'main.bicep'

// involves all syntax
param myParam = {
  arr: [
    {
      a : 'b'
    }
    {
      c : true
    }
  ]
  name: 'complex object!'
  priority: 3
  val: null
  obj: {
      a: 'b'
      c: [
          'd'
           1
      ]
  }
}","
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "myParam": {
      "value": {
        "arr" : [
          {
            "a" : "b"
          },
          {
            "c" : true
          }
        ],
        "name" : "complex object!",
        "priority" : 3,
        "val" : null,
        "obj" : {
          "a" : "b",
          "c" : [
            "d",
            1
          ]
        }
      }
    }
  }
}","
param myParam object
")
…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant