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 memory to codebuild #772

Merged

Conversation

NiallJoeMaher
Copy link
Contributor

@NiallJoeMaher NiallJoeMaher commented Feb 26, 2024

✨ Codu Pull Request 💻

Codu Logo

Pull Request details

  • Add memory to codebuild to see if it fixes the build issues

Any Breaking changes

  • None

Summary by CodeRabbit

  • Refactor
    • Updated the build environment configuration to use a medium compute type for improved performance.
  • Tests
    • Modified the expectation in e2e/articles.spec.ts to check for the hidden status of an element.
    • Updated button text and element selection logic in e2e/login.spec.ts for improved functionality.
  • Chores
    • Adjusted browser configurations in playwright.config.ts, including adding a new configuration for Mobile Chrome with Pixel 5 device.

@NiallJoeMaher NiallJoeMaher requested a review from a team as a code owner February 26, 2024 09:18
Copy link

vercel bot commented Feb 26, 2024

@NiallJoeMaher is attempting to deploy a commit to the Codú Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Feb 26, 2024

Walkthrough

The recent updates focus on refining the CDK application's functionality. Changes include adjustments to element visibility checks in end-to-end tests, button text enhancements for a smoother user experience, and browser configuration refinements for improved testing coverage.

Changes

File Change Summary
cdk/lib/pipeline-stack.ts, e2e/articles.spec.ts Enhanced CDK pipeline stack with codebuild.ComputeType.MEDIUM and updated element visibility checks.
e2e/login.spec.ts Improved user experience by updating button text and login field verification logic.
playwright.config.ts Refined browser configurations by focusing on specific browsers and devices.

🐇✨
In the realm of code, under digital skies,
A rabbit hopped, with bright, keen eyes.
"Enhance and refine," it said with delight,
Testing and tweaking, making it just right.
Changes made with care, in lines of code,
Progressing steadily, on the digital road.
🚀💻

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ae9491b and 6bf2c73.
Files selected for processing (1)
  • cdk/lib/pipeline-stack.ts (2 hunks)
Additional comments: 2
cdk/lib/pipeline-stack.ts (2)
  • 22-22: The addition of the codebuild import statement is correctly implemented and follows best practices for importing modules in TypeScript. This import is necessary for the subsequent use of codebuild.ComputeType.MEDIUM in the buildEnvironment configuration.
  • 54-54: The update to the buildEnvironment configuration to use computeType: codebuild.ComputeType.MEDIUM is a targeted change aimed at addressing build issues by allocating more memory to the build process. This change is well-implemented within the context of the AWS CDK and follows best practices for configuring AWS CodeBuild environments in CDK applications. However, it's important to monitor the impact of this change on build times and costs, as higher compute types can lead to increased AWS charges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 6bf2c73 and 078ef95.
Files selected for processing (3)
  • e2e/articles.spec.ts (1 hunks)
  • e2e/login.spec.ts (2 hunks)
  • playwright.config.ts (1 hunks)
Additional comments: 4
e2e/articles.spec.ts (1)
  • 21-21: The expectation for the .animate-pulse element has been changed from being visible to being hidden. This is a significant change in the test's logic. Can you confirm if this change aligns with the updated UI behavior? Additionally, it seems the old expectation (toBeVisible()) is still present just before the new one. Was it intended to be replaced, or is this an oversight?
e2e/login.spec.ts (2)
  • 17-17: The button text has been updated to "Login with GitHub". Please confirm this change accurately reflects the current UI text for the login button.
  • 32-33: The element selection logic for the login field has been modified. While this change seems to aim for more precise test conditions, can you confirm it aligns with the current UI structure and does not introduce brittleness to the test?
playwright.config.ts (1)
  • 40-55: The configurations for Firefox and Safari have been commented out, and a new configuration for Mobile Chrome using the Pixel 5 device has been added. Can you clarify the rationale behind these changes? Specifically, how does this impact the overall test coverage, and what led to the focus on Mobile Chrome at the expense of Firefox and Safari testing?

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 078ef95 and 50fcca1.
Files selected for processing (1)
  • .github/workflows/playwright.yml (1 hunks)

Comment on lines 22 to 25
NEXTAUTH_URL: http://localhost:3000/api/auth
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
GITHUB_ID: ${{ secrets.GITHUB_ID }}
GITHUB_SECRET: ${{ secrets.GITHUB_SECRET }}
Copy link
Contributor

Choose a reason for hiding this comment

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

The addition of environment variables NEXTAUTH_URL, NEXTAUTH_SECRET, GITHUB_ID, and GITHUB_SECRET is a good practice for ensuring that your Playwright tests have access to necessary configurations and secrets. However, it's crucial to ensure that the secrets (NEXTAUTH_SECRET, GITHUB_ID, GITHUB_SECRET) are properly set up in the repository's secrets to avoid runtime errors. Additionally, consider if there are any security implications of exposing NEXTAUTH_URL directly in the workflow file. If this URL is sensitive or environment-specific, you might want to move it to the repository's secrets as well.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 50fcca1 and 43fa8c2.
Files selected for processing (1)
  • .github/workflows/playwright.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/playwright.yml

@NiallJoeMaher NiallJoeMaher merged commit 68744ef into codu-code:develop Feb 26, 2024
2 of 4 checks passed
@NiallJoeMaher NiallJoeMaher deleted the feat/upgrade-codebuild-compute branch February 26, 2024 10:28
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.

1 participant