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

Restore bicep artifacts before starting tests #8283

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

sk593
Copy link
Contributor

@sk593 sk593 commented Jan 23, 2025

Description

This change restores Bicep artifacts before running any tests. This will avoid any restoration errors while the tests are running as seen in #8184

Type of change

  • This pull request fixes a bug in Radius and has an approved issue Flaky test: Failed to restore AWS bicep artifact  #8184
  • 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: #8184

Contributor checklist

Please verify that the PR meets the following requirements, where applicable:

  • An overview of proposed schema changes is included in a linked GitHub issue.
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
  • If applicable, design document has been reviewed and approved by Radius maintainers/approvers.
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.
  • [ ]

@sk593 sk593 requested review from a team as code owners January 23, 2025 17:49
@sk593 sk593 requested a deployment to functional-tests January 23, 2025 17:49 — with GitHub Actions Waiting
Copy link

github-actions bot commented Jan 23, 2025

Unit Tests

3 552 tests   3 548 ✅  5m 21s ⏱️
  292 suites      4 💤
    1 files        0 ❌

Results for commit a000290.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.83%. Comparing base (7797bb0) to head (a000290).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8283      +/-   ##
==========================================
+ Coverage   59.81%   59.83%   +0.01%     
==========================================
  Files         590      590              
  Lines       39513    39513              
==========================================
+ Hits        23636    23642       +6     
+ Misses      14116    14112       -4     
+ Partials     1761     1759       -2     

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

Copy link
Member

@brooke-hamilton brooke-hamilton left a comment

Choose a reason for hiding this comment

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

I tested this locally - 🚀 🛰️

Signed-off-by: sk593 <[email protected]>
Signed-off-by: sk593 <[email protected]>
@sk593 sk593 requested a deployment to functional-tests January 23, 2025 23:50 — with GitHub Actions Waiting
Signed-off-by: sk593 <[email protected]>
@sk593 sk593 temporarily deployed to functional-tests January 23, 2025 23:51 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Jan 23, 2025

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref e2a499b
Unique ID func3738baaafb
Image tag pr-func3738baaafb
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func3738baaafb
  • 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-func3738baaafb
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func3738baaafb
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func3738baaafb
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func3738baaafb
  • 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-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

Comment on lines 763 to 766
# Restore Radius Bicep types
bicep build ./test/functional-portable/corerp/cloud/resources/testdata/corerp-azure-connection-database-service.bicep
# Restore AWS Bicep types
bicep build ./test/functional-portable/corerp/cloud/resources/testdata/aws-s3-bucket.bicep
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the tests need the files generated by these two commands to be able to run successfully? If so, should we add those files to the repository itself?

I think that to be able to run these tests locally, this is also something we need to run. Is that right?

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, they're not needed. They're an output of the build command but we're more interested in the artifacts being restored in this step.

Yes to the second question. The bicep build command gets run when we deploy bicep templates. bicep build automatically restores the artifacts which might be why we've been seeing flaky restoration failures. This change is added so the bicep artifacts are restored before the tests start and bicep build is run

@sk593 sk593 temporarily deployed to functional-tests January 24, 2025 18:01 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Jan 24, 2025

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 0255e45
Unique ID func653d6c07ac
Image tag pr-func653d6c07ac
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func653d6c07ac
  • 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-func653d6c07ac
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func653d6c07ac
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func653d6c07ac
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func653d6c07ac
  • 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-cloud functional tests...
⌛ Starting corerp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

Signed-off-by: sk593 <[email protected]>
@sk593 sk593 requested a deployment to functional-tests January 24, 2025 18:56 — with GitHub Actions Waiting
Signed-off-by: sk593 <[email protected]>
Signed-off-by: sk593 <[email protected]>
@sk593 sk593 temporarily deployed to functional-tests January 24, 2025 19:20 — with GitHub Actions Inactive
@radius-functional-tests
Copy link

radius-functional-tests bot commented Jan 24, 2025

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref a000290
Unique ID func0d0ae104c8
Image tag pr-func0d0ae104c8
Click here to see the list of tools in the current test run
  • gotestsum 1.12.0
  • KinD: v0.20.0
  • Dapr:
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/testrecipes/test-bicep-recipes/<name>:pr-func0d0ae104c8
  • 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-func0d0ae104c8
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func0d0ae104c8
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func0d0ae104c8
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func0d0ae104c8
  • 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 corerp-cloud functional tests...
⌛ Starting ucp-cloud functional tests...
✅ ucp-cloud functional tests succeeded
✅ corerp-cloud functional tests succeeded

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.

Flaky test: Failed to restore AWS bicep artifact
3 participants