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

Setup E2E test using NATS Backend #30

Merged
merged 59 commits into from
Jan 3, 2024

Conversation

grischperl
Copy link
Contributor

@grischperl grischperl commented Dec 20, 2023

Description

Add Github Action to run E2E test

Changes proposed in this pull request:

  • EPP Image from PR is used in Eventing Manager
  • Execute E2E Tests from EM
  • E2E uses NATS Backend

Related issue(s)

kyma/#18477

@kyma-bot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cla: yes Indicates the PR's author has signed the CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 20, 2023
@kyma-bot kyma-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 21, 2023
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 21, 2023
@k15r k15r mentioned this pull request Jan 10, 2024
17 tasks
- name: Deploy NATS Manager
run: |
version=$(curl -i https://github.com/kyma-project/nats-manager/releases/latest | awk -F '/' '/^location/ {print substr($NF, 1, length($NF)-1)}')
make -C nats-manager deploy IMG=$NATS_MANAGER_IMAGE:v20231013-6091000e
Copy link
Contributor Author

Choose a reason for hiding this comment

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

v20231013-6091000e is hardcoded until we have a new tagged release of NATS Manager

@grischperl grischperl removed the request for review from friedrichwilken January 2, 2024 12:40
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jan 3, 2024
@kyma-bot kyma-bot merged commit a311464 into kyma-project:main Jan 3, 2024
7 checks passed
@grischperl grischperl deleted the 18477-EPP-e2e branch January 4, 2024 09:11
kyma-bot pushed a commit that referenced this pull request Jan 5, 2024
* Setup E2E test using NATS Backend (#30)

* Setup E2E github action flow

* Move hack Makefile

* Move ci folder outside of e2e

* Correct makefile path

* Add missing step to e2e flow to checkout repo

* Correct path in Makefile

* Add kustomize to Makefile

* Add kustomization

* Add LOCALBIN variable

* Add k3d cluster create step

* Remove go step

* Add missing variables to Makefile

* Add kyma script

* Make script executable

* Checkout EM repositry

* Correct repository checkout

* Use EM repo for e2e tests

* Remove hack/Makefile

* Replace make command with local one

* Try adding sudo for `permission denied` problem

* Try using `kyma` instead of variable

* Try using explicit path

* Use different make targets to deploy EM

* Update image

* Fix reference of variable

* Add step to create namespace

* Fix Github token

* Fix make calls in workflow

* Add step to install NATS

* Try to use Github variable

* Deploy nats manager via makefile

* Add step to install NATS CR

* Fix reference of variable

* Try using `create-k3d` from `eventing-manager` repo

* Change KYMA_CLI path

* Undo variable changes

* Remove unused files

* Add clean-up step
Fix capitalisation

* Improve patch command by using `jq`

* Add missing path to cleanup command

* Try using `MODULE_VERSION` from EM Repo

* Echo Module Version
Use rel version for nats manager

* Print deployment image

* Fix kubectl command

* Try to use string

* Try using `yg` to extract version

* Fix command

* Use `grep` instead of `yq`

* Use curl to get latest release of NM

* Use `curl` to get EM latest release
Use `latest` for NM

* Use NM image used in release

* Use `kubectl apply` to deploy latest NATS and Eventing Manager

* Remove step to test EM setup

* Remove unused variable

* Check for pod rollout

* Add missing `$` to variable

* Wait for rollout to complete

* Add step to check for success of EPP image update

* Replace `k` with `kubectl`

* Release workflow (#32)

* Release workflow

* Rename to `sec-scan`

* Fix all variables to `eventing-publisher-proxy`

* Fix output of next release version

* Fix run name to branch name
Use correct script in `Get the next release version` step
Add lines between steps

* Use correct image in `sec-scanners-config`

* Use env variable for using job output
Move `outputs` at beginning of step for readability

* Rename scripts to be more descriptive
Rename steps to be more clear

* Use script with more comments

* Add release flow (#31)

* Add release flow

* Release using branch name as input

* Fix `needs` input

* Fix `needs` input

* Change workflow to be triggered manually

* No inputs for manual trigger

* Release workflow

* Remove unused scripts
@grischperl grischperl modified the milestone: 1.0.0 Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup pipelines for EPP
4 participants