Skip to main content

Module job_logs

Module job_logs 

Source
Expand description

Bounded, attempt-scoped GitHub Actions job-log ingestion and redaction. Bounded ingestion of one exact GitHub Actions run attempt’s per-job logs.

This module deliberately stops at a transport-neutral projection. Callers may persist crate::job_logs::GithubWorkerLogEvent values only after their own durable job binding. Raw response bytes, redirect URLs, and unsanitized log lines never enter the DTO.

Structs§

GithubActionsJobId
Non-zero GitHub Actions job identifier.
GithubDurableRunAttemptLogIdentity
Offline-only identity for validating a completion marker restored from durable provider state.
GithubJobLogFetcher
Attempt-scoped log fetcher over an injected no-auto-redirect HTTPS client.
GithubJobLogHttpRequest
One fixed GET plan for an injectable HTTP adapter.
GithubJobLogHttpResponse
Status, selected headers, and an incremental body for one GET.
GithubJobLogLimits
Hard-bounded pagination, response, event, redirect, and deadline policy.
GithubJobLogPoll
One complete bounded attempt poll with numerically sorted job IDs.
GithubRunAttempt
Exact positive GitHub Actions run-attempt number.
GithubRunAttemptLogIdentity
Immutable identity for one exact repository workflow run attempt.
GithubWorkerLogEvent
Sanitized canonical Worker event ready for durable projection.
GithubWorkerLogsComplete
Append-last, restart-deduplicable proof that every exact Worker log event was projected.

Enums§

GithubJobLogAccept
Expected response representation for one GET.
GithubJobLogAuthorization
Whether a request may carry the GitHub API authorization header.
GithubJobLogConfigError
Configuration failure for attempt-scoped log fetching.
GithubJobLogError
Redacted, bounded log-fetch failure.
GithubJobLogHttpError
Redacted adapter failure category.

Constants§

EMPTY_JOB_LOG_LINE_MARKER
Safe projection for a blank worker line.
MAX_JOB_LOG_BYTES
Maximum accepted bytes from one job log response.
MAX_JOB_LOG_LINE_BYTES
Maximum accepted bytes in one projected log line.
MAX_JOB_LOG_POLL_BYTES
Maximum accepted job-log bytes across one fetch poll.
MAX_WORKER_LOG_APPEND_BATCH
Maximum events exposed in one store-compatible append batch.
MAX_WORKER_LOG_EVENTS
Maximum line events, leaving one reserved completion marker.
MAX_WORKER_LOG_PROJECTED_BYTES
Maximum conservative canonical store bytes reserved for Worker log events.
MAX_WORKER_LOG_RECORDS
Maximum Worker records reserved below the store’s 65,536-record job cap.
UNSAFE_JOB_LOG_LINE_MARKER
Safe projection for a line that cannot be decoded or redacted confidently.
WORKER_LOGS_COMPLETE_CODE
Stable managed-event code for the append-last completion marker.
WORKER_LOG_LINE_CODE
Stable managed-event code for one sanitized Worker log line.
WORKER_LOG_PHASE
Stable managed-event phase for Worker log lines and completion.

Traits§

GithubJobLogHttpBody
Incremental response body returned by a job-log HTTP adapter.
GithubJobLogHttpClient
Injectable HTTPS client for exact GitHub job-log GETs.