Skip to content

geotiff: golden corpus phase 4 PR 2, baseline-update docs (#1930)#2044

Merged
brendancol merged 2 commits into
mainfrom
1930-phase4-2-baseline-docs
May 18, 2026
Merged

geotiff: golden corpus phase 4 PR 2, baseline-update docs (#1930)#2044
brendancol merged 2 commits into
mainfrom
1930-phase4-2-baseline-docs

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Summary

Phase 4 PR 2 of the golden corpus plan in #1930 -- the last PR in the plan. Adds the contributor-facing page that explains how to bless intentional pixel-level baseline changes for the golden corpus.

Three files:

  • docs/source/contributing/index.rst: new top-level section. Currently has one entry (the corpus baselines page); future contributor docs land here.
  • docs/source/contributing/golden_corpus_baselines.rst: the substance. Covers what a corpus test failure means, the workflow for blessing an intentional baseline change, the workflow for adding a new fixture, and how the fast / slow split (phase 4 PR 1, geotiff: golden corpus phase 4 PR 1, fast/slow split (#1930) #2043) interacts with the matrix.
  • docs/source/index.rst: toctree entry for the new section.

The page is intentionally workflow-driven rather than reference-style: every section ends with concrete shell commands a contributor would actually run.

Test plan

  • docutils parses both new .rst files cleanly (no underline-too-short warnings, no broken role references beyond the expected :ref: / toctree ones that resolve under sphinx).
  • Inline GitHub links use absolute URLs because sphinx.ext.extlinks is not configured in docs/source/conf.py; :gh-issue: would not resolve.

Refs #1930. With this PR, the #1930 plan is fully landed: phases 1-2 already merged, phase 3 (six backend-wiring PRs: #2036, #2038, #2039, #2040, #2041, #2042) and phase 4.1 (#2043) open in parallel, and this PR closes phase 4.

Adds the contributor-facing page that explains how to bless
intentional pixel-level baseline changes for the golden corpus.

* ``docs/source/contributing/index.rst`` -- new contributing
  section, only entry today is the corpus baselines page.
* ``docs/source/contributing/golden_corpus_baselines.rst`` --
  what a corpus failure means, how to bless an intentional
  baseline change, how to add a new fixture, and how to use
  the fast / slow split (phase 4 PR 1).
* ``docs/source/index.rst`` -- toctree entry for the new section.

This is the last PR in the #1930 plan. Closes out the phase 4
ops set.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label May 18, 2026
* Add a note up front that the doc describes the system as of the
  full Phase 3 + Phase 4.1 PR set, so contributors do not chase a
  missing ``_marks.py`` while one of those PRs is still in flight.
* Replace the ``\`` line-continuation in the per-fixture
  regeneration example with a single-line invocation; the
  backslash form is POSIX-shell-only and would fail in ``cmd.exe``.
* Normalise file-path references to the full
  ``xrspatial/geotiff/tests/golden_corpus/<file>`` form where the
  text used the bare filename.
* Cross-link the corpus ``README.md`` from the Fast / Slow section
  rather than repeat its content; the two pages have different
  audiences (test-tree contributor vs docs-site reader) and the
  cross-reference is the lightest way to keep them aligned.
@brendancol brendancol merged commit 3f4051d into main May 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant