Skip to content

Various fixes for long-running tests - #8680

Merged
willdavsmith merged 7 commits into
radius-project:mainfrom
willdavsmith:fix-lrt-22625
May 13, 2025
Merged

willdavsmith merged 7 commits into
radius-project:mainfrom
willdavsmith:fix-lrt-22625

Conversation

@willdavsmith

@willdavsmith willdavsmith commented Feb 26, 2025 •

Copy link
Copy Markdown
Contributor

Description

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

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.
    • Yes
    • Not applicable
  • A design document PR is created in the design-notes repository, if new APIs are being introduced.
    • Yes
    • Not applicable
  • The design document has been reviewed and approved by Radius maintainers/approvers.
    • Yes
    • Not applicable
  • A PR for the samples repository is created, if existing samples are affected by the changes in this PR.
    • Yes
    • Not applicable
  • A PR for the documentation repository is created, if the changes in this PR affect the documentation or any user facing updates are made.
    • Yes
    • Not applicable
  • A PR for the recipes repository is created, if existing recipes are affected by the changes in this PR.
    • Yes
    • Not applicable

Signed-off-by: willdavsmith <willdavsmith@gmail.com>
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
lakshmimsft
lakshmimsft previously approved these changes Feb 26, 2025
@codecov

codecov Bot commented Feb 26, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.94%. Comparing base (fdc5877) to head (9e30547).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8680      +/-   ##
==========================================
- Coverage   55.95%   55.94%   -0.01%     
==========================================
  Files         604      604              
  Lines       41466    41466              
==========================================
- Hits        23203    23199       -4     
- Misses      16492    16495       +3     
- Partials     1771     1772       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sk593
sk593 previously approved these changes Feb 26, 2025
@radius-functional-tests

radius-functional-tests Bot commented Feb 26, 2025 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository willdavsmith/radius
Commit ref 5d176de
Unique ID funca7508d9228
Image tag pr-funca7508d9228
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-funca7508d9228
  • 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-funca7508d9228
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-funca7508d9228
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-funca7508d9228
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-funca7508d9228
  • 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...
✅ corerp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded

@kachawla kachawla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Have we spent time investigating it before marking it skipped? If we are skipping the test, can you make sure that a task to unskip it is created and assigned as well?

Signed-off-by: willdavsmith <willdavsmith@gmail.com>
Signed-off-by: willdavsmith <willdavsmith@gmail.com>
@willdavsmith willdavsmith changed the title Skipping failing test: Test_TerraformRecipe_KubernetesPostgres Various fixes for long-running tests Mar 1, 2025

# Delete all test namespaces.
echo "delete all test namespaces"
namespaces=$(kubectl get namespace |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

IMO this system is too complicated. Instead I think it's better to specify the namespaces we want to keep and delete everything else. Looks like there's already been some discussion about this: #7966

name: aksClusterName
location: location
kubernetesVersion: '1.28.5'
kubernetesVersion: '1.31.5'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was unable to run this bicep deployment locally because of the outdated kubernetes version. This should make sure that next time we create a long-running test cluster we won't hit this issue.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is a better option to query for the latest version and use that? I'm concerned about this becoming stale and having to think about updating this manually

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I created #8901 to track version numbers for tools and platforms.

@kachawla kachawla Mar 24, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 for @nicolejms' suggestion. @willdavsmith we don't know when this bicep will be used next time to recreate the LRT cluster again, so making this update might not be very useful since it’s likely that this version will be outdated by the time it’s needed. Any thoughts on how you can make it fetch the latest version instead of hardcoding?

@brooke-hamilton brooke-hamilton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤖

@brooke-hamilton

Copy link
Copy Markdown
Member

Have we spent time investigating it before marking it skipped? If we are skipping the test, can you make sure that a task to unskip it is created and assigned as well?

@willdavsmith, @kachawla, the skipped test referenced in this comment was reverted. Is this PR ready to approve?

@radius-functional-tests

radius-functional-tests Bot commented Mar 20, 2025 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository willdavsmith/radius
Commit ref 165bba7
Unique ID func0ee6fc436a
Image tag pr-func0ee6fc436a
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-func0ee6fc436a
  • 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-func0ee6fc436a
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func0ee6fc436a
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func0ee6fc436a
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func0ee6fc436a
  • 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...
✅ corerp-cloud functional tests succeeded
✅ ucp-cloud functional tests succeeded

@kachawla

Copy link
Copy Markdown
Member

Have we spent time investigating it before marking it skipped? If we are skipping the test, can you make sure that a task to unskip it is created and assigned as well?

@willdavsmith, @kachawla, the skipped test referenced in this comment was reverted. Is this PR ready to approve?

I wasn't aware that this PR was entirely repurposed for something else. @willdavsmith - please respond to PR comments for heads up on such changes.

@brooke-hamilton - I won't be able to get to this PR today, but if it looks good then feel free to go ahead. The changes I had requested were on an older version of the PR, so you can dismiss that.

@kachawla
kachawla dismissed their stale review March 24, 2025 17:10

The PR has changed since I reviewed it.

@radius-functional-tests

radius-functional-tests Bot commented May 13, 2025 •

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Name Value
Repository willdavsmith/radius
Commit ref 9e30547
Unique ID func13d4a13d62
Image tag pr-func13d4a13d62
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-func13d4a13d62
  • 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-func13d4a13d62
  • dynamic-rp test image location: ghcr.io/radius-project/dev/dynamic-rp:pr-func13d4a13d62
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-func13d4a13d62
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-func13d4a13d62
  • 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

@willdavsmith
willdavsmith merged commit 6b7aa81 into radius-project:main May 13, 2025
@kachawla kachawla mentioned this pull request May 16, 2025
6 of 12 tasks

This branch was previously deployed

2 inactive deployments
functional-tests — 9e30547a Deployed May 13, 2025 by willdavsmith
publish-bicep — 9e30547a Deployed May 13, 2025 by willdavsmith
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.

7 participants