You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 35687d9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: modules/registration-janitor/README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ module "registration_janitor" {
37
37
38
38
Set `config.github_app_parameters.additional_apps_manifest` to the manifest's `{ name, arn }` reference and `additional_app_parameter_arns` to every ID, key, and optional installation-ID parameter ARN referenced by that manifest. The credential store uses the existing multi-App manifest format. All Apps must have the permissions and installation access required for the configured organization and runner groups. Include the corresponding KMS decryption access when using customer-managed keys.
39
39
40
-
Discovery selects an App for each group page; confirmation selects one for each candidate. Selection prefers the greatest observed remaining quota and skips Apps in a one-minute cooldown after throttling. Unobserved Apps begin with equal priority and use a random starting offset. App JWT and installation authentication use the same credential, with installation lookup scoped to the requested owner. Failed authentication tries another configured App. Rate-limit errors on an authenticated operation remain subject to the existing per-page or per-candidate retry behavior. With no manifest, the primary App remains the only choice.
40
+
Discovery selects an App for each group page; confirmation selects one for each candidate. Within an invocation, clients are reused per App, owner, runner type, and GitHub endpoint, avoiding repeated JWT creation, installation lookup, and token minting. Selection still runs before cache lookup so quota and cooldown can move subsequent work to another App. Clients are discarded between invocations; failed authentication is not cached. Selection prefers the greatest observed remaining quota and skips Apps in a one-minute cooldown after throttling. Unobserved Apps begin with equal priority and use a random starting offset. App JWT and installation authentication use the same credential, with installation lookup scoped to the requested owner. Failed authentication tries another configured App. Rate-limit errors on an authenticated operation remain subject to the existing per-page or per-candidate retry behavior. With no manifest, the primary App remains the only choice.
41
41
42
42
## Confirmation and failures
43
43
@@ -115,3 +115,7 @@ EC2 is the first bundled implementation, and this Terraform module configures it
115
115
Use one janitor deployment per compute provider and ownership scope, with a distinct resource prefix and disjoint runner-name ownership. Multiple deployments can run concurrently for different providers without combining their IAM permissions, queues, or execution budgets. This module currently bundles EC2 only; additional providers require their implementation and Terraform configuration/permissions before deployment.
116
116
117
117
`compute-ec2.tf` owns the EC2 provider configuration and region-restricted inventory policy. The shared cleanup policy covers GitHub credential access and confirmation messages only. Both policies use `aws_iam_policy_document` and attach separately to the Lambda role.
118
+
119
+
### Discovery logs
120
+
121
+
Each discovery invocation emits `Registration discovery finished.` with `pagesScanned`, `candidatesQueued`, `existingResources`, `dryRunCandidates`, `pageFailures`, `candidateFailures`, and `stopReason` (`completed`, `deadline`, or `candidate-limit`). Queue counts increase only after successful sends; dry-run observations are counted separately. Summaries are also emitted for partial scans, and failure counters distinguish skipped work from successful traversal. The handler sets request context for discovery and confirmation logs on every invocation. These counters and the client cache are invocation-local, not persisted cleanup progress.
0 commit comments