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

chore: Disable MSSql tests as test container is unable to accept connection #36451

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

abhvsn
Copy link
Contributor

@abhvsn abhvsn commented Sep 20, 2024

Description

Ref: https://theappsmith.slack.com/archives/C02GAUE9P5H/p1726806965773469

🔍 Cypress test results

Warning

Tests have not run on the HEAD eab6cef yet


Fri, 20 Sep 2024 10:21:35 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • Bug Fixes
    • Disabled test execution for the MssqlGetDBSchemaTest class to improve test suite performance.
    • Disabled test execution for the MssqlPluginTest class to streamline testing processes.
    • Disabled test execution for the RedisPluginTest class to enhance overall testing efficiency.

Copy link
Contributor

coderabbitai bot commented Sep 20, 2024

Walkthrough

The changes in this pull request involve the addition of the @Disabled annotation to three test classes: MssqlGetDBSchemaTest, MssqlPluginTest, and RedisPluginTest. This modification results in all tests within these classes being disabled, preventing them from executing during test runs until the annotations are removed.

Changes

File Change Summary
app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlGetDBSchemaTest.java Added @Disabled annotation to disable all tests.
app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlPluginTest.java Added @Disabled annotation to disable all tests.
app/server/appsmith-plugins/redisPlugin/src/test/java/com/external/plugins/RedisPluginTest.java Added @Disabled annotation to disable all tests.

Possibly related PRs

Suggested labels

Bug, ok-to-test

Poem

In the realm of code, a pause we find,
Tests now in slumber, a break for the mind.
With @Disabled they take a rest,
Awaiting the day to once more be the best.
So here's to the tests, on hold they stay,
Until the next run brings a brighter day! 🌟


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

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.

@github-actions github-actions bot added the skip-changelog Adding this label to a PR prevents it from being listed in the changelog label Sep 20, 2024
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)
app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlGetDBSchemaTest.java (1)

26-26: Tests disabled temporarily, as expected.

Class MssqlGetDBSchemaTest has been annotated with @Disabled, which will prevent all tests within this class from being executed. This change aligns with the pull request objective to disable the MSSql tests due to the test container being unable to accept connections.

However, disabling tests should be a temporary measure. I recommend creating a follow-up task to investigate and resolve the underlying issue with the test container, so that these tests can be re-enabled. Disabling tests reduces the test coverage and may allow bugs to slip through undetected.

Do you want me to open a GitHub issue to track the task of investigating and resolving the test container issue?

app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlPluginTest.java (1)

26-26: Remember to remove the @Disabled import before merging.

I see you've imported the @Disabled annotation, which is typically used to temporarily disable tests. Just remember to remove this import statement before merging the code, unless you intend to disable the tests permanently.

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1cf043c and 586e2c1.

Files selected for processing (2)
  • app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlGetDBSchemaTest.java (2 hunks)
  • app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlPluginTest.java (2 hunks)
Additional comments not posted (2)
app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlGetDBSchemaTest.java (1)

6-6: Good work importing the necessary annotation!

The import statement for org.junit.jupiter.api.Disabled is required to use the @Disabled annotation in the code. This is a necessary change.

app/server/appsmith-plugins/mssqlPlugin/src/test/java/com/external/plugins/MssqlPluginTest.java (1)

58-58: Disabling the tests looks good for now, but let's not forget to re-enable them later.

Adding the @Disabled annotation at the class level is the right approach to temporarily disable all the tests within the MssqlPluginTest class. This aligns with the PR objective to disable the MsSQL tests due to the connection issue with the test container.

However, it's important that we don't leave the tests disabled indefinitely. Let's create a follow-up task to investigate and resolve the underlying connection issue, so that we can re-enable these tests in a future PR.

Copy link

Failed server tests

  • com.external.plugins.RedisPluginTest#itShouldExecuteCommandWithArgs

AnaghHegde
AnaghHegde previously approved these changes Sep 20, 2024
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 (1)
app/server/appsmith-plugins/redisPlugin/src/test/java/com/external/plugins/RedisPluginTest.java (1)

43-43: Class, pay attention! The @Disabled annotation has been used to disable the entire test class.

This change aligns with the PR objective to temporarily disable the MSSql tests due to the current technical limitations with the test container.

However, it's important to keep in mind that disabling the entire test class will reduce the test coverage for the Redis plugin and may lead to undetected issues in the future.

As a gentle reminder, please create a follow-up task to investigate and resolve the underlying issue with the test container. Once resolved, make sure to re-enable these tests to maintain a high level of quality and catch any potential regressions.

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 586e2c1 and eab6cef.

Files selected for processing (1)
  • app/server/appsmith-plugins/redisPlugin/src/test/java/com/external/plugins/RedisPluginTest.java (2 hunks)
Additional comments not posted (1)
app/server/appsmith-plugins/redisPlugin/src/test/java/com/external/plugins/RedisPluginTest.java (1)

18-18: Looks good, class!

The import statement for the @Disabled annotation has been added correctly. This annotation will come in handy for disabling test classes or methods.

@abhvsn abhvsn requested a review from AnaghHegde September 20, 2024 10:49
@abhvsn abhvsn merged commit c6eaed4 into release Sep 20, 2024
19 checks passed
@abhvsn abhvsn deleted the chore/disable-mssql-tests branch September 20, 2024 11:39
Shivam-z pushed a commit to Shivam-z/appsmith that referenced this pull request Sep 26, 2024
…ection (appsmithorg#36451)

## Description
Ref:
https://theappsmith.slack.com/archives/C02GAUE9P5H/p1726806965773469

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!WARNING]
> Tests have not run on the HEAD
eab6cef yet
> <hr>Fri, 20 Sep 2024 10:21:35 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [x] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Bug Fixes**
- Disabled test execution for the `MssqlGetDBSchemaTest` class to
improve test suite performance.
- Disabled test execution for the `MssqlPluginTest` class to streamline
testing processes.
- Disabled test execution for the `RedisPluginTest` class to enhance
overall testing efficiency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@coderabbitai coderabbitai bot mentioned this pull request Oct 14, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Adding this label to a PR prevents it from being listed in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants