Skip to content

Add standard tests to CI workflow#62

Open
knqiufan wants to merge 5 commits intooceanbase:mainfrom
knqiufan:feature/add-standard-tests-ci
Open

Add standard tests to CI workflow#62
knqiufan wants to merge 5 commits intooceanbase:mainfrom
knqiufan:feature/add-standard-tests-ci

Conversation

@knqiufan
Copy link

Add a new test-standard job to the CI workflow to run LangChain standard tests.

close #40

Solution Description

This PR updates .github/workflows/ci.yml with the following changes:

  1. Added test-standard job that:

    • Sets up Python 3.14 environment with Poetry
    • Starts an OceanBase container (langchain_oceanbase_standard) for testing
    • Waits for OceanBase to be ready (detects "boot success!" in logs)
    • Runs standard unit tests from tests/unit_tests/
    • Runs standard integration tests (TestOceanbaseVectorStoreSync class which inherits from langchain_tests.integration_tests.VectorStoreIntegrationTests)
    • Cleans up the container after tests complete
  2. Updated test-summary job to:

    • Include test-standard in the needs array
    • Output the standard tests result in the summary

…nd improve SQL syntax in checkpointer.py for clarity and consistency
…g in OceanBase integration

- Introduced a comprehensive troubleshooting section in README.md covering common connection issues, vector dimension mismatches, index creation failures, and AI function support.
- Enhanced error handling in the OceanBase integration by replacing generic ValueErrors with specific OceanBase exceptions for better clarity and debugging.
- Updated exception handling in the OceanBaseCheckpointSaver and OceanbaseVectorStore classes to provide more informative error messages.
…guration

- Added a .pre-commit-config.yaml file to integrate pre-commit hooks for code quality checks, including trailing whitespace removal, YAML validation, and Ruff for linting.
- Updated the Makefile to include targets for installing and running pre-commit hooks, as well as a new target for testing coverage.
- Expanded .gitignore to exclude coverage-related files and directories.
- Updated pyproject.toml to include pre-commit and pytest-cov as development dependencies.
- Added coverage package to poetry.lock for test coverage measurement.
@knqiufan knqiufan mentioned this pull request Jan 31, 2026
3 tasks
@xxsc0529 xxsc0529 self-requested a review February 10, 2026 08:13
@xxsc0529
Copy link
Contributor

@knqiufan Thank you for your contribution. Can you resolve the PR conflict

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.

Add standard tests to CI workflow

2 participants