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

Remove UserDefinedTypes feature flag #11461

Merged
merged 8 commits into from
Aug 10, 2023
Merged

Remove UserDefinedTypes feature flag #11461

merged 8 commits into from
Aug 10, 2023

Conversation

jeskew
Copy link
Contributor

@jeskew jeskew commented Aug 6, 2023

Resolves #4158

This PR also updates the TemplateWriter to target a non-experimental ARM languageVersion that allows type definitions (2.0). Templates using experimental ARM features (e.g., extensibility and asserts) now target the 2.1-experimental language version.

The languageVersion change entailed a large number of baseline changes. These are included in this PR in a separate commit, and I'll go through and flag any unexpected baseline change.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/Azure/bicep/pull/11461&drop=dogfoodAlpha


// malformed type but type check should still happen
param malformedType2 44 = f
//@[06:020) [no-unused-params (Warning)] Parameter "malformedType2" is declared but never used. (CodeDescription: bicep core(https://aka.ms/bicep/linter/no-unused-params)) |malformedType2|
//@[21:023) [BCP283 (Error)] Using a literal value as a type requires enabling EXPERIMENTAL feature "UserDefinedTypes". (CodeDescription: none) |44|
//@[26:027) [BCP057 (Error)] The name "f" does not exist in the current context. (CodeDescription: none) |f|
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was a bit surprised that this diagnostic hadn't been surfaced in the previous baseline version, but apparently param default values are not validated if there is an error encountered in the param type clause

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2023

Test Results (linux-x64)

       33 files  ±0         33 suites  ±0   32m 9s ⏱️ - 2m 9s
10 367 tests +1  10 331 ✔️ +1  36 💤 ±0  0 ±0 
12 584 runs  +1  12 548 ✔️ +1  36 💤 ±0  0 ±0 

Results for commit 1ead3a5. ± Comparison against base commit 5e01363.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2023

Test Results (osx-x64)

       33 files  ±0         33 suites  ±0   1h 33m 41s ⏱️ - 8m 23s
10 371 tests +1  10 335 ✔️ +1  36 💤 ±0  0 ±0 
12 588 runs  +1  12 552 ✔️ +1  36 💤 ±0  0 ±0 

Results for commit 1ead3a5. ± Comparison against base commit 5e01363.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2023

Test Results (linux-musl-x64)

       33 files  ±0         33 suites  ±0   30m 30s ⏱️ -18s
10 367 tests +1  10 331 ✔️ +1  36 💤 ±0  0 ±0 
12 584 runs  +1  12 548 ✔️ +1  36 💤 ±0  0 ±0 

Results for commit 1ead3a5. ± Comparison against base commit 5e01363.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2023

Test Results (win-x64)

       33 files  ±0         33 suites  ±0   36m 4s ⏱️ -28s
10 379 tests +1  10 343 ✔️ +1  36 💤 ±0  0 ±0 
12 595 runs  +1  12 559 ✔️ +1  36 💤 ±0  0 ±0 

Results for commit 1ead3a5. ± Comparison against base commit 5e01363.

♻️ This comment has been updated with latest results.

@jeskew jeskew marked this pull request as ready for review August 6, 2023 16:39
@jeskew jeskew requested a review from a team August 7, 2023 14:42
@@ -147,4 +141,8 @@
<value>The specified input "{0}" was not recognized as a Bicep or Bicep Parameters file. Valid files must either the .bicep or .bicepparam extension.</value>
<comment>{0} input file path</comment>
</data>
<data name="ExperimentalFeaturesDisclaimerMessage" xml:space="preserve">
<value>ntal Bicep features have been enabled: {0}. Experimental features should be enabled for testing purposes only. Do not enable these settings for any production usage, or you may be unexpectedly broken at any time!</value>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ntal - typo!

Copy link
Member

@anthony-c-martin anthony-c-martin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Super excited to see this one released 😄

@jeskew jeskew enabled auto-merge (squash) August 10, 2023 14:25
@jeskew jeskew merged commit 3319ec7 into main Aug 10, 2023
46 checks passed
@jeskew jeskew deleted the jeskew/types-ga branch August 10, 2023 14:28
StephenWeatherford pushed a commit that referenced this pull request Aug 11, 2023
Resolves #4158

This PR also updates the TemplateWriter to target a non-experimental ARM
languageVersion that allows type definitions (2.0). Templates using
experimental ARM features (e.g., extensibility and asserts) now target
the 2.1-experimental language version.

The languageVersion change entailed a large number of baseline changes.
These are included in this PR in a separate commit, and I'll go through
and flag any unexpected baseline change.
codeflow:open?pullrequest=https://github.com/Azure/bicep/pull/11461&drop=dogfoodAlpha
StephenWeatherford pushed a commit that referenced this pull request Aug 11, 2023
Resolves #4158

This PR also updates the TemplateWriter to target a non-experimental ARM
languageVersion that allows type definitions (2.0). Templates using
experimental ARM features (e.g., extensibility and asserts) now target
the 2.1-experimental language version.

The languageVersion change entailed a large number of baseline changes.
These are included in this PR in a separate commit, and I'll go through
and flag any unexpected baseline change.
codeflow:open?pullrequest=https://github.com/Azure/bicep/pull/11461&drop=dogfoodAlpha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strong typing for parameters and outputs
2 participants