Skip to content

Conversation

@rodrigopavezi
Copy link
Member

@rodrigopavezi rodrigopavezi commented Dec 9, 2024

Fixes #1503

Problem

Next release is not working on circle ci and it seems is due to out of memory issues. Furthermore, versioning is broken on npm

Add NODE_OPTIONS: '--max-old-space-size=4096' to the node image.

I have changed the CI release script removing the --canary option so the versions will look like that.

Changes:
  - @requestnetwork/advanced-logic: 0.47.0 => 0.48.0-next.0
  - @requestnetwork/currency: 0.21.0 => 0.22.0-next.0
  - @requestnetwork/data-access: 0.38.0 => 0.39.0-next.0
  - @requestnetwork/data-format: 0.19.3 => 0.19.4-next.0
  - @requestnetwork/epk-cipher: 0.3.0 => 0.4.0-next.0
  - @requestnetwork/epk-decryption: 0.7.3 => 0.7.4-next.0
  - @requestnetwork/epk-signature: 0.9.3 => 0.9.4-next.0
  - @requestnetwork/ethereum-storage: 0.38.0 => 0.39.0-next.0
  - @requestnetwork/integration-test: 0.38.3 => 0.38.4-next.0 (private)
  - @requestnetwork/lit-protocol-cipher: 0.3.0 => 0.4.0-next.0
  - @requestnetwork/multi-format: 0.21.0 => 0.22.0-next.0
  - @requestnetwork/payment-detection: 0.47.0 => 0.48.0-next.0
  - @requestnetwork/payment-processor: 0.50.0 => 0.51.0-next.0
  - @requestnetwork/request-client.js: 0.52.0 => 0.53.0-next.0
  - @requestnetwork/request-logic: 0.37.0 => 0.38.0-next.0
  - @requestnetwork/request-node: 0.38.0 => 0.39.0-next.0
  - @requestnetwork/smart-contracts: 0.41.0 => 0.42.0-next.0
  - @requestnetwork/thegraph-data-access: 0.44.0 => 0.45.0-next.0
  - @requestnetwork/toolbox: 0.15.3 => 0.15.4-next.0 (private)
  - @requestnetwork/transaction-manager: 0.38.0 => 0.39.0-next.0
  - @requestnetwork/types: 0.47.0 => 0.48.0-next.0
  - @requestnetwork/usage-examples: 0.32.3 => 0.32.4-next.0 (private)
  - @requestnetwork/utils: 0.47.0 => 0.48.0-next.0
  - @requestnetwork/web3-signature: 0.8.3 => 0.8.4-next.0

Summary by CodeRabbit

  • Chores
    • Introduced a new environment variable to optimize memory usage during builds and tests.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 9, 2024

Walkthrough

The changes in this pull request involve the addition of a new environment variable NODE_OPTIONS set to '--max-old-space-size=4096' in the .circleci/config.yml file. This modification is made within the docker section of the node_image configuration. The purpose of this change is to increase the maximum old space size for Node.js processes, which can assist in managing memory usage during build and test processes.

Changes

File Path Change Summary
.circleci/config.yml Added environment variable NODE_OPTIONS: '--max-old-space-size=4096' to node_image configuration.

Possibly related issues

Possibly related PRs

Suggested reviewers

  • MantisClone
  • alexandre-abrioux
  • aimensahnoun
  • sstefdev

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>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • 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 testing code 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Experiment)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@rodrigopavezi rodrigopavezi marked this pull request as ready for review December 9, 2024 18:25
@github-actions github-actions bot requested review from kevindavee and leoslr December 9, 2024 18:25
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.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
.circleci/config.yml (2)

9-10: Memory configuration change looks good!

The addition of NODE_OPTIONS='--max-old-space-size=4096' is an appropriate solution for the out-of-memory issues. This configuration will provide 4GB of heap memory for Node.js processes.

Consider:

  1. Adding a comment explaining why this memory increase was necessary
  2. Monitoring memory usage in CircleCI builds to ensure 4GB is sufficient

Based on the output, I can now generate the final response as we have found concrete evidence of remaining canary configuration.

The --canary option is still present in the package.json scripts

The PR objectives mention removing the --canary option, but it's still present in the root package.json file under the publish-prerelease script:

"publish-prerelease": "yarn lerna publish --preid development --skip-git --yes --canary"

This script needs to be updated to align with the PR's versioning changes.

🔗 Analysis chain

Line range hint 452-486: Verify the complete implementation of versioning changes

The PR objectives mention removing the --canary option from the CI release script, but this change is not visible in the current diff. Please ensure all necessary changes for fixing the versioning are properly implemented.


The output shows that there's still a --canary option present in the publish-prerelease script within a package.json file. Let me verify if this is the only instance and check the PR changes to see if this was meant to be removed.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining canary-related configurations

# Search for canary-related configurations
echo "Searching for canary-related configurations..."
rg --type yaml --type json "canary|--canary" -l

# Check package.json files for version-related scripts
echo "Checking package.json files for version-related scripts..."
fd package.json --type f --exec jq -r 'select(.scripts != null) | .scripts | to_entries | .[] | select(.value | contains("canary") or contains("version"))' {}

Length of output: 568


Script:

#!/bin/bash
# Get the specific content of the package.json file
echo "Content of package.json with canary option:"
rg --type json "canary" -C 5

# Check if this is modified in the PR
echo "Checking PR changes related to versioning:"
git diff origin/main -- '**/package.json' '.circleci/config.yml'

Length of output: 1097

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 7686ed9 and b3fcbde.

📒 Files selected for processing (1)
  • .circleci/config.yml (1 hunks)

@MantisClone MantisClone changed the title fix: for next release fix: next release Dec 9, 2024
@rodrigopavezi rodrigopavezi merged commit c38f597 into master Dec 9, 2024
29 checks passed
@rodrigopavezi rodrigopavezi deleted the fix/for-next-release branch December 9, 2024 20:15
This was referenced Dec 13, 2024
This was referenced Jan 16, 2025
@coderabbitai coderabbitai bot mentioned this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Fix -next releases in requestNetwork SDK

4 participants