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

Fix windy-sounding build #253

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Fix windy-sounding build #253

merged 1 commit into from
Jun 21, 2024

Conversation

vicb
Copy link
Owner

@vicb vicb commented Jun 21, 2024

Summary by Sourcery

This pull request addresses a bug in the windy-sounding project configuration by removing the verbose flag from the production build command. Additionally, it updates the GitHub Actions workflow to include an npm install command for the libs/windy-sounding directory.

  • Bug Fixes:
    • Removed verbose flag from the production build command in windy-sounding project configuration.
  • CI:
    • Added npm install command for libs/windy-sounding in the upload-windy-sounding GitHub Actions workflow.

Summary by CodeRabbit

  • New Features

    • Renamed windy-plugin-sounding to flyXC soundings.
  • Chores

    • Updated workflow name and added npm install command.
    • Updated commands and instructions in CONTRIBUTING.md for clearer plugin development guidance.
    • Updated dependencies in package.json for improved plugin performance and compatibility.
    • Updated import statement for manifest generation in Node.js script.
    • Updated build configuration logic in vite.config.ts.
    • Corrected URL in README.md for accurate documentation reference.

Copy link

coderabbitai bot commented Jun 21, 2024

Warning

Rate limit exceeded

@vicb has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 47 minutes and 34 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between c2cdfc0 and d281f5a.

Walkthrough

The changes introduce several updates across various files to improve the functionality and documentation of the Windy-sounding plugin, which is now renamed to the FlyXC soundings plugin. Key changes include updating GitHub workflows, revising documentation, modifying build configurations, and updating dependencies. These updates aim to streamline the development process, enhance readability, and ensure the plugin is well-maintained and functional.

Changes

Files/Paths Change Summary
.github/workflows/upload-windy-sounding.yml Renamed workflow, added npm install command for a specific directory.
README.md Updated URL to point to the correct location within the GitHub repository.
libs/.../project.json Removed --verbose flag from build command, added development build configuration.
libs/.../CONTRIBUTING.md Updated commands and instructions for running and reloading the plugin on windy.com/dev.
libs/.../README.md Renamed plugin functionality from windy-plugin-sounding to flyXC soundings.
libs/.../generate-manifest.js Updated import statement to use pluginConfig from config.js instead of plugin.min.js.
libs/.../package.json Added and updated various dependencies including @sveltejs/vite-plugin-svelte, preact, etc.
libs/.../vite.config.ts Changed fs allow path and updated lib configuration logic based on BUILD_PLUGIN_CONFIG.

Poem

In the world of code so bright,
A bunny hops with pure delight,
Updates flowing, dependencies rise,
Plugins renamed, taking skies.
With each commit, the future's clear,
FlyXC soundings, we hold dear.
🐇✨🚀


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 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 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

sourcery-ai bot commented Jun 21, 2024

Reviewer's Guide by Sourcery

This pull request focuses on refining the build process for the windy-sounding library. The --verbose flag was removed from the production build command in the project.json file to reduce log noise. Additionally, a step was added in the GitHub Actions workflow to install npm dependencies specifically for the windy-sounding library, ensuring that all necessary packages are available during the build process.

File-Level Changes

Files Changes
libs/windy-sounding/project.json
.github/workflows/upload-windy-sounding.yml
Improved the build process for the windy-sounding library by removing unnecessary verbosity and ensuring dependencies are installed correctly.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @vicb - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Copy link

@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 ffbfcd0 and 699edf3.

Files ignored due to path filters (1)
  • libs/windy-sounding/package-lock.json is excluded by !**/package-lock.json
Files selected for processing (2)
  • .github/workflows/upload-windy-sounding.yml (1 hunks)
  • libs/windy-sounding/project.json (1 hunks)
Files skipped from review due to trivial changes (2)
  • .github/workflows/upload-windy-sounding.yml
  • libs/windy-sounding/project.json

@vicb vicb force-pushed the wsp-action branch 6 times, most recently from c2cdfc0 to c544450 Compare June 21, 2024 15:25
Copy link

@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 (1)
libs/windy-sounding/package.json (1)

18-18: Addition of React-Redux approved with an architectural review request.

The introduction of react-redux implies significant changes in state management. It is crucial to ensure that this aligns with the overall architecture and does not introduce unnecessary complexity.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 699edf3 and c2cdfc0.

Files ignored due to path filters (1)
  • libs/windy-sounding/package-lock.json is excluded by !**/package-lock.json
Files selected for processing (8)
  • .github/workflows/upload-windy-sounding.yml (2 hunks)
  • README.md (1 hunks)
  • libs/windy-sounding/CONTRIBUTING.md (1 hunks)
  • libs/windy-sounding/README.md (1 hunks)
  • libs/windy-sounding/generate-manifest.js (1 hunks)
  • libs/windy-sounding/package.json (1 hunks)
  • libs/windy-sounding/project.json (2 hunks)
  • libs/windy-sounding/vite.config.ts (2 hunks)
Files skipped from review due to trivial changes (1)
  • libs/windy-sounding/CONTRIBUTING.md
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/upload-windy-sounding.yml
Additional context used
LanguageTool
README.md

[uncategorized] ~22-~22: A punctuation mark might be missing here. (AI_EN_LECTOR_MISSING_PUNCTUATION)
Context: ...(http://openaip.net/) for the airspaces, - thermal.kk7.ch...


[grammar] ~29-~29: Did you mean “3D”(= three-dimensional) or “3rd” (= third)? (THREE_D)
Context: ...g-loaders/three-dots.svg), - Angry Bird 3d model by [snootsy31](https://sketchfab....


[grammar] ~30-~30: Did you mean “3D”(= three-dimensional) or “3rd” (= third)? (THREE_D)
Context: ...tps://sketchfab.com/snootsy31), - Santa 3d model by [MDALatam Studio dyn](https://...


[grammar] ~31-~31: Did you mean “3D”(= three-dimensional) or “3rd” (= third)? (THREE_D)
Context: ...ps://sketchfab.com/minego90), - Message 3d model by [bariacg](https://sketchfab.co...


[grammar] ~32-~32: Did you mean “3D”(= three-dimensional) or “3rd” (= third)? (THREE_D)
Context: ...](https://sketchfab.com/bariacg), - Ufo 3d model by [pawinc](https://sketchfab.com...


[uncategorized] ~33-~33: If this is a compound adjective that modifies the following noun, use a hyphen. (EN_COMPOUND_ADJECTIVE_INTERNAL)
Context: ...://sketchfab.com/demarerik), - the many open source libraries, projects, and data sources u...

libs/windy-sounding/README.md

[uncategorized] ~17-~17: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ....png) Installed plugins persist across visits so you only have to install them once p...


[grammar] ~23-~23: Did you mean “copy and paste”? (COPY_PASTE)
Context: ...link does not work, you have to type or copy paste the URL in a browser** Find the "flyXC...


[uncategorized] ~29-~29: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...) Once the plugin is installed on your phone you can navigate to "https://www.windy....

Markdownlint
libs/windy-sounding/README.md

41-41: Punctuation: ':' (MD026, no-trailing-punctuation)
Trailing punctuation in heading


55-55: Punctuation: ':' (MD026, no-trailing-punctuation)
Trailing punctuation in heading


21-21: null (MD034, no-bare-urls)
Bare URL used


29-29: null (MD034, no-bare-urls)
Bare URL used


23-23: null (MD036, no-emphasis-as-heading)
Emphasis used instead of a heading

Additional comments not posted (12)
libs/windy-sounding/generate-manifest.js (2)

3-3: Updated import path approved.

The change in the import path to pluginConfig from a new location is consistent with the restructuring of the configuration management in the project.


8-8: Manifest generation logic is correct.

The logic to generate and write the manifest file using pluginConfig is correctly implemented.

libs/windy-sounding/package.json (4)

15-15: Addition of Svelte Vite plugin approved.

The inclusion of @sveltejs/vite-plugin-svelte is appropriate for supporting Svelte in the project's build process.


22-22: Update to Svelte approved with a verification request.

The update to svelte version ^4.2.18 aligns with the recent addition of the Svelte Vite plugin and should be tested to ensure it integrates smoothly with the project's existing Svelte components.

Verification successful

Update to Svelte approved with no immediate compatibility issues found.

The update to svelte version ^4.2.18 has been verified, and no deprecated features were found in the existing Svelte components, indicating compatibility with the current codebase.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify compatibility of the updated Svelte version with existing components.
# Test: Run Svelte component tests and check for deprecation warnings or errors.
rg --type svelte --files-with-matches 'svelte' --exec cat {} | grep -i 'deprecated'

Length of output: 492



Script:

#!/bin/bash
# Description: Verify compatibility of the updated Svelte version with existing components.
# Test: Run Svelte component tests and check for deprecation warnings or errors.
rg --type svelte --files-with-matches 'svelte' | xargs cat | grep -i 'deprecated'

Length of output: 110



Script:

#!/bin/bash
# Description: Verify compatibility of the updated Svelte version with existing components.
# Test: Run Svelte component tests and check for deprecation warnings or errors.
fd --extension svelte | xargs cat | grep -i 'deprecated'

Length of output: 56


18-18: Updates to Redux and Redux-Thunk approved with a verification request.

The updates to redux and redux-thunk are important for maintaining the currency and security of the project. Verify these updates to ensure they integrate well with the existing codebase.

Verification successful

The initial attempt to verify the integration of updated Redux and Redux-Thunk failed due to an incorrect usage of the rg command. We need to correct the script to properly search for deprecation warnings and integration issues in the codebase.


The second attempt to verify the integration of updated Redux and Redux-Thunk failed due to an unrecognized file type error. We need to correctly specify the file types and search for deprecation warnings related to Redux and Redux-Thunk.


The script executed successfully but did not produce any output, indicating no deprecation warnings related to Redux and Redux-Thunk were found. To ensure the updated dependencies do not introduce any other integration issues, we should check for any errors or warnings related to Redux and Redux-Thunk in the codebase.


Updates to Redux and Redux-Thunk verified successfully.

No deprecation warnings, errors, or warnings related to Redux and Redux-Thunk were found in the codebase, suggesting that the updates do not introduce any integration issues.

  • libs/windy-sounding/package.json:
    • Line 18: "react-redux": "^9.1.2"
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify integration of updated Redux and Redux-Thunk with the project.
# Test: Check for integration issues or deprecation warnings in the console logs.
rg --type js,jsx,tsx --files-with-matches 'redux' --exec cat {} | grep -i 'deprecate'

Length of output: 494



Script:

#!/bin/bash
# Description: Verify integration of updated Redux and Redux-Thunk with the project.
# Test: Check for integration issues or deprecation warnings in the console logs.
rg --type js,jsx,tsx 'deprecate' | grep -i 'redux'

Length of output: 83



Script:

#!/bin/bash
# Description: Verify integration of updated Redux and Redux-Thunk with the project.
# Test: Check for integration issues or deprecation warnings in the console logs.
rg --type-add 'js:*.js' --type-add 'jsx:*.jsx' --type-add 'tsx:*.tsx' 'deprecate' | grep -i 'redux'

Length of output: 97



Script:

#!/bin/bash
# Description: Verify integration of updated Redux and Redux-Thunk with the project.
# Test: Check for any errors or warnings related to Redux and Redux-Thunk in the codebase.
rg --type-add 'js:*.js' --type-add 'jsx:*.jsx' --type-add 'tsx:*.tsx' 'redux' | grep -i 'error\|warning'

Length of output: 104


17-17: Update to Preact approved with a verification request.

The update to preact version 10.22.0 is generally beneficial but should be thoroughly tested to ensure compatibility with existing components.

libs/windy-sounding/project.json (2)

17-17: Addition of development mode configuration approved.

The inclusion of a specific development mode in the build configurations facilitates easier testing and debugging, aligning with best practices for modern development workflows.


65-67: Changes to prepare executor commands approved with a verification request.

The restructuring of build commands and the introduction of an environment variable (BUILD_PLUGIN_CONFIG) enhance control over the build process. Verify that this environment variable is correctly set and utilized across the build scripts.

libs/windy-sounding/vite.config.ts (2)

57-68: Conditional build logic approved with a functionality verification request.

The introduction of conditional build logic based on the BUILD_PLUGIN_CONFIG environment variable allows for targeted builds, enhancing the build process's flexibility. Verify that this logic functions as intended across different build environments.


33-33: Updated fs allow path approved with a security review request.

Expanding the fs allow path to ['../..'] increases flexibility but should be reviewed to ensure it does not introduce security vulnerabilities by allowing access to sensitive directories.

README.md (1)

39-39: Updated URL for detailed plugin information.

The updated link provides clearer pathways for users seeking more information about the flyXC Soundings plugin. This is a positive change for user accessibility and documentation clarity.

libs/windy-sounding/README.md (1)

Line range hint 1-39: Enhanced Installation Instructions and Plugin Details.

The revised sections provide clearer instructions and more detailed information about the plugin's features and installation process. This enhances user understanding and accessibility.

@vicb vicb merged commit 3b1390b into master Jun 21, 2024
4 checks passed
@vicb vicb deleted the wsp-action branch June 21, 2024 15:38
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