Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .dagger/src/ci/fleet_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class OwnedRepositoryPayload:
name: str
archived: bool
default_branch: str
private: bool = False


@dataclass(frozen=True)
Expand All @@ -59,7 +60,9 @@ def discover_consumers(transport: GitHubTransport, owner: str) -> tuple[str, ...
return tuple(
repository.name
for repository in list_repositories(transport, owner)
if not repository.archived and consumes_central(transport, owner, repository)
if not repository.archived
and not repository.private
and consumes_central(transport, owner, repository)
)


Expand Down
12 changes: 9 additions & 3 deletions .dagger/tests/test_fleet_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def _json(value: object, status: int = 200) -> HttpResponse:
return HttpResponse(status=status, body=json.dumps(value))


def _repo(name: str, *, archived: bool = False) -> dict[str, object]:
return {"name": name, "archived": archived, "default_branch": "main"}
def _repo(name: str, *, archived: bool = False, private: bool = False) -> dict[str, object]:
return {"name": name, "archived": archived, "default_branch": "main", "private": private}


def _config(name: str, *sources: str) -> HttpResponse:
Expand All @@ -82,13 +82,19 @@ def _config_path(name: str) -> str:
def _fleet_responses() -> dict[str, HttpResponse]:
first_page = [_repo(f"filler-{index}") for index in range(98)]
first_page += [_repo("consumer"), _repo("unrelated")]
second_page = [_repo("no-dagger"), _repo("retired", archived=True), _repo("covered")]
second_page = [
_repo("no-dagger"),
_repo("retired", archived=True),
_repo("private-consumer", private=True),
_repo("covered"),
]
return {
LISTING.format(page=1): _json(first_page),
LISTING.format(page=2): _json(second_page),
_config_path("consumer"): _config("consumer", CI_SOURCE),
_config_path("unrelated"): _config("unrelated", OTHER_SOURCE),
_config_path("retired"): _config("retired", CI_SOURCE),
_config_path("private-consumer"): _config("private-consumer", CI_SOURCE),
_config_path("covered"): _config("covered", OTHER_SOURCE, CI_SOURCE),
}

Expand Down
97 changes: 64 additions & 33 deletions .dagger/uv.lock

Large diffs are not rendered by default.

97 changes: 64 additions & 33 deletions modules/cloudflare-pages/.dagger/uv.lock

Large diffs are not rendered by default.

97 changes: 64 additions & 33 deletions modules/portfolio-foundation/.dagger/uv.lock

Large diffs are not rendered by default.

97 changes: 64 additions & 33 deletions modules/python-package/.dagger/uv.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
)
EXPECTED_FINDINGS: Final = 2
STATELESS_CANARY_MISS: Final = "guard-canary-missed: stateless"
PACKAGE_REPOSITORY: Final = "hseshadr/edgeproc-core"
PACKAGE_URL: Final = "https://github.com/hseshadr/edgeproc-core.git"
PACKAGE_SHA: Final = "0bf2a8394b205f099b14b71303627ef871715622"
PACKAGE_REPOSITORY: Final = "gainratio/edgeproc-core"
PACKAGE_URL: Final = "https://github.com/gainratio/edgeproc-core.git"
PACKAGE_SHA: Final = "bda5f46bcb73bdebb543252689c57fb5179b30d4"
PACKAGE_PROJECT: Final = "edgeproc-core"
PACKAGE_VERSION: Final = "0.4.3"
PACKAGE_PRODUCT_COUNT: Final = 2
Expand Down
91 changes: 61 additions & 30 deletions tests/dagger/python_consumer/.dagger/uv.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tests/dagger/typescript_consumer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const CACHE_NAMESPACE = "fixture-typescript-v1"
const SECRET_CANARY = ["typescript", "private", "canary"].join("-")
const ARTIFACT_NAME = "typescript-artifact.txt"
const TRANSPORT_MARKERS = ["api.cloudflare.com", "api.github.com", "wrangler"]
const PACKAGE_REPOSITORY = "hseshadr/edgeproc-core"
const PACKAGE_URL = "https://github.com/hseshadr/edgeproc-core.git"
const PACKAGE_SHA = "0bf2a8394b205f099b14b71303627ef871715622"
const PACKAGE_REPOSITORY = "gainratio/edgeproc-core"
const PACKAGE_URL = "https://github.com/gainratio/edgeproc-core.git"
const PACKAGE_SHA = "bda5f46bcb73bdebb543252689c57fb5179b30d4"
const PACKAGE_PROJECT = "edgeproc-core"
const PACKAGE_VERSION = "0.4.3"

Expand Down
Loading