Skip to content

Conversation

@mgarciaLKS
Copy link

Description

Creating a GitHub action workflow which spins up the Umbrella in a Kind Cluster with the necessary components.

Why

The umbrella sandbox will be necessary in order to be able to implement Cypress as the automated E2E testing.

Issue

#1342

Checklist

Please delete options that are not relevant.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have added tests that prove my changes work
  • I have checked that new and existing tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas

@sonarqubecloud
Copy link

@mgarciaLKS mgarciaLKS marked this pull request as ready for review March 14, 2025 07:54
@mgarciaLKS mgarciaLKS requested a review from evegufy March 14, 2025 07:54
@mgarciaLKS
Copy link
Author

@charmi-v The umbrella Sandbox and Cypress Dependencies are installed in the GH Action.

As the next step in a Different PR I will add the implemented tests to launch automatically.

@mgarciaLKS mgarciaLKS moved this to IN REVIEW in Portal Mar 14, 2025
@charmi-v
Copy link
Contributor

Thanks for the update @mgarciaLKS 🙌

Let me know if you've created a subtask to mention the improvement in the main issue thread 1228. I recommend creating a new subtask referencing the main thread to keep all contributors informed about the development.

Copy link
Contributor

@evegufy evegufy left a comment

Choose a reason for hiding this comment

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

Thanks for providing the workflow! Looks very good in generally.

username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: ${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}
readme-filepath: '.conf/docker-notice-portal.md'
Copy link
Contributor

Choose a reason for hiding this comment

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

please undo changes to build.yml

helm install \
--set portal.enabled=true,centralidp.enabled=true,sharedidp.enabled=true umbrella tractusx-dev/umbrella \
--set portal.frontend.image.repository=kind-registry:5000/portal-frontend --set portal.frontend.image.tag=testing \
--namespace umbrella --create-namespace
Copy link
Contributor

@evegufy evegufy Mar 20, 2025

Choose a reason for hiding this comment

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

Please add this, otherwise we try to start testing and the keycloak realms and/or the portal db migrations are not ready yet

Suggested change
--namespace umbrella --create-namespace
--namespace umbrella --create-namespace \
-- wait --wait-for-jobs

Comment on lines +27 to +29
push:
branches:
- 'main'
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 restrict the triggering of the workflow to only when really needed (it runs about 6 minutes or longer and otherwise just waste resources)

Suggested change
push:
branches:
- 'main'

Comment on lines +25 to +26
branches:
- 'main'
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 restrict the triggering of the workflow to only when really needed (it runs about 6 minutes or longer and otherwise just waste resources)

Suggested change
branches:
- 'main'
branches:
- 'main'
paths:
- 'src/**'

name: Umbrella Sandbox Setup

on:
#for testing purpouses
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove comment

name: Umbrella Sandbox Setup

on:
#for testing purpouses
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove comment

name: Umbrella Sandbox Setup

on:
#for testing purpouses
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove comment

# SPDX-License-Identifier: Apache-2.0
###############################################################

name: Umbrella Sandbox Setup
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: Umbrella Sandbox Setup
name: E2E Testing (Umbrella Sandbox)

Please also rename file to e2e-tests.yml

Comment on lines +98 to +100
- name: Install Cypress Dependencies
run: |
npm install cypress --legacy-peer-deps
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 this is ready to execute the cypress tests yet, right? could you please have a look at the cypress docs to gh actions

As I mentioned in the last portal sync, I assume that all the addresses in umbrella for portal, centralidp and sharedidp will be needed to be overwritten to the k8s cluster internal services, example, because the ingress isn't enabled with the gh actions k8s cluster.

@github-project-automation github-project-automation bot moved this from IN REVIEW to IN PROGRESS in Portal Mar 20, 2025
@evegufy evegufy added this to the Release 25.06 milestone Mar 20, 2025
@mgarciaLKS mgarciaLKS marked this pull request as draft March 20, 2025 12:33
@mgarciaLKS
Copy link
Author

Thanks both @evegufy & @charmi-v.

The pull request is not finished yet, I opened it by accident, that is the reason it has all the comments and things. I would change all the suggestion requested by Evelyn and create the subtask as Charmi told me.

@evegufy evegufy removed this from the Release 25.06 milestone Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: IN PROGRESS

Development

Successfully merging this pull request may close these issues.

3 participants