Skip to content

[DOC-5942] Fix build-directory-dependent API source links - #4413

Draft
sfc-gh-qding wants to merge 2 commits into
mainfrom
qding/DOC-5942-source-links
Draft

sfc-gh-qding wants to merge 2 commits into
mainfrom
qding/DOC-5942-source-links

Conversation

@sfc-gh-qding

@sfc-gh-qding sfc-gh-qding commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

API reference Source links can include incorrect paths because the resolver uses the build working directory. Resolve paths relative to the repository root, unwrap properties and decorated methods consistently, and omit links for objects outside the repository.

Test plan

  • Nine regression tests pass on Python 3.11 and 3.13; repository pytest passes on 3.11.
  • Full Sphinx 5.0.2 HTML build: no warnings.
  • Checked 1,181 rendered source URLs for repository-relative paths.
  • Black checks for new files and git diff --check pass.
  • CI and review before merge.

Generated with Snowflake CoCo

DOC-5942: repair and prevention

Companion historical repair: https://github.com/snowflake-eng/snowflake-prod-docs/pull/26445 fixes 8,340 already-generated Source links across versions 1.25.0–1.30.0. All 299 unique tagged source-file targets were verified. This SDK PR prevents recurrence; the companion repairs published artifacts. Keep DOC-5942 open until that repair is published and live links are verified.

CI follow-up

Corrected test import ordering and the required repository license header. Pinned isort 5.12.0, Black 22.3.0, flake8 5.0.4 and nine regression tests pass. Applied the supported NO-CHANGELOG-UPDATES documentation exemption. Earlier coverage failed with No data to combine after tests were skipped; the Jenkins Snowpark Connect failure remains unverified. New CI is pending.

Resolve source paths relative to the repository and test decorated methods and properties without importing Sphinx configuration.

Generated with [Snowflake CoCo](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-authored-by: Snowflake CoCo <noreply@snowflake.com>
@sfc-gh-qding sfc-gh-qding self-assigned this Oct 3, 2026
@sfc-gh-qding sfc-gh-qding added the NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md label Oct 7, 2026
Generated with [Snowflake CoCo](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-authored-by: Snowflake CoCo <noreply@snowflake.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.34%. Comparing base (adaaef2) to head (d5f4624).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4413      +/-   ##
==========================================
- Coverage   95.46%   95.34%   -0.13%     
==========================================
  Files         176      176              
  Lines       45271    45295      +24     
  Branches     7759     7766       +7     
==========================================
- Hits        43220    43188      -32     
- Misses       1270     1319      +49     
- Partials      781      788       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants