You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/02/27 13:56:54 UTC

(tooling-trusted-releases) branch arm updated (f06f2df5 -> 43f372e4)

This is an automated email from the ASF dual-hosted git repository.

arm pushed a change to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


    from f06f2df5 Validate session by type instead of name, and _ prefix unused sessions
     add c0900cf5 Add a task to validate quarantined files and reject or promote them
     add d88c4b0f Skip files that use overloads when fixing function order
     add fa010e35 Fix function ordering
     new 43f372e4 Change data models to Subset instead of Lax - closes #777

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 atr/db/__init__.py                    |  25 +++
 atr/docs/code-conventions.md          |  16 ++
 atr/hashes.py                         |   4 +
 atr/models/distribution.py            |  28 +--
 atr/models/sql.py                     |   1 +
 atr/paths.py                          |   8 +-
 atr/storage/writers/revision.py       |   6 +-
 atr/tasks/__init__.py                 |   3 +
 atr/tasks/quarantine.py               | 214 +++++++++++++++++++++++
 scripts/fix_order.py                  |   6 +
 tests/e2e/admin/test_revoke_tokens.py | 128 +++++++-------
 tests/e2e/announce/test_get.py        |  26 +--
 tests/e2e/committees/test_get.py      |  22 +--
 tests/e2e/root/conftest.py            |  14 +-
 tests/e2e/root/test_get.py            |   8 +-
 tests/unit/test_create_revision.py    |   2 +
 tests/unit/test_quarantine_task.py    | 312 ++++++++++++++++++++++++++++++++++
 17 files changed, 704 insertions(+), 119 deletions(-)
 create mode 100644 atr/tasks/quarantine.py
 create mode 100644 tests/unit/test_quarantine_task.py


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-trusted-releases) 01/01: Change data models to Subset instead of Lax - closes #777

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

arm pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit 43f372e4f529388e23aa0ad02c2f68f30c243cb9
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Fri Feb 27 13:55:58 2026 +0000

    Change data models to Subset instead of Lax - closes #777
---
 atr/models/distribution.py | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/atr/models/distribution.py b/atr/models/distribution.py
index 802ddde7..3dfae1b3 100644
--- a/atr/models/distribution.py
+++ b/atr/models/distribution.py
@@ -22,20 +22,20 @@ import pydantic
 from . import basic, schema, sql
 
 
-class ArtifactHubAvailableVersion(schema.Lax):
+class ArtifactHubAvailableVersion(schema.Subset):
     ts: int
 
 
-class ArtifactHubLink(schema.Lax):
+class ArtifactHubLink(schema.Subset):
     url: str | None = None
     name: str | None = None
 
 
-class ArtifactHubRepository(schema.Lax):
+class ArtifactHubRepository(schema.Subset):
     name: str | None = None
 
 
-class ArtifactHubResponse(schema.Lax):
+class ArtifactHubResponse(schema.Subset):
     available_versions: list[ArtifactHubAvailableVersion] = pydantic.Field(default_factory=list)
     home_url: str | None = None
     links: list[ArtifactHubLink] = pydantic.Field(default_factory=list)
@@ -44,45 +44,45 @@ class ArtifactHubResponse(schema.Lax):
     repository: ArtifactHubRepository | None = None
 
 
-class DockerResponse(schema.Lax):
+class DockerResponse(schema.Subset):
     tag_last_pushed: str | None = None
 
 
-class GitHubResponse(schema.Lax):
+class GitHubResponse(schema.Subset):
     published_at: str | None = None
     html_url: str | None = None
 
 
-class MavenDoc(schema.Lax):
+class MavenDoc(schema.Subset):
     timestamp: int | None = None
 
 
-class MavenResponseBody(schema.Lax):
+class MavenResponseBody(schema.Subset):
     start: int | None = None
     docs: list[MavenDoc] = pydantic.Field(default_factory=list)
 
 
-class MavenResponse(schema.Lax):
+class MavenResponse(schema.Subset):
     response: MavenResponseBody = pydantic.Field(default_factory=MavenResponseBody)
 
 
-class NpmResponse(schema.Lax):
+class NpmResponse(schema.Subset):
     name: str | None = None
     time: dict[str, str] = pydantic.Field(default_factory=dict)
     homepage: str | None = None
 
 
-class PyPIUrl(schema.Lax):
+class PyPIUrl(schema.Subset):
     upload_time_iso_8601: str | None = None
     url: str | None = None
 
 
-class PyPIInfo(schema.Lax):
+class PyPIInfo(schema.Subset):
     release_url: str | None = None
     project_url: str | None = None
 
 
-class PyPIResponse(schema.Lax):
+class PyPIResponse(schema.Subset):
     urls: list[PyPIUrl] = pydantic.Field(default_factory=list)
     info: PyPIInfo = pydantic.Field(default_factory=PyPIInfo)
 
@@ -91,7 +91,7 @@ class PyPIResponse(schema.Lax):
 # Our previous forms implementation typed platform as Any, which was insufficient
 # And this way we also get nice JSON from the Pydantic model dump
 # Including all of the enum properties
-class Data(schema.Lax):
+class Data(schema.Subset):
     platform: sql.DistributionPlatform
     owner_namespace: str | None = None
     package: str


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org