Skip to content

docs: update README and Read the Docs build - #113

Merged
uniqueg merged 11 commits into
devfrom
docs/readme-and-rtd
Oct 20, 2026
Merged

uniqueg merged 11 commits into
devfrom
docs/readme-and-rtd

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Updates the README and the Read the Docs build (#80). Builds on #112 (releases from tags), which is merged; dev was merged into this branch.

README:

  • Table of contents; sections regrouped (Installation, Usage, API, Authentication, Access control, Service info, Duplicate services, Verified services, Configuration, Development, Contributing, Versioning and releases).
  • API (new): the GA4GH Service Registry 1.0.0 endpoints are unchanged; everything else is added as extra endpoints; table of all endpoints and who may call them (checked against the specs' security settings and the access control policies); extensions such as pagination, search or filters will be reconsidered with the upcoming new Service Registry spec.
  • Authentication (new): which calls are public, sending bearer tokens, 401 vs. 403, getting an LS Login token, issuer and audience rules.
  • Kubernetes (new): links the Helm chart docs and FOCA's deployment guide.
  • Development (new): setup, tests (no database needed), linters, pre-commit, local docs build.
  • Codecov badge instead of Coveralls; current deployment URL (https://registry.elixir-on.cloud/; the old one returns 503); HTTPS clone URL; typos.

Read the Docs:

  • Installs the package, so autodoc can import the modules (the published module pages were empty); fetches tags for the version (setuptools-scm); fail_on_warning: true.
  • conf.py: paths from the file's location, namespace packages documented (cloud_registry.service_models), no duplicate-object warnings; index page fixed ("ELIXR" typo, dangling indices entry, short intro).

Closes #80

Verification

  • Local Sphinx build with -W --keep-going (Python 3.10 as on Read the Docs, and 3.12): no warnings; module pages have content.
  • All relative links and anchors resolve; external links checked (HTTP 200), except the API on registry.elixir-on.cloud, which isn't served there yet (the README doesn't claim it is).
  • pytest: 389 passed; ruff check: passed.
  • Reviews (adversarial and quality): docs checked against the specs, policies and FOCA's auth code; fixed: PUT with new identifiers (admins only), tag fetch on Read the Docs no longer hides errors, HTTPS clone URL, history notes removed from the API section, shared setuptools-scm pin noted.
  • Not run: pre-commit run (hook repositories couldn't be fetched in the sandbox; hooks run individually instead).

CI: see checks.

🤖 Generated with Claude Code

Summary by Sourcery

Improve project documentation and ensure Read the Docs publishes complete, warning-free API documentation.

Bug Fixes:

  • Fix Read the Docs API documentation builds so autodoc-generated module pages contain content and warnings fail the build.

Enhancements:

  • Reorganize and substantially expand the README with installation, API, authentication, access control, configuration, deployment, development, and release guidance.
  • Document the registry's endpoints, authorization requirements, deployment options, and current service information for users and operators.
  • Improve Sphinx configuration for reliable path resolution, version discovery, namespace-package documentation, and generated API pages.

Build:

  • Update the Read the Docs build to install the package and fetch Git tags required for version discovery.

Documentation:

  • Refresh links, badges, deployment URLs, cloning instructions, and other README details.

uniqueg and others added 10 commits October 20, 2026 22:09
Take the package version from Git tags (setuptools-scm). Signed `vX.Y.Z`
tags on `main` trigger a release workflow: it builds and pushes the
image as `X.Y.Z` (and `latest` for the highest release), packages the
Helm chart with version and appVersion from the tag, and creates a
GitHub release with the chart attached, after approval in the `release`
environment. Images from `dev` are tagged `dev` and `sha-<commit>` in
the `dev-images` environment; the date tags and
philips-software/docker-ci-scripts are gone. The chart takes the image
tag from the new value `cloud_registry.tag`, which defaults to the
chart's appVersion.

Closes #81

BREAKING CHANGE: Docker Hub `latest` now points to the latest release,
not to the latest `dev` build; use `dev` or `sha-<commit>` for those.
Date-tagged images are no longer pushed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Scope the release concurrency group per tag, so that a run waiting
  for approval is not cancelled by the run of another tag.
- Decide `latest` in the `publish` job, after approval, from stable
  release tags merged into `main`, so that re-runs of older releases
  and stray tags do not move or freeze it.
- Accept pre-release tags (`vX.Y.ZaN`, `bN`, `rcN`): GitHub
  pre-release, chart version `X.Y.Z-rcN`, never `latest`.
- Check out the commit verified by `prepare` in `publish`.
- Build and load the release image first, check that the app reports
  the release version, then push.
- Pass the version build argument in Docker Compose, and check it in
  the smoke test.
- Pin setuptools-scm for dev image versions in requirements_dev.txt
  (as a constraint), where Dependabot updates it.
- README: tag requirements, pre-releases, environment-only Docker Hub
  secrets and the tag ruleset.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Check that the installed package version and the setuptools-scm
fallback version are valid PEP 440 versions. Compare the default image
tag with the chart's appVersion, package charts with pre-release
versions, and cover registries with a port and a tag.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Build the release image once, check its version, then push exactly
  that image; log in to Docker Hub only after the check.
- Push the version tag first; decide `latest` last, from freshly
  fetched tags on `main`, then push `latest` and pass the same decision
  to the GitHub release (also on reruns).
- Accept canonical versions only (no leading zeros), also when ranking
  stable releases for `latest`.
- Require a signature verified by GitHub (API of the tag object)
  instead of looking for an armored signature block.
- Tests: use `packaging` for PEP 440 versions, check that
  SETUPTOOLS_SCM_PRETEND_VERSION is honoured and that a tag `v1.2.3`
  yields `1.2.3`; cover `a`/`b` pre-release chart versions. Declare
  `packaging` and `tomli` (Python 3.10) in requirements_dev.txt.
- Chart placeholder `version: 0.0.0`; docs: verified signatures, the
  repository settings the workflows rely on, and no release number
  before the first release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Sphinx config read the version from pyproject.toml, which no longer
has one, so the Read the Docs build failed. Derive it with
setuptools-scm instead (the package is not installed for the docs).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
They are generated by sphinx-apidoc on each build and were committed by
mistake; ignore them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	deployment/Chart.yaml
#	deployment/values.yaml
#	tests/helm.py
#	tests/test_chart.py
With charts released from Git tags (0.3.0 and later) and the
repository chart at 0.0.0, there is no chart version 4. Refer to the
charts 2.x and 3.0.0 as the legacy charts and to the new one as the
current chart, in the upgrade guide, the template comments and the
error messages of the removed `cloud_registry.appName` and of upgrades
of legacy releases, and in the tests that match them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
README: table of contents; new API (GA4GH endpoints unchanged, table of
all endpoints and who may call them), Authentication, Kubernetes and
Development sections; Codecov badge; current deployment URL; typos.
Read the Docs: install the package, fetch tags for the version, fail on
warnings, document namespace packages, fix the index page and its
"ELIXR" typo.

Closes #80

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Clone via HTTPS, note that new identifiers can only be registered by
admins with PUT, drop history notes from the API section, fetch tags
on Read the Docs without hiding errors, and note the shared
setuptools-scm pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

The PR refreshes the project documentation and makes the Read the Docs pipeline produce version-aware, populated API pages by installing the package, fetching tags, resolving paths robustly, and failing on warnings. The README is reorganized into a navigable guide with detailed API authorization, authentication, deployment, configuration, development, and release documentation, along with corrected links and project metadata.

File-Level Changes

Change Details Files
Reorganized and substantially expanded the README to document installation, usage, API behavior, authentication, access control, deployment, configuration, development, and release information.
  • Added an endpoint and authorization matrix covering GA4GH and registry-specific operations.
  • Documented bearer-token authentication, issuer/audience validation, 401/403 behavior, and LS Login token acquisition.
  • Added Docker Compose and Kubernetes/Helm deployment guidance, configuration details, service lifecycle behavior, and local development commands.
  • Updated deployment links, badges, clone URL, anchors, and other stale or incorrect README content.
README.md
Updated the Read the Docs build so versioned, importable API documentation is generated reliably and warnings fail the build.
  • Installs the package and documentation requirements before Sphinx runs.
  • Fetches complete Git history and tags for setuptools-scm version resolution.
  • Uses paths relative to conf.py and enables implicit namespace package documentation for service models.
  • Configures autodoc generation to avoid duplicate attribute output and fixes the documentation index.
.readthedocs.yaml
docs/api/conf.py
docs/api/index.rst
docs/api/requirements.txt

Assessment against linked issues

Issue Objective Addressed Explanation
#80 Bring the README up to date with authentication and public endpoint access, configuration and deployment guidance, and development setup; also correct Compose commands, badges, deployment URLs, links, and typos. ✅
#80 Make the Read the Docs build install the package and documentation requirements, fail on warnings, and generate usable API module pages. ✅
#80 Link readers to the Helm chart documentation and the FOCA Kubernetes deployment guide. ✅

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Base automatically changed from build/release-from-tags to dev October 20, 2026 21:39
#112 was squash-merged into dev (2737709); its tree equals the
branch base 8d15276, so conflicts are resolved with this branch's
versions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2737709) to head (4848c8e).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #113   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          573       573           
=========================================
  Hits           573       573           

☔ 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.

@uniqueg
uniqueg marked this pull request as ready for review October 20, 2026 21:44

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 98771b3 into dev Oct 20, 2026
11 checks passed
@uniqueg
uniqueg deleted the docs/readme-and-rtd branch October 20, 2026 21:46
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.

Docs: update README and Read the Docs build

1 participant