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

Update validate bicep workflow #7702

Merged
merged 6 commits into from
Jul 22, 2024

Conversation

sk593
Copy link
Contributor

@sk593 sk593 commented Jun 20, 2024

Description

Update validate bicep workflow

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).
  • This pull request adds or changes features of Radius and has an approved issue (issue link required).
  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional).

Fixes: #issue_number

@sk593 sk593 requested review from a team as code owners June 20, 2024 20:40
@@ -5,6 +5,7 @@ then
exit 1
fi

WARNING_MSG="WARNING: The following experimental Bicep features have been enabled: Extensibility, Dynamic type loading, Provider registry. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking."
Copy link
Contributor Author

@sk593 sk593 Jun 20, 2024

Choose a reason for hiding this comment

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

Will look into if this can be disabled so it doesn't print on every build and we're not hardcoding the value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now if this is the output, we'll ignore it since it's not an error

Copy link
Contributor

Choose a reason for hiding this comment

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

What if this message changes? How will we know that we need to update this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The workflow would start failing. I think the ideal situation would be to suppress the warning message if that's possible

Copy link
Contributor

Choose a reason for hiding this comment

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

Possible we could turn this into a wildcard so we don't have to match the whole string? eg: WARNING: The following experimental Bicep features *

I'm wondering about whether the string is going to change and break our build.

@sk593
Copy link
Contributor Author

sk593 commented Jun 20, 2024

This was a casing issue in the generator. Fixed this as part of the PR

The Bicep compiler doesn't make assumptions about the location (rad CLI defaults to 'global') so we'll include that in our bicep templates

@@ -5,6 +5,7 @@ then
exit 1
fi

WARNING_MSG="WARNING: The following experimental Bicep features have been enabled: Extensibility, Dynamic type loading, Provider registry. Experimental features should be enabled for testing purposes only, as there are no guarantees about the quality or stability of these features. Do not enable these settings for any production usage, or your production environment may be subject to breaking."
Copy link
Contributor

Choose a reason for hiding this comment

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

What if this message changes? How will we know that we need to update this?

@@ -19,7 +19,7 @@ resource webapp 'Applications.Core/containers@2023-10-01-preview' = {
container: {
image: magpieimage
env: {
DBCONNECTION: redis.connectionString()
DBCONNECTION: redis.listSecrets().connectionString
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this wrong before?

Copy link
Contributor

Choose a reason for hiding this comment

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

Or is it a new feature of the provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, its a new feature so we now make function calls using listSecrets

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, we're intentionally simplifying the design of the provider.

@@ -8,6 +8,7 @@ var basename = context.resource.name
// doing things this way to test the UCP functionality without using cloud resources.
resource extender 'Applications.Core/extenders@2023-10-01-preview' = {
name: '${basename}-created'
location: 'global'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a constant?

"dynamicTypeLoading": true
},
"providers": {
"radius": "br:biceptypes.azurecr.io/radius:latest",
Copy link
Contributor

Choose a reason for hiding this comment

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

How do you expect this to work for a PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bicepconfig here is the default for the repo and it shouldn't change (so when you're doing development work, the templates will all compile). These will all use the latest tag. For PRs, we'll have a temporary bicepconfig that's generated with a PR-specific tag for workflows like functional testing, PR builds, etc. That'll be added in a separate PR


resource env 'Applications.Core/environments@2023-10-01-preview' = {
name: 'corerp-resources-extenders-aws-s3-recipe-env'
location: 'global'
location: location
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why we need to specify the location here? We made a change to make location optional in Bicep for our resources.

Copy link
Contributor

Choose a reason for hiding this comment

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

If location is not showing as optional, then that's a regression and we need to fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Location has as required flag in the types files so this might be a regression in the generation logic. Will look into that and fix it. But our docs also have location as a required field so that probably needs to get updated too: https://docs.radapp.io/reference/resource-schema/overview/

Copy link
Contributor

Choose a reason for hiding this comment

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

Whether or not it's required depends on which client you're talking about. The Radius API requires location to be set. Bicep will default it for you. One of the ways we tweak the Bicep experience to be simpler.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a casing bug in the generator. Fixed as part of the PR

Copy link

github-actions bot commented Jun 26, 2024

Unit Tests

3 219 tests  ±0   3 213 ✅ ±0   3m 50s ⏱️ -7s
  261 suites ±0       6 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 64bb10c. ± Comparison against base commit 0cc2c64.

♻️ This comment has been updated with latest results.

@sk593 sk593 force-pushed the update-validate-bicep branch 2 times, most recently from 5596c5c to 9c1a244 Compare June 26, 2024 23:24
ytimocin
ytimocin previously approved these changes Jul 5, 2024
@ytimocin ytimocin dismissed their stale review July 5, 2024 15:39

Need to take a look one more time. Approved by mistake. Looking at it now.

@sk593 sk593 force-pushed the feature-bicep-compiler-merge branch from fed2462 to 0cc2c64 Compare July 10, 2024 21:18
Signed-off-by: sk593 <shruthikumar@microsoft.com>
Signed-off-by: sk593 <shruthikumar@microsoft.com>
Signed-off-by: sk593 <shruthikumar@microsoft.com>
Signed-off-by: sk593 <shruthikumar@microsoft.com>
Copy link
Contributor

@willdavsmith willdavsmith left a comment

Choose a reason for hiding this comment

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

approved with minor questions

@@ -283,7 +283,7 @@ jobs:
node-version: '18'
- name: Generate Bicep extensibility types from OpenAPI specs
run: |
make generate-bicep-types VERSION=${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }}
make generate-bicep-types VERSION=${{ env.REL_CHANNEL == 'edge' && 'latest' || env.REL_CHANNEL }}
Copy link
Contributor

Choose a reason for hiding this comment

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

was this wrong before? if not why change over to REL_CHANNEL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea it was, we pull from the version channel in the bicep config so the uploads should also be to the channel tag

@@ -37,12 +37,13 @@ jobs:
uses: actions/checkout@v4
- name: Parse release version and set environment variables
run: python ./.github/scripts/get_release_version.py
- uses: oras-project/setup-oras@main
- name: Download rad-bicep
- name: Setup Azure CLI
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need azure CLI?

Copy link
Contributor Author

@sk593 sk593 Jul 11, 2024

Choose a reason for hiding this comment

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

hmm we might not actually. will test to verify

@@ -29,7 +30,7 @@ do
exec 3>&-
fi

if [[ ! $EXITCODE -eq 0 || ! -z $STDERR ]]
if [[ ! $EXITCODE -eq 0 || (! -z $STDERR && ! $STDERR == $WARNING_MSG* ) ]]
Copy link
Contributor

Choose a reason for hiding this comment

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

did you test this? I don't speak bash-fu

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, ran this through a workflow_dispatch on the branch and it passes

@sk593 sk593 force-pushed the update-validate-bicep branch 4 times, most recently from 6f6797d to 68d53b3 Compare July 19, 2024 17:00
Signed-off-by: sk593 <shruthikumar@microsoft.com>
Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.00%. Comparing base (0cc2c64) to head (64bb10c).
Report is 1 commits behind head on feature-bicep-compiler-merge.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature-bicep-compiler-merge    #7702   +/-   ##
=============================================================
  Coverage                         61.00%   61.00%           
=============================================================
  Files                               520      520           
  Lines                             27008    27008           
=============================================================
  Hits                              16476    16476           
  Misses                             9079     9079           
  Partials                           1453     1453           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: sk593 <shruthikumar@microsoft.com>
@@ -33,17 +33,15 @@ jobs:
name: Validate Bicep Code
runs-on: ubuntu-latest
steps:
- name: Setup and verify bicep CLI
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there seems to be some lag between the bicep download and the verify step so moving this up to mitigate that

- name: Check out repo
uses: actions/checkout@v4
- name: Parse release version and set environment variables
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't think these variables were being used

@sk593 sk593 merged commit e34ecbc into feature-bicep-compiler-merge Jul 22, 2024
3 checks passed
@sk593 sk593 deleted the update-validate-bicep branch July 22, 2024 19:59
sk593 added a commit that referenced this pull request Jul 22, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
@sk593 sk593 mentioned this pull request Aug 1, 2024
7 tasks
sk593 added a commit that referenced this pull request Aug 1, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 2, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 2, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 5, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 6, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 7, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 9, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 12, 2024
Update validate bicep workflow

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
sk593 added a commit that referenced this pull request Aug 12, 2024
# Description

This PR contains all the changes for the Bicep compiler merge. The
branch has had smaller PRs opened for specific features that can be
found below:
  
- [x] Bicep types generator is updated to use the `bicep-types`
repository as a submodule. This includes updating the types contract and
adding support for resource methods (eg `listSecrets`):
43403fd
. There was also a small update to how we handle flags on the `location`
[property](19afe96)
- [x] Update to build workflow to initialize the submodule and publish
types to `biceptypes.azurecr.io` using the `bicep publish-extension`
command:
fed2462
- [x] Update validate bicep workflow to validate bicep files in the
repository with the official Bicep compiler. This includes updating
extension imports of all bicep files and adding a `bicepconfig.json` to
the repository: #7702
- [x] Update functional test workflow to publish types to
`biceptypes.azurecr.io`. This includes publishing the bicep types to a
PR tag and adding a temporary `bicepconfig.json` to consume the
PR-specific types [#7730]
- [x] Update release workflow to publish types to a release-specific
tag. This includes running a build in the `bicep-types-aws` repo to
publish AWS types to a release tag
- [x] Updates to `rad bicep download`. This command will download the
official Bicep binary instead of the Radius one. The install script
calls this command so the official Bicep binary will be downloaded on a
Radius install:
bb8da88
- [x] Updates to `rad init` to generate a default `bicepconfig.json`.
This will pull the Radius and AWS types in our ACR with the current
release tag: #7664

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

# Description

_Please explain the changes you've made._

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
superbeeny pushed a commit to superbeeny/radius that referenced this pull request Aug 14, 2024
This PR contains all the changes for the Bicep compiler merge. The
branch has had smaller PRs opened for specific features that can be
found below:

- [x] Bicep types generator is updated to use the `bicep-types`
repository as a submodule. This includes updating the types contract and
adding support for resource methods (eg `listSecrets`):
radius-project@43403fd
. There was also a small update to how we handle flags on the `location`
[property](radius-project@19afe96)
- [x] Update to build workflow to initialize the submodule and publish
types to `biceptypes.azurecr.io` using the `bicep publish-extension`
command:
radius-project@fed2462
- [x] Update validate bicep workflow to validate bicep files in the
repository with the official Bicep compiler. This includes updating
extension imports of all bicep files and adding a `bicepconfig.json` to
the repository: radius-project#7702
- [x] Update functional test workflow to publish types to
`biceptypes.azurecr.io`. This includes publishing the bicep types to a
PR tag and adding a temporary `bicepconfig.json` to consume the
PR-specific types [radius-project#7730]
- [x] Update release workflow to publish types to a release-specific
tag. This includes running a build in the `bicep-types-aws` repo to
publish AWS types to a release tag
- [x] Updates to `rad bicep download`. This command will download the
official Bicep binary instead of the Radius one. The install script
calls this command so the official Bicep binary will be downloaded on a
Radius install:
radius-project@bb8da88
- [x] Updates to `rad init` to generate a default `bicepconfig.json`.
This will pull the Radius and AWS types in our ACR with the current
release tag: radius-project#7664

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

_Please explain the changes you've made._

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
superbeeny pushed a commit to superbeeny/radius that referenced this pull request Aug 14, 2024
This PR contains all the changes for the Bicep compiler merge. The
branch has had smaller PRs opened for specific features that can be
found below:

- [x] Bicep types generator is updated to use the `bicep-types`
repository as a submodule. This includes updating the types contract and
adding support for resource methods (eg `listSecrets`):
radius-project@43403fd
. There was also a small update to how we handle flags on the `location`
[property](radius-project@19afe96)
- [x] Update to build workflow to initialize the submodule and publish
types to `biceptypes.azurecr.io` using the `bicep publish-extension`
command:
radius-project@fed2462
- [x] Update validate bicep workflow to validate bicep files in the
repository with the official Bicep compiler. This includes updating
extension imports of all bicep files and adding a `bicepconfig.json` to
the repository: radius-project#7702
- [x] Update functional test workflow to publish types to
`biceptypes.azurecr.io`. This includes publishing the bicep types to a
PR tag and adding a temporary `bicepconfig.json` to consume the
PR-specific types [radius-project#7730]
- [x] Update release workflow to publish types to a release-specific
tag. This includes running a build in the `bicep-types-aws` repo to
publish AWS types to a release tag
- [x] Updates to `rad bicep download`. This command will download the
official Bicep binary instead of the Radius one. The install script
calls this command so the official Bicep binary will be downloaded on a
Radius install:
radius-project@bb8da88
- [x] Updates to `rad init` to generate a default `bicepconfig.json`.
This will pull the Radius and AWS types in our ACR with the current
release tag: radius-project#7664

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

_Please explain the changes you've made._

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
Reshrahim pushed a commit to Reshrahim/radius that referenced this pull request Aug 27, 2024
# Description

This PR contains all the changes for the Bicep compiler merge. The
branch has had smaller PRs opened for specific features that can be
found below:

- [x] Bicep types generator is updated to use the `bicep-types`
repository as a submodule. This includes updating the types contract and
adding support for resource methods (eg `listSecrets`):
radius-project@43403fd
. There was also a small update to how we handle flags on the `location`
[property](radius-project@19afe96)
- [x] Update to build workflow to initialize the submodule and publish
types to `biceptypes.azurecr.io` using the `bicep publish-extension`
command:
radius-project@fed2462
- [x] Update validate bicep workflow to validate bicep files in the
repository with the official Bicep compiler. This includes updating
extension imports of all bicep files and adding a `bicepconfig.json` to
the repository: radius-project#7702
- [x] Update functional test workflow to publish types to
`biceptypes.azurecr.io`. This includes publishing the bicep types to a
PR tag and adding a temporary `bicepconfig.json` to consume the
PR-specific types [radius-project#7730]
- [x] Update release workflow to publish types to a release-specific
tag. This includes running a build in the `bicep-types-aws` repo to
publish AWS types to a release tag
- [x] Updates to `rad bicep download`. This command will download the
official Bicep binary instead of the Radius one. The install script
calls this command so the official Bicep binary will be downloaded on a
Radius install:
radius-project@bb8da88
- [x] Updates to `rad init` to generate a default `bicepconfig.json`.
This will pull the Radius and AWS types in our ACR with the current
release tag: radius-project#7664

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

# Description

_Please explain the changes you've made._

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
Signed-off-by: Reshma Abdul Rahim <reshmarahim.abdul@microsoft.com>
superbeeny pushed a commit to superbeeny/radius that referenced this pull request Sep 1, 2024
This PR contains all the changes for the Bicep compiler merge. The
branch has had smaller PRs opened for specific features that can be
found below:

- [x] Bicep types generator is updated to use the `bicep-types`
repository as a submodule. This includes updating the types contract and
adding support for resource methods (eg `listSecrets`):
radius-project@43403fd
. There was also a small update to how we handle flags on the `location`
[property](radius-project@19afe96)
- [x] Update to build workflow to initialize the submodule and publish
types to `biceptypes.azurecr.io` using the `bicep publish-extension`
command:
radius-project@fed2462
- [x] Update validate bicep workflow to validate bicep files in the
repository with the official Bicep compiler. This includes updating
extension imports of all bicep files and adding a `bicepconfig.json` to
the repository: radius-project#7702
- [x] Update functional test workflow to publish types to
`biceptypes.azurecr.io`. This includes publishing the bicep types to a
PR tag and adding a temporary `bicepconfig.json` to consume the
PR-specific types [radius-project#7730]
- [x] Update release workflow to publish types to a release-specific
tag. This includes running a build in the `bicep-types-aws` repo to
publish AWS types to a release tag
- [x] Updates to `rad bicep download`. This command will download the
official Bicep binary instead of the Radius one. The install script
calls this command so the official Bicep binary will be downloaded on a
Radius install:
radius-project@bb8da88
- [x] Updates to `rad init` to generate a default `bicepconfig.json`.
This will pull the Radius and AWS types in our ACR with the current
release tag: radius-project#7664

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

_Please explain the changes you've made._

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).
- This pull request adds or changes features of Radius and has an
approved issue (issue link required).
- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

---------

Signed-off-by: sk593 <shruthikumar@microsoft.com>
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.

4 participants