Repository navigation
chore: align contacts, labels and review docs - #197
Merged
Merged
Conversation
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]>
Reviewer's GuideThis 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 processsequenceDiagram
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
Flow diagram for repository email address validationflowchart 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]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
October 23, 2026 11:54
There was a problem hiding this comment.
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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyproject.tomlauthors and ininfo.contactofcloud_registry/api/additions.openapi.yaml. Alexander Kanitz stays listed as author by name (pyproject.toml, without e-mail;CITATION.cffas before). The vendored GA4GH specifications keep their upstream contact.software.*labels and the deprecatedmaintainerandmaintainer.organisationlabels. CI'sdocker/metadata-actionsetstitle,description,url,source,licenses,version,revisionandcreated, but notauthors,vendoranddocumentation, 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.name = "cloud-registry",homepagewithout.git.docs/contributing.mddescribes the actual process: automated reviews (Sourcery, GitHub Copilot) of every pull request, and a maintainer review of external contributions.test_repository_no_personal_email_addresses(next totest_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 scanstests/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
dev(the personal address) and passes on this branchpytest: 890 passed, 210 skippedpre-commit run(ruff, semgrep, ast-grep, ...),mypy,mkdocs build --strict: passDeclined review findings
Open questions
None.
Closes #194
🤖 Generated with Claude Code