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

Migrate to GHCR #6478

Merged
merged 21 commits into from
Oct 17, 2023
Merged

Migrate to GHCR #6478

merged 21 commits into from
Oct 17, 2023

Conversation

willdavsmith
Copy link
Contributor

@willdavsmith willdavsmith commented Oct 14, 2023

Description

  • Replace radius.azurecr.io with ghcr.io/radius-project
  • Replace radiusdev.azurecr.io with ghcr.io/radius-project/dev
  • Add step to publish latest rad CLI to ghcr.io
  • Refactoring Build and Test GH workflow to improve clarity
  • Removing ACR publishes and pulls from GH workflows
  • Removing instances of azurecr.io and ACR from our docs

Type of change

  • This pull request adds or changes features of Radius and has an approved issue (issue link required).

Fixes: #6362
Fixes: #6295

Auto-generated summary

🤖 Generated by Copilot at 787b494

Summary

🔄🛠️🧪

This pull request updates the GitHub workflows to use GHCR as the new registry for radius artifacts. It changes the build.yaml workflow to use new tools and commands for building and pushing the rad CLI, the radius images, and the radius helm chart to GHCR. It also changes the functional-test.yaml workflow to use GHCR for bicep recipes instead of ACR.

We're sailing on the GitHub seas, with rad and radius tools
We've changed our registry, to GHCR from ACR
So heave away, me hearties, heave away with oras and buildx
And don't forget to push the helm chart, with the registry plugin

Walkthrough

  • Remove GOPROXY and DOCKER_REGISTRY environment variables and add ORAS_VERSION and IMAGE_SRC environment variables to support ORAS CLI for pushing rad CLI binaries to GHCR (link)
  • Rename build job to build-and-push-cli and add build-and-push-images job to build and push radius container images to GHCR using Docker Buildx (link)
  • Remove images job and add publish_images job to build and push rad CLI binaries to GHCR using ORAS CLI for different platforms and architectures (link)
  • Rename helm job to build-and-push-helm-chart and use Helm Registry plugin to push radius helm chart to GHCR (link)
  • Rename publish_release job to publish-release and change needs condition to depend on build-and-push-cli job (link)
  • Remove publish job and update delete_artifacts job to depend on build-and-push-cli job (link)
  • Change BICEP_RECIPE_REGISTRY environment variable to use GHCR instead of ACR for bicep recipes in .github/workflows/functional-test.yaml (link)
  • Add comment to indicate that az acr login command needs to be changed to use GHCR in .github/workflows/functional-test.yaml (link)
  • Remove az acr login command from .github/workflows/functional-test.yaml as it is no longer needed (link)

@willdavsmith willdavsmith requested review from a team as code owners October 14, 2023 01:37
@github-actions
Copy link

github-actions bot commented Oct 14, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID c276f35a01
Image tag pr-c276f35a01
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-c276f35a01
  • 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-c276f35a01
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-c276f35a01
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-c276f35a01
  • deployment-engine test image location: radius.azurecr.io/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

@github-actions
Copy link

github-actions bot commented Oct 14, 2023

Test Results

3 022 tests  +4   3 010 ✔️ +1   2m 50s ⏱️ -9s
   256 suites ±0        12 💤 +3 
       1 files   ±0          0 ±0 

Results for commit 44762b7. ± Comparison against base commit d0f928e.

This pull request removes 2 and adds 6 tests. Note that renamed tests count towards both.
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/10fc2dbc-0746-4ae0-9d7f-243daac0f670
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/10fc2dbc-0746-4ae0-9d7f-243daac0f670#01
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/16ae86ae-7694-48b2-bab0-b18383f28585
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/16ae86ae-7694-48b2-bab0-b18383f28585#01
github.com/radius-project/radius/pkg/cli/cmd/radinit ‑ Test_isDevRepository
github.com/radius-project/radius/pkg/cli/cmd/radinit ‑ Test_isDevRepository/Dev_Repository
github.com/radius-project/radius/pkg/cli/cmd/radinit ‑ Test_isDevRepository/Prod_Repository
github.com/radius-project/radius/pkg/cli/cmd/radinit ‑ Test_processRepositories/Valid_Prod_and_Dev_Repositories_with_Redis_Cache,_Mongo_Database
This pull request skips 3 tests.
github.com/radius-project/radius/pkg/recipes/driver ‑ Test_Bicep_Execute_SimulatedEnvironment
github.com/radius-project/radius/pkg/recipes/driver ‑ Test_Bicep_GetRecipeMetadata_Error
github.com/radius-project/radius/pkg/recipes/driver ‑ Test_Bicep_GetRecipeMetadata_Success

♻️ This comment has been updated with latest results.

@github-actions
Copy link

65.6

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.6 %
  • main branch coverage: 65.6 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

uses: docker/setup-buildx-action@v2
registry: ghcr.io
username: ${{ env.GHCR_ACTOR }}
password: ${{ secrets.GH_RAD_CI_BOT_PAT }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of CI_BOT can we use the normal actions token instead?

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID fb1e2e583e
Image tag pr-fb1e2e583e
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-fb1e2e583e
  • 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-fb1e2e583e
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-fb1e2e583e
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-fb1e2e583e
  • 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
⌛ Starting ucp functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting daprrp functional tests...
❌ Failed to install Radius for ucp functional test. Please check the logs for more details
❌ ucp functional test failed. Please check the logs for more details
❌ Failed to install Radius for msgrp functional test. Please check the logs for more details
❌ msgrp functional test failed. Please check the logs for more details
❌ shared functional test failed. Please check the logs for more details
❌ Failed to install Radius for samples functional test. Please check the logs for more details
❌ samples functional test failed. Please check the logs for more details

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID e764cf6deb
Image tag pr-e764cf6deb
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-e764cf6deb
  • 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-e764cf6deb
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-e764cf6deb
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-e764cf6deb
  • 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
⌛ Starting ucp functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting samples functional tests...
❌ Failed to install Radius for ucp functional test. Please check the logs for more details
❌ ucp functional test failed. Please check the logs for more details
❌ Failed to install Radius for shared functional test. Please check the logs for more details
❌ shared functional test failed. Please check the logs for more details
❌ Failed to install Radius for msgrp functional test. Please check the logs for more details
❌ msgrp functional test failed. Please check the logs for more details
❌ Failed to install Radius for daprrp functional test. Please check the logs for more details
❌ daprrp functional test failed. Please check the logs for more details

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID d67e4dc4c6
Image tag pr-d67e4dc4c6
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-d67e4dc4c6
  • 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-d67e4dc4c6
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-d67e4dc4c6
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-d67e4dc4c6
  • 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
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting ucp functional tests...
❌ Failed to install Radius for samples functional test. Please check the logs for more details
❌ samples functional test failed. Please check the logs for more details
❌ shared functional test failed. Please check the logs for more details
❌ Failed to install Radius for daprrp functional test. Please check the logs for more details
❌ msgrp functional test failed. Please check the logs for more details

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID c8720f5d65
Image tag pr-c8720f5d65
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-c8720f5d65
  • 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-c8720f5d65
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-c8720f5d65
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-c8720f5d65
  • 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
⌛ Starting msgrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting ucp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
❌ samples functional test failed. Please check the logs for more details
❌ msgrp functional test failed. Please check the logs for more details

@willdavsmith willdavsmith changed the title [WIP/ Do not review] Migrate to GHCR Migrate to GHCR Oct 16, 2023
@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 2b4566cd56
Image tag pr-2b4566cd56
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-2b4566cd56
  • 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-2b4566cd56
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-2b4566cd56
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-2b4566cd56
  • 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
⌛ Starting daprrp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting samples functional tests...
✅ ucp functional tests succeeded
❌ daprrp functional test failed. Please check the logs for more details
❌ samples functional test failed. Please check the logs for more details

@@ -73,7 +73,7 @@ func (drc *devRecipeClient) GetDevRecipes(ctx context.Context) (map[string]map[s
recipes := map[string]map[string]corerp.RecipePropertiesClassification{}

// if repository has the correct path it should look like: <registryPath>/recipes/<category>/<type>:<tag>
// Ex: radius.azurecr.io/recipes/local-dev/rediscaches:0.20
// Ex: ghcr.io/radius-project/recipes/local-dev/rediscaches:0.20
Copy link
Contributor

Choose a reason for hiding this comment

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

Our prod registry is ghcr.io/radius-project and dev is ghcr.io/radius-project/dev, right? This logic checks everything under the DevRecipeRegistry (which is defined above) and goes through all the repos underneath that registry. If under ghcr.io/radius-project/dev we have recipes, they might get installed in the env too. The logic here should be very well tested with the new registry.

Another thing is that the logic here takes radius-rp as the starting point (see line 78). Was that repo also moved to ghcr? Were everything from azurecr moved to ghcr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yetkin and I updated this logic. should be good now

@github-actions
Copy link

65.4

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.4 %
  • main branch coverage: 65.6 %
  • diff coverage: -.2 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 2b78dc697d
Image tag pr-2b78dc697d
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-2b78dc697d
  • 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-2b78dc697d
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-2b78dc697d
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-2b78dc697d
  • 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
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting ucp functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting samples functional tests...
✅ ucp functional tests succeeded
❌ daprrp functional test failed. Please check the logs for more details

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 85d62fbf8f
Image tag pr-85d62fbf8f
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-85d62fbf8f
  • 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-85d62fbf8f
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-85d62fbf8f
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-85d62fbf8f
  • 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

@github-actions
Copy link

65.4

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.4 %
  • main branch coverage: 65.6 %
  • diff coverage: -.2 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 8bc47c1675
Image tag pr-8bc47c1675
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-8bc47c1675
  • 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-8bc47c1675
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-8bc47c1675
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-8bc47c1675
  • 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

@github-actions
Copy link

65.4

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.4 %
  • main branch coverage: 65.6 %
  • diff coverage: -.2 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 444e65ca61
Image tag pr-444e65ca61
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-444e65ca61
  • 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-444e65ca61
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-444e65ca61
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-444e65ca61
  • 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

@github-actions
Copy link

65.4

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.4 %
  • main branch coverage: 65.6 %
  • diff coverage: -.2 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 8e86b5ed7a
Image tag pr-8e86b5ed7a
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-8e86b5ed7a
  • 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-8e86b5ed7a
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-8e86b5ed7a
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-8e86b5ed7a
  • 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
⌛ Starting msgrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting datastoresrp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ msgrp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 5c926425c7
Image tag pr-5c926425c7
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-5c926425c7
  • 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-5c926425c7
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-5c926425c7
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-5c926425c7
  • 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
⌛ Starting shared functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting datastoresrp functional tests...
✅ msgrp functional tests succeeded
✅ ucp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 84200417a0
Image tag pr-84200417a0
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-84200417a0
  • 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-84200417a0
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-84200417a0
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-84200417a0
  • 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
⌛ Starting daprrp functional tests...
⌛ Starting datastoresrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting samples functional tests...
✅ datastoresrp functional tests succeeded
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@@ -69,5 +65,5 @@ do

echo "Publishing $RECIPE to $PUBLISH_REF"
echo "- $PUBLISH_REF" >> $GITHUB_STEP_SUMMARY
$BICEP_EXECUTABLE publish $RECIPE --target "br:$PUBLISH_REF"
rad bicep publish --file $RECIPE --target "br:$PUBLISH_REF"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

using the bicep executable directly did not seem to work with GHCR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep this known behavior. The Bicep executable and our fork can only talk to ACR. We had to bring in the ability to talk to any OCI registry to the rad CLI directly.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID a684427084
Image tag pr-a684427084
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-a684427084
  • 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-a684427084
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-a684427084
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-a684427084
  • 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
⌛ Starting datastoresrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting ucp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting msgrp functional tests...
✅ datastoresrp functional tests succeeded
✅ ucp functional tests succeeded
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ daprrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ shared functional tests succeeded

pull_request:
branches:
- main
# pull_request:
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 disabled this on PR because it takes > an hour. It will still run as scheduled.

Copy link
Contributor

Choose a reason for hiding this comment

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

This only runs the there are changes to the actual workflow file. Please create an issue to re-enable 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.

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 9d47a92ce0
Image tag pr-9d47a92ce0
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-9d47a92ce0
  • 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-9d47a92ce0
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-9d47a92ce0
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-9d47a92ce0
  • 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
⌛ Starting msgrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting shared functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting samples functional tests...
⌛ Starting datastoresrp functional tests...
⌛ Starting daprrp functional tests...
✅ ucp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ kubernetes functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

@github-actions
Copy link

You are editing files which require a docs update. Please ensure you've made the appropriate changes to the docs and submitted a PR.

  • Swagger changes require reference edge docs to be updated here
  • Make sure to create a branch and submit a PR into the edge branch instead of the default latest branch, as the swagger changes will not be available until the next release.

For more information on contributing to docs please visit https://docs.radapp.dev/contributing/docs/.

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref refs/pull/6478/merge
Unique ID 172648bfd3
Image tag pr-172648bfd3
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-172648bfd3
  • 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-172648bfd3
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-172648bfd3
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-172648bfd3
  • 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
⌛ Starting datastoresrp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting ucp functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting samples functional tests...
✅ datastoresrp functional tests succeeded
✅ ucp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

@github-actions
Copy link

65.3

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.3 %
  • main branch coverage: 65.6 %
  • diff coverage: -.3 %

The coverage result does not include the functional test coverage.

@willdavsmith willdavsmith merged commit a197131 into main Oct 17, 2023
26 checks passed
@willdavsmith willdavsmith deleted the willdavsmith/ghcr branch October 17, 2023 21:56
sk593 pushed a commit that referenced this pull request Oct 18, 2023
* Replace `radius.azurecr.io` with `ghcr.io/radius-project`
* Replace `radiusdev.azurecr.io` with `ghcr.io/radius-project/dev`
* Add step to publish latest rad CLI to `ghcr.io`
* Refactoring `Build and Test` GH workflow to improve clarity
* Removing ACR publishes and pulls from GH workflows
* Removing instances of azurecr.io and ACR from our docs

<!--

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 adds or changes features of Radius and has an
approved issue (issue link required).

<!--

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

-->

Fixes: #6362
Fixes: #6295

<!--
GitHub Copilot for docs will auto-generate a summary of the PR
-->

<!--
copilot:all
-->

🔄🛠️🧪

<!--
1. 🔄 - This emoji represents the change of registry from ACR to GHCR,
which is a significant change that affects how the artifacts are stored
and accessed.
2. 🛠️ - This emoji represents the update of the tools and commands used
to build and push the artifacts, such as ORAS CLI, Docker Buildx, and
Helm Registry plugin, which are different from the previous ones and may
require some adjustments or documentation.
3. 🧪 - This emoji represents the update of the functional-test workflow,
which is related to testing the quality and functionality of the
artifacts and the bicep recipes.
-->
This pull request updates the GitHub workflows to use GHCR as the new
registry for radius artifacts. It changes the build.yaml workflow to use
new tools and commands for building and pushing the rad CLI, the radius
images, and the radius helm chart to GHCR. It also changes the
functional-test.yaml workflow to use GHCR for bicep recipes instead of
ACR.

> _We're sailing on the GitHub seas, with rad and radius tools_
> _We've changed our registry, to GHCR from ACR_
> _So heave away, me hearties, heave away with `oras` and `buildx`_
> _And don't forget to push the helm chart, with the registry plugin_

* Remove `GOPROXY` and `DOCKER_REGISTRY` environment variables and add
`ORAS_VERSION` and `IMAGE_SRC` environment variables to support ORAS CLI
for pushing rad CLI binaries to GHCR
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L39-R42))
* Rename `build` job to `build-and-push-cli` and add
`build-and-push-images` job to build and push radius container images to
GHCR using Docker Buildx
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L57-R59))
* Remove `images` job and add `publish_images` job to build and push rad
CLI binaries to GHCR using ORAS CLI for different platforms and
architectures
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L207-R226))
* Rename `helm` job to `build-and-push-helm-chart` and use Helm Registry
plugin to push radius helm chart to GHCR
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L312-R277))
* Rename `publish_release` job to `publish-release` and change `needs`
condition to depend on `build-and-push-cli` job
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L353-R319))
* Remove `publish` job and update `delete_artifacts` job to depend on
`build-and-push-cli` job
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1L391-R359))
* Change `BICEP_RECIPE_REGISTRY` environment variable to use GHCR
instead of ACR for bicep recipes in
`.github/workflows/functional-test.yaml`
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-c79f364a9293abaaa8595776b74674e24bec6287834e63ab8aa7aec6a42f0dbcL56-R56))
* Add comment to indicate that `az acr login` command needs to be
changed to use GHCR in `.github/workflows/functional-test.yaml`
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-c79f364a9293abaaa8595776b74674e24bec6287834e63ab8aa7aec6a42f0dbcR81))
* Remove `az acr login` command from
`.github/workflows/functional-test.yaml` as it is no longer needed
([link](https://github.com/radius-project/radius/pull/6478/files?diff=unified&w=0#diff-c79f364a9293abaaa8595776b74674e24bec6287834e63ab8aa7aec6a42f0dbcL486-L488))

---------

Co-authored-by: ytimocin <[email protected]>
(cherry picked from commit a197131)
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.

Migrate ghcr.io when we open source Store edge version rad cli and bicep binary in GHCR
7 participants