LYD031106 commented on PR #2911: URL: https://github.com/apache/incubator-hugegraph/pull/2911#issuecomment-3747596231
@imbajin In the current CI/CD process, when a test task starts, backend server instance (such as memory, MySQL, HBase, etc.) is installed and launched. Recent PRs [#2911](https://github.com/apache/incubator-hugegraph/pull/2911) and [#2888](https://github.com/apache/incubator-hugegraph/pull/2888) have introduced test cases targeted at specific backends (e.g., MySQL or HBase). However, when the CI/CD job is configured to run with the memory backend, no MySQL or HBase instances are actually launched in the environment. This causes the test cases that depend on those specific backends to fail. The current fix is to use the Assume mechanism in the relevant test methods. Before executing a test, it checks the type of backend currently running. If the backend does not meet the test's requirements, the test is skipped, preventing build failures due to environment mismatch. Is this solution appropriate, and are there any best practices for current projects? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
