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 functional test workflow with test Bicep types #7730

Merged
merged 8 commits into from
Aug 2, 2024

Conversation

sk593
Copy link
Contributor

@sk593 sk593 commented Jul 8, 2024

Description

Please explain the changes you've made.

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

Copy link

github-actions bot commented Jul 8, 2024

Unit Tests

3 275 tests  ±0   3 269 ✅ ±0   3m 55s ⏱️ -4s
  261 suites ±0       6 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit a81d1aa. ± Comparison against base commit 46bf036.

This pull request removes 8 and adds 8 tests. Note that renamed tests count towards both.
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/darwin-amd64
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/darwin-arm64
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/linux-amd64
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/linux-arm
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/linux-arm64
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/windows-amd64
github.com/radius-project/radius/pkg/cli/tools ‑ TestGetValidPlatform/windows-arm64
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/darwin-amd64
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/darwin-arm64
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/linux-amd64
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/linux-arm
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/linux-arm64
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/windows-amd64
github.com/radius-project/radius/pkg/cli/bicep/tools ‑ TestGetValidPlatform/windows-arm64

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.13%. Comparing base (6aeb77a) to head (a81d1aa).

Additional details and impacted files
@@                       Coverage Diff                        @@
##           feature-bicep-compiler-merge    #7730      +/-   ##
================================================================
- Coverage                         61.15%   61.13%   -0.02%     
================================================================
  Files                               520      520              
  Lines                             27202    27202              
================================================================
- Hits                              16635    16631       -4     
- Misses                             9100     9102       +2     
- Partials                           1467     1469       +2     

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

@sk593 sk593 force-pushed the update-func-test-workflow-bicep branch 2 times, most recently from 339ebf8 to a651cd9 Compare July 22, 2024 21:29
@sk593 sk593 force-pushed the update-func-test-workflow-bicep branch from a651cd9 to a81d1aa Compare July 22, 2024 21:47
@sk593 sk593 changed the base branch from main to feature-bicep-compiler-merge July 22, 2024 21:47
@sk593 sk593 changed the title [wip] Update functional test workflow with test Bicep types Update functional test workflow with test Bicep types Jul 22, 2024
@sk593 sk593 force-pushed the update-func-test-workflow-bicep branch from a81d1aa to 4ecf627 Compare July 22, 2024 22:07
else
RADIUS_VERSION="${{ env.REL_VERSION }}"
fi
cat <<EOF > ./test/bicepconfig.json
Copy link
Contributor Author

@sk593 sk593 Jul 22, 2024

Choose a reason for hiding this comment

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

We need a temporary bicepconfig.json that will read from a PR-specific tag. So we create one here that goes into the test folder so all our functional tests will use the ACR endpoints in the generated bicepconfig. This is different from the bicepconfig.json that resides in the root radius folder (that is used for dev purposes and will always pull from latest)

Copy link
Contributor

Choose a reason for hiding this comment

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

What will we do when we need to do this locally? Should we have a bicepconfig.json or bicepconfig.json generator script file or something similar?

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's already a bicepconfig.json in the repo so that'll be used if you're running the tests locally

@sk593 sk593 marked this pull request as ready for review July 22, 2024 22:16
@sk593 sk593 requested review from a team as code owners July 22, 2024 22:16
uses: actions/upload-artifact@v4
with:
name: radius-bicep-types
path: ./hack/bicep-types-radius/generated
Copy link
Contributor

Choose a reason for hiding this comment

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

could you remind me what's we decided for this directory? Will it be removed or renamed to something less hacky sounding than hack? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ideally, we'd have this in a separate repository the same way we have bicep-types-aws. I can rename it for now if that'd be better

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, I think at least renaming will definitely help because questions around naming for this come up often. I'm fine with following up on this in a separate PR to keep this one scoped, feel free to log an issue to drive the discussion/follow up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That makes sense, will add this issue as part of the cleanup work


- name: Publish bicep types
run: |
./.rad/bin/rad-bicep publish-extension ./hack/bicep-types-radius/generated/index.json --target br:${{ env.LOCAL_REGISTRY_SERVER }}:${{ env.LOCAL_REGISTRY_PORT }}/radius:${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }} --force
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if this is the correct path to the radius download but if we do a rad bicep download in a previous step so we should be able to use that binary instead of downloading Bicep again

Copy link
Contributor

Choose a reason for hiding this comment

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

Same question about the REL_VERSION being edge as above.

@sk593 sk593 force-pushed the update-func-test-workflow-bicep branch 2 times, most recently from 7cd37c4 to e8f3f99 Compare July 23, 2024 22:18
Copy link
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

Is this also going to be added to the long-running test workflow? If so, I believe making this a separate action would be helpful. We can have a code pair to do that if you would like.

@@ -348,10 +350,49 @@ jobs:
append: true
message: |
:x: Test recipe publishing failed

publish-test-bicep-types:
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 moved inside the build job?

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 kept it as a separate job so it doesn't make the build step too long and can run in parallel. I'm not opposed to moving it into the build step though if that'd be better for this workflow

else
RADIUS_VERSION="${{ env.REL_VERSION }}"
fi
cat <<EOF > ./test/bicepconfig.json
Copy link
Contributor

Choose a reason for hiding this comment

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

What will we do when we need to do this locally? Should we have a bicepconfig.json or bicepconfig.json generator script file or something similar?


- name: Generate Bicep extensibility types from OpenAPI specs
run: |
make generate-bicep-types VERSION=${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Will REL_VERSION ever be edge? I couldn't find any place where we set REL_VERSION to edge in this workflow.

Copy link
Contributor Author

@sk593 sk593 Jul 24, 2024

Choose a reason for hiding this comment

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

I think this will be needed for scheduled runs. In that case, they'd be edge but we only want to tag with latest. The parse step is missing so I'll add that


- name: Publish bicep types
run: |
./.rad/bin/rad-bicep publish-extension ./hack/bicep-types-radius/generated/index.json --target br:${{ env.LOCAL_REGISTRY_SERVER }}:${{ env.LOCAL_REGISTRY_PORT }}/radius:${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }} --force
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question about the REL_VERSION being edge as above.

@sk593
Copy link
Contributor Author

sk593 commented Jul 24, 2024

Is this also going to be added to the long-running test workflow? If so, I believe making this a separate action would be helpful. We can have a code pair to do that if you would like.

The long-running test should use the latest types uploaded so there isn't a need to generate a temporary one there. There will be a bicepconfig.json that permanently lives in the repo and points to the latest tag in the ACR

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

if [[ ! $EXITCODE -eq 0 || (! -z $STDERR && ! $STDERR == $WARNING_MSG* ) ]]
if [[ ! $EXITCODE -eq 0 || (! -z $STDERR && ! $STDERR == $WARNING_MSG* && ! $STDERR == *"Error"* ) ]]
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 small bug. It'd catch all the warning messages but would miss any errors that occurred after that. So this adds a check for errors

@sk593 sk593 mentioned this pull request Aug 1, 2024
7 tasks
@sk593 sk593 force-pushed the feature-bicep-compiler-merge branch from 6aeb77a to dbde31d Compare August 1, 2024 17:38
@sk593 sk593 force-pushed the update-func-test-workflow-bicep branch from 60caa38 to a1d8ffd Compare August 1, 2024 17:38
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>
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>
"$ref": "#/154"
},
"flags": 0,
"description": "Environment variables containing sensitive information can be stored as secrets. The secrets are stored in Applications.Core/SecretStores resource."
Copy link
Contributor

@lakshmimsft lakshmimsft Aug 1, 2024

Choose a reason for hiding this comment

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

existing types.json has slightly different format/casing. checking that it is expected

 "envSecrets": {
          "Type": 158,
          "Flags": 0,
          "Description": "Environment variables containing sensitive information can be stored as secrets. The secrets are stored in Applications.Core/SecretStores resource."
        }
      }

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, that's expected. the generated format that the compiler expects is different than the current version we use


- name: Publish bicep types
run: |
./.rad/bin/rad-bicep publish-extension ./hack/bicep-types-radius/generated/index.json --target br:${{ env.LOCAL_REGISTRY_SERVER }}:${{ env.LOCAL_REGISTRY_PORT }}/radius:${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }} --force
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 ./.rad/bin/bicep since we downloaded this as bicep file above ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, we still download the binary to rad-bicep when downloading bicep

@@ -80,6 +80,8 @@ env:
LOCAL_REGISTRY_SERVER: "localhost"
# Local Docker registry port
LOCAL_REGISTRY_PORT: "5000"
# bicep-types ACR url for uploading Radius Bicep types
BICEP_TYPES_REGISTRY: 'biceptypes.azurecr.io'
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this point to the local registry?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this is used to pull the AWS ACR types. anonymous pull is enabled since it's a publicly readable asset so it shouldn't require any secrets

@sk593 sk593 merged commit 06d334a into feature-bicep-compiler-merge Aug 2, 2024
2 checks passed
@sk593 sk593 deleted the update-func-test-workflow-bicep branch August 2, 2024 18:30
sk593 added a commit that referenced this pull request Aug 2, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 2, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 2, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 5, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 6, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 7, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 9, 2024
# 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>
sk593 added a commit that referenced this pull request Aug 12, 2024
# 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>
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.

5 participants