Skip to content

[Enhancement] Require datus-semantic-dosi>=0.1.9 in the ci group (lineage_graph, authoring contract, parameterized query_metrics) - #1393

Merged
stukid merged 2 commits into
Datus-ai:mainfrom
liuyufei9527:dosi-pin-0.1.9
Sep 4, 2026
Merged

stukid merged 2 commits into
Datus-ai:mainfrom
liuyufei9527:dosi-pin-0.1.9

Conversation

@liuyufei9527

@liuyufei9527 liuyufei9527 commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Why

datus-semantic-dosi 0.1.9 is on PyPI (Datus-ai/datus-semantic-adapter#92; pins dosi-engine==0.1.9 — 0.1.8 was never published). It is the release whose adapter APIs #1392 probes for: the authoring contract, compiled validation evidence, and params on query_metrics. It also adds DosiAdapter.lineage_graph, which Datus-backend's POST /hub/lineage passes through.

With the ci group still on 0.1.7, a local uv sync --group ci installs an adapter on which every one of those paths takes the "upgrade the adapter first" fallback — the group was exercising the fallbacks, not the feature.

Solution

  • pyproject.toml: [dependency-groups] ci pin datus-semantic-dosi==0.1.7 → ==0.1.9. Platform marker unchanged (dosi-engine 0.1.9 ships manylinux x86_64/aarch64 and macOS arm64 wheels).
  • Comment updated to say what this pin is and isn't: a dependency group is never inherited by Datus-backend's resolution, so it is kept in step with the backend's own pin (Datus-ai/Datus-backend#505) for consistency, not as an ordering constraint — the two PRs can merge in either order.
  • uv.lock regenerated: datus-semantic-dosi 0.1.7 → 0.1.9, dosi-engine 0.1.7 → 0.1.9; nothing else moved (23 lines).

CI behaviour is unchanged: run-ut-and-coverage.yml reinstalls the adapter from the datus-semantic-adapter main checkout right after uv sync --locked --group ci, so this affects local uv sync resolution and the lockfile only (same situation #1366 described).

Test Cases

No new tests — dependency metadata only.

  • uv lock produced the minimal diff above; uv lock --check is clean.
  • With datus-semantic-dosi==0.1.9 + dosi-engine==0.1.9 installed against this tree (3881ef3), the 34 unit-test files mentioning dosi pass: 1925 passed, 99 skipped.
  • The same adapter build was verified end-to-end through Datus-backend's lineage endpoint (byte-equal to osi-engine 0.1.9's spec expectation); details in Datus-ai/Datus-backend#505.

🤖 Generated with Claude Code

Backport

  • release/0.3.1
  • release/0.3.2
  • release/0.3.3
  • release/0.3.4
  • release/0.3.5
  • release/0.3.6
  • release/0.3.7
  • release/0.3.8
  • release/0.3.9
  • release/0.4.0

Summary by CodeRabbit

  • Chores
    • Updated the pinned CI adapter dependency to version 0.1.9.
    • Added updated guidance describing metric lineage graphs and parameterized metric queries.

Summary by CodeRabbit

  • Chores
    • Updated the CI dependency requirement to allow version 0.1.9 and compatible newer releases.
    • Clarified the dependency compatibility guidance and supported platform requirements.

…ing contract, parameterized query_metrics)

datus-semantic-dosi 0.1.9 is on PyPI (Datus-ai/datus-semantic-adapter#92) and
pins dosi-engine==0.1.9 (0.1.8 was never published). It is the release whose
APIs Datus-ai#1392 probes for — the authoring contract, compiled validation evidence
and `params` on query_metrics — plus DosiAdapter.lineage_graph, which
Datus-backend's POST /hub/lineage passes through. On 0.1.7 those paths fall
back to the "upgrade the adapter first" branches, so the ci group was testing
the fallbacks rather than the feature.

- pyproject.toml: `[dependency-groups] ci` pin 0.1.7 → 0.1.9; platform marker
  unchanged. Comment notes that, being a dependency group, this pin is never
  inherited by Datus-backend's resolution — it is kept in step with the
  backend's own pin (Datus-ai/Datus-backend#505) for consistency only.
- uv.lock regenerated: datus-semantic-dosi 0.1.7 → 0.1.9, dosi-engine 0.1.7 →
  0.1.9; nothing else moved.

CI behaviour is unchanged: run-ut-and-coverage.yml reinstalls the adapter from
the datus-semantic-adapter main checkout after `uv sync --locked --group ci`,
so this affects local `uv sync` resolution and the lockfile only.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 3e6f09b2-7324-4e15-92f2-6c5850d64b60

📥 Commits

Reviewing files that changed from the base of the PR and between 4774cef and 6d22f14.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml
🚧 Files skipped from review as they are similar to previous changes (1)
  • pyproject.toml

Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The CI dependency group changes datus-semantic-dosi from an exact 0.1.9 pin to a >=0.1.9 floor constraint. The comment documents release pairing and adapter features. Platform restrictions remain unchanged.

Changes

Adapter dependency update

Layer / File(s) Summary
Update adapter pin and release contract
pyproject.toml
The CI dependency constraint changes to >=0.1.9. The comment documents release-for-release dosi-engine pairing and adapter features. The platform marker remains unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 6d22f

The dependency update has no identified merge-blocking risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies the main change: updating the CI requirement to datus-semantic-dosi>=0.1.9. It also names the key APIs and features provided by that version. Although long, it remains …
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Title check

Explanation

The title accurately identifies the main change: updating the CI requirement to datus-semantic-dosi>=0.1.9. It also names the key APIs and features provided by that version. Although long, it remains clear and specific.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

📊 PR Test Coverage Report

Metric Value Threshold Status
Overall Coverage 25.64% - ℹ️
Diff Coverage 100.00% 80% ✅
PR Tests 260/261 passed, 1 skipped pass ✅
Coverage Details

Diff Coverage

Diff: origin/main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.

Test Failure Details

260/261 tests passed, 1 skipped


Generated by pytest-cov + diff-cover

Every adapter release since 0.1.7 pins its dosi-engine release-for-release, so
any version the resolver picks is an installable pair; the exact pin bought
nothing here beyond what the floor gives. Lockfile diff is the specifier only —
it still resolves to 0.1.9.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@liuyufei9527 liuyufei9527 changed the title [Enhancement] Pin datus-semantic-dosi to 0.1.9 (lineage_graph, authoring contract, parameterized query_metrics) [Enhancement] Require datus-semantic-dosi>=0.1.9 in the ci group (lineage_graph, authoring contract, parameterized query_metrics) Sep 3, 2026
@stukid
stukid added this pull request to the merge queue Sep 4, 2026
Merged via the queue into Datus-ai:main with commit 4dad932 Sep 4, 2026
12 of 13 checks passed
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.

3 participants