You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "arshadmohammad (via GitHub)" <gi...@apache.org> on 2024/09/26 13:43:23 UTC

[PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

arshadmohammad opened a new pull request, #219:
URL: https://github.com/apache/seatunnel-web/pull/219

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [ ] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on PR #219:
URL: https://github.com/apache/seatunnel-web/pull/219#issuecomment-2377043840

   integration test execution result using default h2 database
   ![image](https://github.com/user-attachments/assets/31da05e8-f8e0-4b77-97fd-b42c3b81f0c4)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on PR #219:
URL: https://github.com/apache/seatunnel-web/pull/219#issuecomment-2380417848

   With the removal of the dependency on an external database, integration tests can now run using an in-memory H2 database. However, the Seatunnel distribution is still required. 
   @Hisoka-X, could you provide guidance on how to run the integration tests as part of the PR CI process?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on PR #219:
URL: https://github.com/apache/seatunnel-web/pull/219#issuecomment-2377068193

   integration test execution result using mysql data by passing -DdbType=mysql
   ![image](https://github.com/user-attachments/assets/a3b3b5e7-d451-4169-b2d1-854410fce933)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X merged PR #219:
URL: https://github.com/apache/seatunnel-web/pull/219


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on PR #219:
URL: https://github.com/apache/seatunnel-web/pull/219#issuecomment-2381069328

   The test in CI in fact is trigger mvn script. Please refer https://github.com/apache/seatunnel/blob/dev/.github/workflows/backend.yml#L645
   
   We already have some config in https://github.com/apache/seatunnel-web/blob/main/.github/workflows/backend.yml#L161
   Just need add new script into `backend.yml`.
   
   > However, the Seatunnel distribution is still required.
   
   We can execute mvn install before test with seatunnel-web.
   1. Checkout seatunnel dev branch, https://github.com/apache/seatunnel/blob/dev/.github/workflows/backend.yml#L86
   2. execute mvn install and other script which execute in local before. (Like set `SEATUNNEL_HOME`)
   3. Run mvn test by mvn script.
   all these step can be done with github action `run` https://github.com/apache/seatunnel/blob/dev/.github/workflows/backend.yml#L315
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Improvement][Seatunnel-web] Support H2 database in integration tests [seatunnel-web]

Posted by "arshadmohammad (via GitHub)" <gi...@apache.org>.
arshadmohammad commented on PR #219:
URL: https://github.com/apache/seatunnel-web/pull/219#issuecomment-2380417043

   Thanks @Hisoka-X  for reviewing and merging this PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org