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

Check pods are created before waiting for them to be ready during publish recipes #6914

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

vinayada1
Copy link
Contributor

@vinayada1 vinayada1 commented Dec 4, 2023

Description

This is a potential fix for the flaky test issue seen #6912
It is possible that we see error: no matching resources found because the pods are not yet created. Waiting on non-existent resources can result in this error (kubernetes/kubernetes#87352)

Adding a kubectl rollout status which will ensure the pods are created before waiting on them to become ready

Type of change

  • 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: #6912

Auto-generated summary

🤖[deprecated] Generated by Copilot at 27fbda2

Summary

🚀🧪🎨

Add feature to generate and test Terraform recipes from YAML. Fix formatting in build/recipes.mk.

We're the crew of the YAML ship, we sail the code sea
We write our files in a simple way, to make some Terraform
Heave away, me hearties, heave away with me
We'll test our recipes on the web, and fix the ./build/recipes.mk

Walkthrough

  • Add a command to check the web server status after applying Terraform configuration (link)
  • Remove a trailing whitespace from the echo command (link)

…lish recipes

Signed-off-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>
@vinayada1 vinayada1 requested review from a team as code owners December 4, 2023 20:07
@vinayada1 vinayada1 changed the title Check pods are created before waiting for them to be ready during pub… Check pods are created before waiting for them to be ready during publish recipes Dec 4, 2023
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 4, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository test-org-admin/radius-main
Commit ref 27fbda2
Unique ID 2908cc043a
Image tag pr-2908cc043a
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-2908cc043a
  • 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-2908cc043a
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-2908cc043a
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-2908cc043a
  • 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 kubernetes functional tests...
⌛ Starting samples functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
✅ ucp functional tests succeeded
✅ samples functional tests succeeded
✅ kubernetes functional tests succeeded
✅ msgrp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ daprrp functional tests succeeded
✅ shared functional tests succeeded

build/recipes.mk Outdated Show resolved Hide resolved
@vinayada1 vinayada1 force-pushed the publish-failure branch 2 times, most recently from 35bd9fb to cebfc27 Compare December 4, 2023 22:27
Signed-off-by: vinayada1 <28875764+vinayada1@users.noreply.github.com>
@radius-functional-tests
Copy link

radius-functional-tests bot commented Dec 4, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository test-org-admin/radius-main
Commit ref 94f93f8
Unique ID 5fc6f5e4e0
Image tag pr-5fc6f5e4e0
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-5fc6f5e4e0
  • 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-5fc6f5e4e0
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-5fc6f5e4e0
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-5fc6f5e4e0
  • 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 kubernetes functional tests...
⌛ Starting datastoresrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting ucp functional tests...
✅ ucp functional tests succeeded
✅ msgrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ samples functional tests succeeded
✅ daprrp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ shared functional tests succeeded

@lakshmimsft lakshmimsft merged commit 5cc9882 into radius-project:main Dec 5, 2023
16 checks passed
Copy link
Contributor

@kachawla kachawla left a comment

Choose a reason for hiding this comment

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

:shipit:

mauriciovasquezbernal added a commit to inspektor-gadget/inspektor-gadget that referenced this pull request Feb 12, 2024
Tests on ARO were failing with: "error: no matching resources found",
this because it's not possible to watch a resource that hasn't been
created.

See kubernetes/kubernetes#83094 & radius-project/radius#6914

Fixes: 4e1bb64 ("integration: Disable installing Security Profile Operator")

Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
mauriciovasquezbernal added a commit to inspektor-gadget/inspektor-gadget that referenced this pull request Feb 12, 2024
Tests on ARO were failing with: "error: no matching resources found",
this because it's not possible to watch a resource that hasn't been
created.

See kubernetes/kubernetes#87352 & radius-project/radius#6914

Fixes: 4e1bb64 ("integration: Disable installing Security Profile Operator")

Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
mauriciovasquezbernal added a commit to inspektor-gadget/inspektor-gadget that referenced this pull request Feb 13, 2024
Tests eere failing on ARO because of different reasons:
- In order to mount host path volumes, it's needed to use a different
service account.
- The "no matching resources found" error was because it's not possible
to watch a resource that hasn't been
created. See kubernetes/kubernetes#87352

This commit fixes the previous one by:
- Defining a different service account to be able to mount hostpath volumes
- Use kubectl rollout instead of kubectl wait as done in radius-project/radius#6914

This also updates the logic to remove the installed seccomp profile
from the host.

Fixes: 4e1bb64 ("integration: Disable installing Security Profile Operator")

Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
mauriciovasquezbernal added a commit to inspektor-gadget/inspektor-gadget that referenced this pull request Feb 13, 2024
Tests eere failing on ARO because of different reasons:
- In order to mount host path volumes, it's needed to use a different
service account.
- The "no matching resources found" error was because it's not possible
to watch a resource that hasn't been
created. See kubernetes/kubernetes#87352

This commit fixes the previous one by:
- Defining a different service account to be able to mount hostpath volumes
- Use kubectl rollout instead of kubectl wait as done in radius-project/radius#6914

This also updates the logic to remove the installed seccomp profile
from the host.

Fixes: 4e1bb64 ("integration: Disable installing Security Profile Operator")

Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
mauriciovasquezbernal added a commit to inspektor-gadget/inspektor-gadget that referenced this pull request Feb 13, 2024
Tests are failing on ARO because of different reasons:
- In order to mount host path volumes, it's needed to use a different
service account.
- The "no matching resources found" error was because it's not possible
to watch a resource that hasn't been
created. See kubernetes/kubernetes#87352

This commit fixes the previous one by:
- Defining a different service account to be able to mount hostpath volumes
- Use kubectl rollout instead of kubectl wait as done in radius-project/radius#6914

This also updates the logic to remove the installed seccomp profile
from the host.

Fixes: 4e1bb64 ("integration: Disable installing Security Profile Operator")

Signed-off-by: Mauricio Vásquez <mauriciov@microsoft.com>
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: Publish terraform recipes failed with error: no matching resources found
5 participants