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

Add CI timeouts and enable playwright #8405

Merged
merged 7 commits into from
Nov 8, 2024

Conversation

FelixMalfait
Copy link
Member

No description provided.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds timeouts to various CI/CD workflows and enables Playwright testing, with significant changes to workflow execution times and job structures across multiple GitHub Actions files.

  • Deployment workflows (cd-deploy-main.yaml, cd-deploy-tag.yaml) have concerningly short 3-minute timeouts that may cause premature terminations
  • Front-end workflow (ci-front.yaml) reduces timeout from 60 to 30 minutes while adding Playwright tests, potentially causing timing issues
  • Chrome extension workflow consolidates jobs and adds file change detection with a possible condition bug using 'changed' instead of 'any_changed'
  • Docker Compose workflow adds server health monitoring with a 300-second timeout and change-based execution
  • Website CI workflow uses hardcoded database credentials in plain text, presenting a security risk

12 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -1,4 +1,5 @@
name: CD deploy main
timeout-minutes: 3
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: 3 minutes is likely too short for a deployment workflow. Consider increasing to at least 15-30 minutes to match other workflow timeouts and ensure successful deployments.

Copy link

Choose a reason for hiding this comment

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

sentry/[email protected]":
version "5.15.4"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.15.4.tgz#02865ab3c9b745656cea0ab183767ec26c96f6e6"
integrity sha512-lO8SLBjrUDGADl0LOkd55R5oL510d/1SaI08/IBHZCxCUwI4TiYo5EPECq8mrj3XGfgCyq9osw33bymRlIDuSQ==
dependencies:
"@sentry/types" "5.15.4"
tslib "^1.9.3"

@@ -1,4 +1,5 @@
name: CD deploy tag
timeout-minutes: 3
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: 3 minutes is likely too short for a deployment workflow. Consider increasing to 15-30 minutes to allow for potential delays in infrastructure provisioning and deployment steps.

@@ -1,4 +1,5 @@
name: CI Front
timeout-minutes: 30
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Reducing timeout from 60 to 30 minutes while adding Playwright tests may cause timeouts. Consider keeping 60 minutes or testing thoroughly to ensure 30 minutes is sufficient.

@@ -1,4 +1,5 @@
name: CI Utils
timeout-minutes: 3
Copy link
Contributor

Choose a reason for hiding this comment

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

style: 3 minutes may be too short for Danger.js on large PRs. Consider increasing to 5-10 minutes to avoid timeouts.

@@ -1,4 +1,5 @@
name: CI Website
timeout-minutes: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

style: 10 minutes may be too short for migrations + build. Consider increasing to 15-20 minutes to prevent timeouts during heavy builds.

@FelixMalfait FelixMalfait merged commit d883151 into main Nov 8, 2024
3 checks passed
@FelixMalfait FelixMalfait deleted the add-ci-timeout-and-enable-playwright branch November 8, 2024 11:24
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.

3 participants