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 credential precedence in bicepconfig.json #7803

Merged
merged 8 commits into from
Aug 13, 2024

Conversation

sk593
Copy link
Contributor

@sk593 sk593 commented Aug 12, 2024

Description

Some workflows need Az authentication and some don't. This removes the default az auth in workflows anytime its not needed

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 August 12, 2024 19:24
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 19:24 — with GitHub Actions Failure
Copy link

github-actions bot commented Aug 12, 2024

Unit Tests

3 297 tests  ±0   3 291 ✅ ±0   3m 59s ⏱️ +3s
  263 suites ±0       6 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 0f85d87. ± Comparison against base commit 5c10d92.

♻️ This comment has been updated with latest results.

@sk593 sk593 temporarily deployed to functional-tests August 12, 2024 19:35 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Aug 12, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 667c23d
Unique ID func4e7cc2943b
Image tag pr-func4e7cc2943b
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func4e7cc2943b
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-func4e7cc2943b
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func4e7cc2943b
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func4e7cc2943b
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
❌ Test recipe publishing failed

@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from 667c23d to 1d7b4d0 Compare August 12, 2024 19:39
@sk593 sk593 temporarily deployed to functional-tests August 12, 2024 19:39 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Aug 12, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 1d7b4d0
Unique ID func78d7a6f729
Image tag pr-func78d7a6f729
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func78d7a6f729
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-func78d7a6f729
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func78d7a6f729
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func78d7a6f729
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded

@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from 1d7b4d0 to 3a8df14 Compare August 12, 2024 19:49
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 19:49 — with GitHub Actions Failure
@sk593 sk593 changed the title Update credential precedence Update credential precedence in bicepconfig.json Aug 12, 2024
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:00 — with GitHub Actions Failure
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.05%. Comparing base (5c10d92) to head (0f85d87).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7803      +/-   ##
==========================================
- Coverage   61.07%   61.05%   -0.03%     
==========================================
  Files         523      523              
  Lines       27446    27446              
==========================================
- Hits        16762    16756       -6     
- Misses       9204     9207       +3     
- Partials     1480     1483       +3     

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

@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from aae53b1 to e20fcec Compare August 12, 2024 20:13
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:13 — with GitHub Actions Failure
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:15 — with GitHub Actions Failure
@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from f7bef28 to 3bba88b Compare August 12, 2024 20:22
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:22 — with GitHub Actions Failure
@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from 3bba88b to f62e9cb Compare August 12, 2024 20:24
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:24 — with GitHub Actions Failure
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:28 — with GitHub Actions Failure
@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from f091c18 to f62e9cb Compare August 12, 2024 20:30
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:30 — with GitHub Actions Failure
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:34 — with GitHub Actions Failure
Signed-off-by: sk593 <[email protected]>
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 20:49 — with GitHub Actions Failure
@@ -314,6 +314,64 @@ jobs:
append: true
message: |
:hourglass: Publishing Bicep Recipes for functional tests...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving this into the build job so we make sure to upload any bicep changes before pushing recipes

@sk593 sk593 force-pushed the update-validate-bicep-workaround branch from bfabe47 to 850243a Compare August 12, 2024 20:51
@sk593 sk593 temporarily deployed to functional-tests August 12, 2024 20:52 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Aug 12, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 850243a
Unique ID func201477f47c
Image tag pr-func201477f47c
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func201477f47c
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-func201477f47c
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func201477f47c
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func201477f47c
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded

Signed-off-by: sk593 <[email protected]>
@sk593 sk593 had a problem deploying to functional-tests August 12, 2024 21:09 — with GitHub Actions Failure
@sk593 sk593 temporarily deployed to functional-tests August 12, 2024 21:21 — with GitHub Actions Inactive
Signed-off-by: sk593 <[email protected]>
@radius-functional-tests
Copy link

radius-functional-tests bot commented Aug 12, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref b2581bb
Unique ID funca238c77aa4
Image tag pr-funca238c77aa4
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funca238c77aa4
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funca238c77aa4
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funca238c77aa4
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funca238c77aa4
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded

- name: Upload Radius Bicep types artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}_radius_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.

matrix is not reachable here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@sk593 sk593 temporarily deployed to functional-tests August 12, 2024 23:10 — with GitHub Actions Inactive
Signed-off-by: sk593 <[email protected]>
run: |
bicep publish-extension ./hack/bicep-types-radius/generated/index.json --target br:${{ env.BICEP_TYPES_REGISTRY }}/test/radius:${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }} --force

- name: Generate 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.

We have of two of these in this workflow. Is this expected?

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, the files dont persist between jobs so we need it in both places. the first one is part of the workaround because we need to disable azure auth before we publish the bicep test recipes (this will eventually be removed once the auth bug is fixed) and the second is so we can test against the PR versions of the types (in the event that there are bicep changes in a PR)

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.

Do we need the step that prints out the details of the JSON file in production?

Comment on lines +53 to +54
- name: Print updated bicepconfig.json
run: cat 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.

Do we need this in production?

Copy link
Contributor Author

@sk593 sk593 Aug 12, 2024

Choose a reason for hiding this comment

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

No, this is in place of the initial workaround since there were authentication issues with the ACR even though we have anonymous pulls. The issue is that when we publish to ACR, we have to authenticate so only having "Environment" authentication removed any Azure CLI auth. Instead, we'll add the "Environment" workaround when we want to disable azure auth. Ideally, we can remove this everywhere in the repo once the bug is fixed: #7804

Copy link
Contributor

@lakshmimsft lakshmimsft left a comment

Choose a reason for hiding this comment

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

lgtm

@radius-functional-tests
Copy link

radius-functional-tests bot commented Aug 12, 2024

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 0f85d87
Unique ID funccae2049d7b
Image tag pr-funccae2049d7b
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr: 1.12.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-funccae2049d7b
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-funccae2049d7b
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funccae2049d7b
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funccae2049d7b
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded

@sk593 sk593 merged commit 255c6d8 into main Aug 13, 2024
29 of 30 checks passed
@sk593 sk593 deleted the update-validate-bicep-workaround branch August 13, 2024 00:23
superbeeny pushed a commit to superbeeny/radius that referenced this pull request Aug 14, 2024
# Description

Some workflows need Az authentication and some don't. This removes the
default az auth in workflows anytime its not needed

## 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 <[email protected]>
Reshrahim pushed a commit to Reshrahim/radius that referenced this pull request Aug 27, 2024
# Description

Some workflows need Az authentication and some don't. This removes the
default az auth in workflows anytime its not needed

## 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 <[email protected]>
Signed-off-by: Reshma Abdul Rahim <[email protected]>
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