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

Update Test Samples Workflow - Set up Test EKS Cluster for Dapr #2013

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

kachawla
Copy link
Contributor

This change updated Radius installation to always install Dapr, which is causing failures in eshop-aws workflow which runs on EKS cluster, as the cluster is lacking the required prerequisites for Dapr through the approach taken in the Radius CLI.

This is causing consistent sample failures and operational pain during every release.

Fixes: #1901 and radius-project/radius#8141

Signed-off-by: Karishma Chawla <[email protected]>
@kachawla kachawla requested review from a team as code owners January 15, 2025 00:20
@kachawla kachawla changed the title Set up Test EKS Cluster for Dapr Update Test Samples Workflow - Set up Test EKS Cluster for Dapr Jan 15, 2025
@kachawla kachawla requested a review from willdavsmith January 16, 2025 00:32
ytimocin
ytimocin previously approved these changes Jan 18, 2025
Copy link
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

PRs don't run the tests on AWS. We can merge this in and test it in production.

.github/workflows/test.yaml Outdated Show resolved Hide resolved
.github/workflows/test.yaml Outdated Show resolved Hide resolved
Signed-off-by: Karishma Chawla <[email protected]>
aws eks update-kubeconfig --region ${{ env.AWS_REGION }} --name ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }}
timeout-minutes: 60
continue-on-error: false
- name: Install Dapr
Copy link
Contributor Author

@kachawla kachawla Jan 24, 2025

Choose a reason for hiding this comment

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

Removing this step since Dapr is installed by default with Radius now radius-project/radius#8033

Copy link
Contributor

@ytimocin ytimocin left a comment

Choose a reason for hiding this comment

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

Looking good. Let's test it out in production.

Comment on lines +254 to +265
# Fetch the node group name dynamically
NODEGROUP_NAME=$(eksctl get nodegroup \
--cluster ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }} \
--region ${{ env.AWS_REGION }} \
-o json | jq -r '.[0].Name')

# Fetch the security group ID for the EKS worker nodes
NODE_SECURITY_GROUP_ID=$(eksctl get nodegroup \
--cluster ${{ steps.gen-id.outputs.TEST_EKS_CLUSTER_NAME }} \
--name $NODEGROUP_NAME \
--region ${{ env.AWS_REGION }} \
-o json | jq -r '.[0].Resources.SecurityGroup.ID')
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can consolidate this into a single step using the below command.

aws eks describe-cluster --name <cluster_name> --query 'cluster.resourcesVpcConfig.clusterSecurityGroupId' --region <region>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will follow up on this in a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated here #2030. Thanks for the feedback.

@kachawla kachawla merged commit 885858d into radius-project:v0.42 Jan 24, 2025
8 checks passed
lakshmimsft pushed a commit to lakshmimsft/samples-fork that referenced this pull request Jan 24, 2025
nithyatsu pushed a commit that referenced this pull request Feb 3, 2025
* Update samples for v0.42

* Update Test Samples Workflow - Set up Test EKS Cluster for Dapr (#2013)

* Add check to verify manifests are registered in test workflow (#2031)

* Add dependabot file (#2003)

* add dependabot file

Signed-off-by: sk593 <[email protected]>

* remove dir

Signed-off-by: sk593 <[email protected]>

* update dir

Signed-off-by: sk593 <[email protected]>

* nit

Signed-off-by: sk593 <[email protected]>

---------

Signed-off-by: sk593 <[email protected]>

* add check to verify manifests are registered

Signed-off-by: lakshmimsft <[email protected]>

---------

Signed-off-by: sk593 <[email protected]>
Signed-off-by: lakshmimsft <[email protected]>
Co-authored-by: Shruthi Kumar <[email protected]>

* Update command to fetch cluster security group (#2030)

Signed-off-by: Karishma Chawla <[email protected]>

---------

Signed-off-by: sk593 <[email protected]>
Signed-off-by: lakshmimsft <[email protected]>
Signed-off-by: Karishma Chawla <[email protected]>
Signed-off-by: Radius CI Bot <[email protected]>
Co-authored-by: Karishma Chawla <[email protected]>
Co-authored-by: Lakshmi Javadekar <[email protected]>
Co-authored-by: Shruthi Kumar <[email protected]>
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.

eshop-aws actions should be updated to work with 0.41
4 participants