Skip to content

chore: align contacts, labels and review docs - #197

Merged
uniqueg merged 2 commits into
devfrom
chore/contacts-labels-docs
Oct 23, 2026
Merged

uniqueg merged 2 commits into
devfrom
chore/contacts-labels-docs

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Contacts: [email protected], named as ELIXIR On-Cloud, replaces the personal address in the pyproject.toml authors and in info.contact of cloud_registry/api/additions.openapi.yaml. Alexander Kanitz stays listed as author by name (pyproject.toml, without e-mail; CITATION.cff as before). The vendored GA4GH specifications keep their upstream contact.
  • Image labels: OCI annotations replace the custom software.* labels and the deprecated maintainer and maintainer.organisation labels. CI's docker/metadata-action sets title, description, url, source, licenses, version, revision and created, but not authors, vendor and documentation, which the Dockerfile now sets. The Dockerfile also keeps the static values that CI sets (CI overrides them with the repository's metadata): images inherit the labels of their base image, and FOCA's image gets OCI labels of its own with chore: use the service contact address foca#434, so local builds would otherwise be labelled as FOCA.
  • Metadata nits: name = "cloud-registry", homepage without .git.
  • Review docs: docs/contributing.md describes the actual process: automated reviews (Sourcery, GitHub Copilot) of every pull request, and a maintainer review of external contributions.
  • Test: test_repository_no_personal_email_addresses (next to test_repository_generic, sharing its file iteration) checks that no tracked file has e-mail addresses other than the service address, the GA4GH address and example addresses; it also finds addresses with internationalized domain names, and also scans tests/test_config.py (Sourcery). Same as in FOCA.

Light lane: metadata, image labels, docs and a self-contained repository test only, no logic; the reviewer subagents were skipped and I reviewed the diff myself.

Verification

  • New test fails on dev (the personal address) and passes on this branch
  • pytest: 890 passed, 210 skipped
  • pre-commit run (ruff, semgrep, ast-grep, ...), mypy, mkdocs build --strict: pass
  • CI: all checks pass (tests with MongoDB 7.0 and mongomock, static analysis, CodeQL, docs, Helm chart, Docker Compose run, image scan, release readiness)

Declined review findings

  • Sourcery: recognize more address forms. Local parts with punctuation and punycode top-level domains are already found, as the pattern is searched, not anchored; only decomposed Unicode domain labels are missed, which files don't use.

Open questions

None.

Closes #194

🤖 Generated with Claude Code

Use [email protected], named as ELIXIR On-Cloud, as the
contact in the package metadata and in `info.contact` of the API
additions, instead of the personal address. Alexander Kanitz stays
listed as author by name.

Replace the custom and deprecated `maintainer` image labels with OCI
annotations, including `authors` and `vendor`, which CI does not set.
The Dockerfile keeps the static values that `docker/metadata-action`
also sets, as the image would otherwise inherit those of the FOCA
image in local builds.

Fix the spacing of the package name and the homepage URL, describe the
actual review process in the contributing guide, and add a test that
no tracked file has e-mail addresses other than the service address,
the GA4GH address of the vendored specifications and example
addresses.

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

sourcery-ai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This metadata-only cleanup standardizes project contacts, package metadata, OCI image labels, and contributor-review documentation, while adding a repository test that scans tracked text files for unauthorized personal email addresses, including internationalized domains.

Sequence diagram for pull request review process

sequenceDiagram
    participant PR as Pull Request
    participant AR as Sourcery and GitHub Copilot
    participant M as Maintainer
    participant CI as Automated Checks
    PR->>AR: Review every pull request
    AR-->>PR: Post review comments
    alt External contribution
        PR->>M: Request maintainer review
        M-->>PR: Post review comments
    end
    PR->>CI: Run checks
    CI-->>PR: Report results
    PR->>M: Resolve conversations and request merge
    M-->>PR: Squash-merge into dev
Loading

Flow diagram for repository email address validation

flowchart LR
    T[test_repository_no_personal_email_addresses] --> F[Iterate tracked files]
    F --> S[Scan text for email addresses]
    S --> A{Address allowed?}
    A -->|service, GA4GH, or example| P[Pass]
    A -->|personal or internationalized domain| X[Fail]
Loading

File-Level Changes

Change Details Files
Replaces personal contact metadata with the ELIXIR On-Cloud service identity while retaining Alexander Kanitz as a named author.
  • Updates package authors and OpenAPI contact email.
  • Removes the personal homepage suffix and preserves upstream vendored-spec contacts.
pyproject.toml
cloud_registry/api/additions.openapi.yaml
Migrates container metadata to OCI image annotations with explicit repository ownership and documentation values.
  • Replaces custom software and deprecated maintainer labels.
  • Adds title, description, URLs, license, authors, vendor, and documentation annotations designed to coexist with CI metadata overrides and inherited base-image labels.
Dockerfile
Aligns contributor documentation with the repository’s automated and maintainer review workflow.
  • Documents Sourcery and GitHub Copilot reviews for every pull request.
  • Clarifies maintainer review for external contributions and responding to review feedback.
docs/contributing.md
Adds repository-wide protection against accidental personal email addresses.
  • Extracts shared tracked-text iteration for repository checks.
  • Detects ASCII and internationalized-domain email addresses while allowing service, GA4GH, and example addresses.
  • Retains the existing identity-provider-specific value check.
tests/test_config.py

Assessment against linked issues

Issue Objective Addressed Explanation
#194 Use [email protected] as the contact address, named ELIXIR On-Cloud, while retaining Alexander Kanitz as an author by name in project and citation metadata. ✅
#194 Replace custom and deprecated Docker image labels with OCI labels, including org.opencontainers.image.authors, and remove duplicate labels. ✅
#194 Fix the pyproject.toml name spacing and homepage URL, and update contributing documentation to describe automated reviews for every PR and maintainer review of external contributions. ✅

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

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0425f47) to head (080b102).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #197   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines          959       959           
=========================================
  Hits           959       959           

☔ 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 23, 2026 11:54

@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 found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="tests/test_config.py" line_range="264" />
<code_context>


+# E-mail addresses, with a domain name of valid (also internationalized) labels
+EMAIL = re.compile(r"[\w.%+-]+@((?:[^\W_](?:(?:[^\W_]|-)*[^\W_])?\.)+[^\W\d_]{2,})")
+# The service address, and the GA4GH address of the vendored specifications
+ADDRESSES = {"[email protected]", "[email protected]"}
</code_context>
<issue_to_address>
**Valid personal emails go undetected**

When a tracked file contains a valid address with local-part punctuation such as an apostrophe or `!`, a punycode top-level domain, or combining marks in an internationalized domain label, `EMAIL` rejects these valid address forms, so `test_repository_no_personal_email_addresses` misses the personal addresses and passes.

Expand `EMAIL` to recognize these valid local-part characters and internationalized domain forms.
</issue_to_address>

### Comment 2
<location path="tests/test_config.py" line_range="244" />
<code_context>
+        (name, number, line)
         for name in files
         # This file names the values to find
         if name not in ("", "tests/test_config.py") and (ROOT / name).is_file()
         for number, line in enumerate(_text_lines(ROOT / name), start=1)
+    ]
</code_context>
<issue_to_address>
**Personal emails in the test file go unnoticed**

When a personal email address is added to `tests/test_config.py`, `_repository_lines()` excludes `tests/test_config.py`, so the repository check never scans that file and `test_repository_no_personal_email_addresses` passes.

Make `_repository_lines()` scan `tests/test_config.py` as well.

Also at `tests/test_config.py:277`, `tests/test_config.py:282`.
</issue_to_address>

Sourcery assessment

Approval pending. 2 findings to address first.

Blocking findings: tests/test_config.py:264, tests/test_config.py:244


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

Comment thread tests/test_config.py Resolved
Comment thread tests/test_config.py Resolved
The e-mail check also scans `tests/test_config.py`; only the check for
identity provider specific values skips it, as it names them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg merged commit 52ae3db into dev Oct 23, 2026
19 checks passed
@uniqueg
uniqueg deleted the chore/contacts-labels-docs branch October 23, 2026 12:04
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.

chore: align contacts, labels and review docs

1 participant