-
Notifications
You must be signed in to change notification settings - Fork 805
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
feat: add e2e tests #3054
base: main
Are you sure you want to change the base?
feat: add e2e tests #3054
Conversation
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
@35C4n0r is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
οΈβ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. π¦ GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3054 +/- ##
===========================================
- Coverage 43.06% 31.31% -11.76%
===========================================
Files 166 74 -92
Lines 16685 8184 -8501
===========================================
- Hits 7186 2563 -4623
+ Misses 9499 5621 -3878 β View full report in Codecov by Sentry. |
if [ "${{ matrix.db_type }}" == "mysql" ]; then | ||
until docker exec $(docker ps -qf "name=keep-database") mysqladmin ping -h "localhost" --silent; do | ||
until docker exec $(docker ps -qf "name=keep-database-1") mysqladmin ping -h "localhost" --silent; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@35C4n0r check, here also keep-database-1 is getting created: /~https://github.com/keephq/keep/actions/runs/12844511458/job/35817583885#step:12:2243
but until docker exec $(docker ps -qf "name=keep-database") pg_isready -h localhost -U keepuser; do
/~https://github.com/keephq/keep/actions/runs/12844511458/job/35817583885#step:13:67 still works
@@ -59,5 +138,20 @@ services: | |||
ports: | |||
- "9090:9090" | |||
|
|||
grafana: | |||
image: grafana/grafana-enterprise:10.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 10.4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dunno, picked from ./keep/providers/grafana_provider/grafana
@@ -56,5 +132,20 @@ services: | |||
ports: | |||
- "9090:9090" | |||
|
|||
grafana: | |||
image: grafana/grafana-enterprise:10.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
y?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dunno, picked from ./keep/providers/grafana_provider/grafana
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go with 11.4.0. "Latest" here will bring instability to our tests.
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
Signed-off-by: 35C4n0r <jaykumar20march@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great one! A few minor asks
if [ "${{ matrix.db_type }}" == "mysql" ]; then | ||
until docker exec $(docker ps -qf "name=keep-database") mysqladmin ping -h "localhost" --silent; do | ||
until docker exec $(docker ps -qf "name=keep-database-1") mysqladmin ping -h "localhost" --silent; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@35C4n0r check, here also keep-database-1 is getting created: /~https://github.com/keephq/keep/actions/runs/12844511458/job/35817583885#step:12:2243
but until docker exec $(docker ps -qf "name=keep-database") pg_isready -h localhost -U keepuser; do
/~https://github.com/keephq/keep/actions/runs/12844511458/job/35817583885#step:13:67 still works
- NEXTAUTH_URL=http://localhost:3001 | ||
- NEXT_PUBLIC_API_URL=http://localhost:8081 | ||
- POSTHOG_KEY=phc_muk9qE3TfZsX3SZ9XxX52kCGJBclrjhkP9JxAQcm1PZ | ||
- POSTHOG_HOST=https://ingest.keephq.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove POSTHOG keys from here and set POSTHOG_DISABLED=true
- NEXT_PUBLIC_API_URL=http://localhost:8081 | ||
- POSTHOG_KEY=phc_muk9qE3TfZsX3SZ9XxX52kCGJBclrjhkP9JxAQcm1PZ | ||
- POSTHOG_HOST=https://ingest.keephq.dev | ||
- NEXT_PUBLIC_SENTRY_DSN=https://0d4d59e3105ffe8afa27dcb95a222009@o4505515398922240.ingest.us.sentry.io/4508258058764288 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentry as well, I don't think we need it :)
- NEXTAUTH_URL=http://localhost:3001 | ||
- NEXT_PUBLIC_API_URL=http://localhost:8081 | ||
- POSTHOG_KEY=phc_muk9qE3TfZsX3SZ9XxX52kCGJBclrjhkP9JxAQcm1PZ | ||
- POSTHOG_HOST=https://ingest.keephq.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Posthog key too
Closes #3053
π Description
β Checks
βΉ Additional Information