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

Doing some updates to the magpie #6925

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Doing some updates to the magpie #6925

merged 2 commits into from
Dec 7, 2023

Conversation

ytimocin
Copy link
Contributor

@ytimocin ytimocin commented Dec 6, 2023

Description

Opened this PR not from the fork because there are some actions that I would like to test and can't be triggered from a fork.

  1. Updating some packages
  2. Changing the way we append string to an array
  3. Adding missing context

Type of change

Auto-generated summary

🤖[deprecated] Generated by Copilot at db8fccb

Summary

🐰📦🚀

Updated the magpiego bindings for RabbitMQ and servicebus to use context and improve performance and readability. Also upgraded some dependencies in go.mod to use the latest versions.

Oh we're the magpiego crew and we know what to do
We import the context and we update the go.mod
We heave away and haul away with RabbitMQ
And we make the servicebus go faster and smoother too

Walkthrough

  • Import context package and use context.Background() to create a context for RabbitMQ operations (link, link)
  • Simplify message body conversion to string in GetMessage function for RabbitMQ binding (link)
  • Remove unused fmt package from servicebus.go file (link)
  • Update go.mod file to use latest versions of mongo-driver, compress, crypto, and text packages (link, link, link)

@ytimocin ytimocin requested review from a team as code owners December 6, 2023 19:53
@ytimocin ytimocin force-pushed the ytimocin/magpieUpdates branch from db8fccb to 49f9c7f Compare December 6, 2023 19:54
@ytimocin ytimocin temporarily deployed to functional-tests December 6, 2023 19:54 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 6, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 49f9c7f
Unique ID 5591595fad
Image tag pr-5591595fad
Click here to see the list of tools in the current test run
  • gotestsum 1.10.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/functional/shared/recipes/<name>:pr-5591595fad
  • 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-5591595fad
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-5591595fad
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-5591595fad
  • 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 samples functional tests...
⌛ Starting shared functional tests...
⌛ Starting datastoresrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting daprrp functional tests...
✅ ucp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ msgrp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

Copy link

github-actions bot commented Dec 6, 2023

Test Results

3 002 tests  ±0   2 992 ✔️ ±0   3m 11s ⏱️ ±0s
   257 suites ±0        10 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit 00fd2d1. ± Comparison against base commit 1de017a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 6, 2023

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.4 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

kachawla
kachawla previously approved these changes Dec 6, 2023
Comment on lines +53 to 55
ctx := context.Background()
err = ch.PublishWithContext(
ctx,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is weird that ctx wasn't defined before.. how was it compiling?

Copy link
Contributor

Choose a reason for hiding this comment

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

Super wierd! Is this a global variable defined somewhere? If that's the case we should clean it 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.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should fix that. Doesn't have to be this PR.

Storing a context in a global variable like that is going to lead to a lot more confusion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed it in this PR

@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 6, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref ad69f5c
Unique ID 3a59bc6d98
Image tag pr-3a59bc6d98
Click here to see the list of tools in the current test run
  • gotestsum 1.10.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/functional/shared/recipes/<name>:pr-3a59bc6d98
  • 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-3a59bc6d98
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-3a59bc6d98
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-3a59bc6d98
  • 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 samples functional tests...
⌛ Starting ucp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting datastoresrp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting shared functional tests...
✅ ucp functional tests succeeded
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ kubernetes functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

Copy link

github-actions bot commented Dec 6, 2023

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.4 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

kachawla
kachawla previously approved these changes Dec 6, 2023
@ytimocin ytimocin force-pushed the ytimocin/magpieUpdates branch from ad69f5c to 82af438 Compare December 7, 2023 01:42
@ytimocin ytimocin temporarily deployed to functional-tests December 7, 2023 01:42 — with GitHub Actions Inactive
Copy link

github-actions bot commented Dec 7, 2023

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.4 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 7, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 82af438
Unique ID 53fadf6007
Image tag pr-53fadf6007
Click here to see the list of tools in the current test run
  • gotestsum 1.10.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/functional/shared/recipes/<name>:pr-53fadf6007
  • 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-53fadf6007
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-53fadf6007
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-53fadf6007
  • 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 ucp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting samples functional tests...
⌛ Starting kubernetes functional tests...
✅ ucp functional tests succeeded
✅ msgrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ samples functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upgrading all modules to keep things up-to-date

@ytimocin ytimocin requested review from rynowak and kachawla December 7, 2023 18:31
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 7, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref c72b0ac
Unique ID 743d790e09
Image tag pr-743d790e09
Click here to see the list of tools in the current test run
  • gotestsum 1.10.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/functional/shared/recipes/<name>:pr-743d790e09
  • 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-743d790e09
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-743d790e09
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-743d790e09
  • 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 datastoresrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting daprrp functional tests...
✅ ucp functional tests succeeded
⌛ Starting shared functional tests...
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ kubernetes functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

Copy link
Contributor

@rynowak rynowak left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for doing the cleanup.

Copy link

github-actions bot commented Dec 7, 2023

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.4 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@ytimocin ytimocin force-pushed the ytimocin/magpieUpdates branch from c72b0ac to 467d4f1 Compare December 7, 2023 19:31
@ytimocin ytimocin temporarily deployed to functional-tests December 7, 2023 19:31 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 7, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 467d4f1
Unique ID 7086d65e79
Image tag pr-7086d65e79
Click here to see the list of tools in the current test run
  • gotestsum 1.10.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/functional/shared/recipes/<name>:pr-7086d65e79
  • 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-7086d65e79
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-7086d65e79
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-7086d65e79
  • 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 datastoresrp functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting samples functional tests...
✅ ucp functional tests succeeded
✅ msgrp functional tests succeeded
✅ samples functional tests succeeded
✅ kubernetes functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

Copy link

github-actions bot commented Dec 7, 2023

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.4 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@ytimocin ytimocin force-pushed the ytimocin/magpieUpdates branch from 467d4f1 to 00fd2d1 Compare December 7, 2023 22:49
@ytimocin ytimocin temporarily deployed to functional-tests December 7, 2023 22:50 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 7, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 00fd2d1
Unique ID 32715182ce
Image tag pr-32715182ce
Click here to see the list of tools in the current test run
  • gotestsum 1.10.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/functional/shared/recipes/<name>:pr-32715182ce
  • 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-32715182ce
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-32715182ce
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-32715182ce
  • 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 samples functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting ucp functional tests...
⌛ Starting kubernetes functional tests...
✅ ucp functional tests succeeded
✅ samples functional tests succeeded
✅ msgrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

Copy link

github-actions bot commented Dec 7, 2023

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.4 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@ytimocin ytimocin merged commit fb0fe3c into main Dec 7, 2023
19 checks passed
@ytimocin ytimocin deleted the ytimocin/magpieUpdates branch December 7, 2023 23:04
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.

Upgrade modules in magpie and do a cleanup
3 participants