Skip to content

Conversation

@paxiaatucsdedu
Copy link
Member

@paxiaatucsdedu paxiaatucsdedu commented Nov 6, 2025

Summary

Resolved CI workflow errors, lint errors, and integration test compile errors to ensure all checks pass for both libs/oci and libs/oracledb packages.

Problem

  1. The existing CI workflow (check_diffs.yml) was failing due to:
    The action ana06/get-changed-files@v2.2.0 is not allowed in oracle/langchain-oracle because all actions must be from a repository owned by your enterprise, created by GitHub, or match one of the patterns: aquasecurity/setup-trivy*, aquasecurity/trivy-action*, docker/*, gradle/actions/wrapper-validation*, gradle/wrapper-validation-action*, microsoft/setup-msbuild@v1.0.2, ossf/scorecard-action*, ruby/setup-ruby*, slsa-framework/slsa-github-generator*.

  2. Make lint errors.

  3. Compile-integration-test errors.

Solution

  1. CI workflow

    • Renamed: check_diffs.yml → CI.yml
    • Removed: Dependency on ana06/get-changed-files action and file diff detection logic
    • Removed: build job that performed file comparison
    • Simplified: All tests now run unconditionally on both libs/oci and libs/oracledb to avoid using restricted third-party actions
    • Updated Poetry from 1.7.1 to 2.2.1 in CI-related workflows:
  2. Fix make lint errors

  3. Fix compile-integration-test errors

    • Added langgraph = "^0.2.0" to [tool.poetry.group.test_integration.dependencies]
    • Created placeholder test marked with pytest.mark.compile to ensure at least one test runs during compilation check

Renamed check_diffs.yml to CI.yml and refactored workflow to remove dynamic directory detection, now explicitly linting and testing 'libs/oci' and 'libs/oracledb'. Updated Poetry version to 2.2.1 in all workflow files for consistency and added workflow_dispatch for manual CI triggers.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 6, 2025
Simplify _lint.yml.
Rephrase OCI code base to pass make lint checks.
Fix make lint error:
tests/unit_tests/llms/test_oci_model_deployment_endpoint.py:60: error: Missing named argument "response" for "HTTPError"  [call-arg]
Found 1 error in 1 file (checked 29 source files)
Use Union type to pass make lint check:

tests/integration_tests/vectorstores/test_oraclevs.py:1891: error: X | Y syntax for unions requires Python 3.10  [syntax]
tests/integration_tests/vectorstores/test_oraclevs.py:2028: error: X | Y syntax for unions requires Python 3.10  [syntax]
Found 2 errors in 1 file (checked 22 source files)
make: *** [Makefile:33: lint] Error 1
Add LangGraph and related packages for integration tests.
Introduces a placeholder test in the OCI integration tests to ensure no errors are raised when no tests are selected.
@YouNeedCryDear
Copy link
Member

Seems like the lint and format has changed which caused a lot of unnecessary difference. @paxiaatucsdedu

@paxiaatucsdedu
Copy link
Member Author

paxiaatucsdedu commented Nov 7, 2025

Seems like the lint and format has changed which caused a lot of unnecessary difference. @paxiaatucsdedu

Have to change some lint and format to pass the make lint tests. @YouNeedCryDear

Refactor to pass make lint checks
…b from the CI workflow

Deleted test_placeholder.py files and the 'compile' pytest marker from both oci and oracledb libraries. Also removed the compile-integration-tests job from the CI workflow, as these placeholders are no longer needed.
This commit removes unnecessary '# noqa: E501' comments throughout the codebase and reformats long lines for improved readability. Docstrings, function signatures, and code examples have been wrapped or split across lines where appropriate. No functional changes were made.
Corrects the closing quote in the 'arguments' field of the test_meta_tool_calling test to ensure the escaped JSON is properly formatted.
Corrects the escaped JSON string in the 'arguments' field of the test_meta_tool_calling test to ensure proper formatting and accurate test coverage.
Split long error messages and test strings across multiple lines to improve readability and remove unnecessary noqa: E501 comments. Also reformatted SQL condition string construction in oraclevs.py for better clarity.
Eliminates the duplicate 'poetry check' command, leaving only 'poetry check --lock' to validate the Poetry configuration and lock file.
@YouNeedCryDear YouNeedCryDear merged commit 6a2315c into oracle:main Nov 13, 2025
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants