Skip to content

chore: enable corepack and upgrade pnpm#1543

Merged
ymc9 merged 4 commits intodevfrom
chore/core-pack-pnpm
Jun 29, 2024
Merged

chore: enable corepack and upgrade pnpm#1543
ymc9 merged 4 commits intodevfrom
chore/core-pack-pnpm

Conversation

@ymc9
Copy link
Member

@ymc9 ymc9 commented Jun 28, 2024

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 28, 2024

Walkthrough

Walkthrough

This set of changes primarily updates version requirements and dependencies across various configuration and test files. Node.js is updated to version 20 or above, while pnpm is updated to version 9.4.0. Additionally, adjustments are made to streamline integration and regression tests by removing unnecessary dependencies and updating environmental configurations.

Changes

File Change Summary
CONTRIBUTING.md Updated Node.js and pnpm version requirements and environment variable configurations for Postgres integration tests.
.github/workflows/.../build-test.yml Updated pnpm version from ^7.15.0 to 9.4.0.
.github/workflows/.../integration-test.yml Updated pnpm version from ^7.15.0 to 9.4.0.
.github/workflows/.../regression-test.yml Updated pnpm version from ^7.15.0 to 9.4.0.
packages/plugins/.../react-hooks-v5.test.tsx Removed eslint-disable comments and reference to @types/jest.
packages/plugins/.../react-hooks.test.tsx Removed eslint-disable comments and reference to @types/jest.
packages/schema/src/cli/plugin-runner.ts Added a conditional check to handle specific test scenarios related to resolving paths for plugins.
tests/integration/.../nextjs/generation.test.ts Removed declaration and usage of dependencies related to package versions and installations for sqlite and postgres tests.
tests/integration/.../trpc/generation.test.ts Removed declaration and usage of dependencies related to package versions and installations for test setup.

Tip

Early access features
  • OpenAI gpt-4o model for reviews and chat.

Note:

  • You can disable early access features from the CodeRabbit UI or by setting early_access: false in the CodeRabbit configuration file.
  • Please join our Discord Community to provide feedback and report issues.
  • OSS projects are always opted into early access features.

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:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @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.
  • 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.

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0a293ca and d4c8f5f.

Files ignored due to path filters (3)
  • package.json is excluded by !**/*.json
  • packages/server/tsconfig.json is excluded by !**/*.json
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !**/*.yaml
Files selected for processing (1)
  • CONTRIBUTING.md (1 hunks)
Additional context used
LanguageTool
CONTRIBUTING.md

[uncategorized] ~12-~12: Loose punctuation mark.
Context: ...commands. - ZENSTACK_TEST_DB_USER`: The postgres username, for a user with ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~13-~13: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_PASS: Password for said user. Default: `abc12...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...t: abc123. - ZENSTACK_TEST_DB_NAME: Default database to connect onto. This ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~15-~15: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_HOST: Hostname or IP to connect onto. Default...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~16-~16: Loose punctuation mark.
Context: ...localhost. - ZENSTACK_TEST_DB_PORT: Port number to connect onto. Default: `...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~68-~68: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ...# Development workflow ZenStack adopts a very simple development workflow: 1. Changes shou...

(EN_WEAK_ADJECTIVE)


[uncategorized] ~98-~98: A comma may be missing after the conjunctive/linking adverb ‘Currently’.
Context: ... routes in a framework-independent way. Currently supports "rpc" and "rest" styles. 1. F...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)

Markdownlint
CONTRIBUTING.md

120-120: null
Bare URL used

(MD034, no-bare-urls)

Additional comments not posted (5)
CONTRIBUTING.md (5)

7-8: Updated Node.js and pnpm version requirements look good.

The updated version requirements for Node.js and pnpm are clearly stated and correctly linked, aligning with the PR objectives.


12-16: Environment variables for PostgreSQL integration tests are well-documented.

The environment variables are clearly defined with sensible defaults. The punctuation marks flagged by the static analysis tool are appropriate in this context.

Tools
LanguageTool

[uncategorized] ~12-~12: Loose punctuation mark.
Context: ...commands. - ZENSTACK_TEST_DB_USER`: The postgres username, for a user with ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~13-~13: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_PASS: Password for said user. Default: `abc12...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...t: abc123. - ZENSTACK_TEST_DB_NAME: Default database to connect onto. This ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~15-~15: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_HOST: Hostname or IP to connect onto. Default...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~16-~16: Loose punctuation mark.
Context: ...localhost. - ZENSTACK_TEST_DB_PORT: Port number to connect onto. Default: `...

(UNLIKELY_OPENING_PUNCTUATION)


Line range hint 68-68: Consider refining the language in the development workflow description.

Instead of "very simple," consider using "straightforward" to convey a stronger, more professional tone.

- ZenStack adopts a very simple development workflow:
+ ZenStack adopts a straightforward development workflow:
Tools
LanguageTool

[uncategorized] ~12-~12: Loose punctuation mark.
Context: ...commands. - ZENSTACK_TEST_DB_USER`: The postgres username, for a user with ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~13-~13: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_PASS: Password for said user. Default: `abc12...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...t: abc123. - ZENSTACK_TEST_DB_NAME: Default database to connect onto. This ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~15-~15: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_HOST: Hostname or IP to connect onto. Default...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~16-~16: Loose punctuation mark.
Context: ...localhost. - ZENSTACK_TEST_DB_PORT: Port number to connect onto. Default: `...

(UNLIKELY_OPENING_PUNCTUATION)


Line range hint 98-98: Improve readability by adding a comma.

Adding a comma after "Currently" would improve the flow of the sentence.

- Currently supports "rpc" and "rest" styles.
+ Currently, supports "rpc" and "rest" styles.
Tools
LanguageTool

[uncategorized] ~12-~12: Loose punctuation mark.
Context: ...commands. - ZENSTACK_TEST_DB_USER`: The postgres username, for a user with ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~13-~13: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_PASS: Password for said user. Default: `abc12...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...t: abc123. - ZENSTACK_TEST_DB_NAME: Default database to connect onto. This ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~15-~15: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_HOST: Hostname or IP to connect onto. Default...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~16-~16: Loose punctuation mark.
Context: ...localhost. - ZENSTACK_TEST_DB_PORT: Port number to connect onto. Default: `...

(UNLIKELY_OPENING_PUNCTUATION)


Line range hint 120-120: Replace bare URL with a descriptive link.

Using a descriptive link instead of a bare URL enhances readability and accessibility.

- http://localhost:4873
+ [local Verdaccio registry](http://localhost:4873)
Tools
LanguageTool

[uncategorized] ~12-~12: Loose punctuation mark.
Context: ...commands. - ZENSTACK_TEST_DB_USER`: The postgres username, for a user with ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~13-~13: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_PASS: Password for said user. Default: `abc12...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...t: abc123. - ZENSTACK_TEST_DB_NAME: Default database to connect onto. This ...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~15-~15: Loose punctuation mark.
Context: ... postgres. - ZENSTACK_TEST_DB_HOST: Hostname or IP to connect onto. Default...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~16-~16: Loose punctuation mark.
Context: ...localhost. - ZENSTACK_TEST_DB_PORT: Port number to connect onto. Default: `...

(UNLIKELY_OPENING_PUNCTUATION)

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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d4c8f5f and f382359.

Files selected for processing (3)
  • .github/workflows/build-test.yml (1 hunks)
  • .github/workflows/integration-test.yml (1 hunks)
  • .github/workflows/regression-test.yml (1 hunks)
Files skipped from review due to trivial changes (3)
  • .github/workflows/build-test.yml
  • .github/workflows/integration-test.yml
  • .github/workflows/regression-test.yml

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 (3)
packages/schema/src/cli/plugin-runner.ts (1)

Line range hint 336-339: Remove Unnecessary Else Clause

The else clause can be omitted because the previous branches break early.

-        } else {
-            try {
-                // direct require
-                require.resolve(pluginModulePath);
-            } catch {
+        }
+        try {
+            // direct require
+            require.resolve(pluginModulePath);
+        } catch {
packages/plugins/tanstack-query/tests/react-hooks-v5.test.tsx (2)

Line range hint 695-697: Remove Unnecessary Else Clause

The else clause can be omitted because the previous branches break early.

-                        } else {
-                            return { kind: 'ProceedDefault' };
-                        }
+                        }
+                        return { kind: 'ProceedDefault' };

Line range hint 729-731: Remove Unnecessary Else Clause

The else clause can be omitted because the previous branches break early.

-                        } else {
-                            return { kind: 'ProceedDefault' };
-                        }
+                        }
+                        return { kind: 'ProceedDefault' };
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f382359 and 28d6d09.

Files ignored due to path filters (6)
  • packages/plugins/tanstack-query/package.json is excluded by !**/*.json
  • packages/plugins/trpc/package.json is excluded by !**/*.json
  • packages/server/package.json is excluded by !**/*.json
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !**/*.yaml
  • tests/integration/tests/frameworks/nextjs/test-project/package.json is excluded by !**/*.json
  • tests/integration/tests/frameworks/trpc/test-project/package.json is excluded by !**/*.json
Files selected for processing (5)
  • packages/plugins/tanstack-query/tests/react-hooks-v5.test.tsx (1 hunks)
  • packages/plugins/tanstack-query/tests/react-hooks.test.tsx (1 hunks)
  • packages/schema/src/cli/plugin-runner.ts (1 hunks)
  • tests/integration/tests/frameworks/nextjs/generation.test.ts (3 hunks)
  • tests/integration/tests/frameworks/trpc/generation.test.ts (2 hunks)
Files skipped from review due to trivial changes (3)
  • packages/plugins/tanstack-query/tests/react-hooks.test.tsx
  • tests/integration/tests/frameworks/nextjs/generation.test.ts
  • tests/integration/tests/frameworks/trpc/generation.test.ts
Additional context used
Biome
packages/schema/src/cli/plugin-runner.ts

[error] 233-234: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)


[error] 316-317: void is confusing inside a union type.

Unsafe fix: Use undefined instead.

(lint/suspicious/noConfusingVoidType)


[error] 336-339: This else clause can be omitted because previous branches break early.

Unsafe fix: Omit the else clause.

(lint/style/noUselessElse)

packages/plugins/tanstack-query/tests/react-hooks-v5.test.tsx

[error] 695-697: This else clause can be omitted because previous branches break early.

Unsafe fix: Omit the else clause.

(lint/style/noUselessElse)


[error] 729-731: This else clause can be omitted because previous branches break early.

Unsafe fix: Omit the else clause.

(lint/style/noUselessElse)

Additional comments not posted (1)
packages/schema/src/cli/plugin-runner.ts (1)

346-350: Ensure Conditional Logic for Test Environment is Correct

The added conditional logic for the ZENSTACK_TEST environment variable looks appropriate. However, ensure that this logic is necessary and correctly implemented to avoid resolving external node_modules during testing.

@ymc9 ymc9 merged commit 18a4877 into dev Jun 29, 2024
@ymc9 ymc9 deleted the chore/core-pack-pnpm branch June 29, 2024 16:08
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