mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-02 17:13:33 +01:00
122 lines
9.7 KiB
TypeScript
122 lines
9.7 KiB
TypeScript
// Reviewed literal diagnostics. Never extend this list from runtime data.
|
|
export const LOG_MODULES = ["admin", "anonymized-file", "auth", "billing", "dailyStats", "file-tree", "fs", "gh-stream", "gist", "github", "github-app-webhook", "owner-notifications", "process", "pull-request", "queue", "queue:cache", "queue:download", "queue:remove", "repository", "repository-public", "requests", "route", "route:repo", "s3", "schedule", "server", "streamer", "temporary-storage", "token-auth", "user", "zip-stream"];
|
|
export const ERROR_CODES = ["billing_address_missing", "billing_city_missing", "billing_country_missing", "billing_email_missing", "billing_missing", "billing_name_missing", "billing_zip_missing", "branch_not_found", "branch_not_specified", "cache_busy", "cache_miss", "cannot_coauthor_self", "commit_not_specified", "conf_end_date_invalid", "conf_end_date_missing", "conf_id_missing", "conf_id_used", "conf_name_missing", "conf_not_activated", "conf_not_found", "conf_start_date_invalid", "conf_start_date_missing", "conference_not_found", "connection_changed", "download_not_enabled", "expiration_limit_reached", "file_listing_too_large", "file_not_accessible", "file_not_found", "file_not_supported", "file_too_big", "folder_not_supported", "gistId_already_used", "gistId_not_specified", "gist_expired", "gist_not_found", "gist_not_ready", "github_app_access_required", "github_identity_mismatch", "github_rate_limit_exceeded", "github_user_not_found", "invalid_commit_format", "invalid_cursor", "invalid_file_path", "invalid_gistId", "invalid_path", "invalid_plan", "invalid_preserve_files_format", "invalid_project_name", "invalid_pullRequestId", "invalid_repo", "invalid_repoId", "invalid_request", "invalid_settings", "invalid_sort", "invalid_status", "invalid_terms_format", "invalid_token_id", "invalid_token_options", "is_removed", "not_authorized", "not_connected", "options_not_provided", "page_not_activated", "page_not_supported_on_different_branch", "path_not_defined", "path_not_specified", "pullRequestId_already_used", "pullRequestId_is_not_a_number", "pullRequestId_not_specified", "pull_request_expired", "pull_request_not_found", "pull_request_not_ready", "rate_limited", "readme_not_available", "repoId_already_used", "repoId_not_defined", "repoUrl_not_defined", "repo_access_limited", "repo_empty", "repo_not_accessible", "repo_not_found", "repo_saml_enforcement", "repository_archived", "repository_changed", "repository_expired", "repository_job_cancelled", "repository_not_ready", "repository_not_specified", "repository_tree_incomplete", "repository_tree_too_large", "s3_config_not_provided", "source_not_provided", "storage_delete_failed", "storage_write_size_mismatch", "submodule_not_available", "terms_not_specified", "token_expired", "token_limit_reached", "unable_to_connect_user", "unable_to_download", "upstream_error", "user_not_found", "username_not_defined"];
|
|
export const LOG_EVENTS: Record<string, string> = {
|
|
"PR comments 404, continuing without them": "pr_comments_404_continuing_without_them",
|
|
"S3 body stream error": "s3_body_stream_error",
|
|
"account removed": "account_removed",
|
|
"billing maintenance failed": "billing_maintenance_failed",
|
|
"billing reconciliation deferred": "billing_reconciliation_deferred",
|
|
"billing requires attention": "billing_requires_attention",
|
|
"billing worker failed": "billing_worker_failed",
|
|
"blob API failed, falling back to raw URL": "blob_api_failed_falling_back_to_raw_url",
|
|
"branch not found": "branch_not_found",
|
|
"cache removal failed": "cache_removal_failed",
|
|
"cache removed": "cache_removed",
|
|
"checking repository status and unused repositories": "checking_repository_status_and_unused_repositories",
|
|
"cleared lock for active job": "cleared_lock_for_active_job",
|
|
"conference expire failed": "conference_expire_failed",
|
|
"content expiration failed": "content_expiration_failed",
|
|
"daily stats snapshot failed": "daily_stats_snapshot_failed",
|
|
"daily stats snapshot stored": "daily_stats_snapshot_stored",
|
|
"download completed": "download_completed",
|
|
"download start": "download_start",
|
|
"downloadFile failed": "downloadfile_failed",
|
|
"downloaded": "downloaded",
|
|
"downloading file": "downloading_file",
|
|
"downloading gist": "downloading_gist",
|
|
"downloading pull request": "downloading_pull_request",
|
|
"downloading via raw URL (LFS)": "downloading_via_raw_url_lfs",
|
|
"duplicate Stripe customer requires review": "duplicate_stripe_customer_requires_review",
|
|
"ensureTodaySnapshot failed": "ensuretodaysnapshot_failed",
|
|
"error log redis connect failed": "error_log_redis_connect_failed",
|
|
"expired repository cleanup failed": "expired_repository_cleanup_failed",
|
|
"failed removal recovery failed": "failed_removal_recovery_failed",
|
|
"failed to persist ERROR status": "failed_to_persist_error_status",
|
|
"failed to record repository removal error": "failed_to_record_repository_removal_error",
|
|
"getToken": "gettoken",
|
|
"github primary rate limit hit": "github_primary_rate_limit_hit",
|
|
"github secondary rate limit hit": "github_secondary_rate_limit_hit",
|
|
"grant revocation failed": "grant_revocation_failed",
|
|
"initial repository status check failed": "initial_repository_status_check_failed",
|
|
"job completed": "job_completed",
|
|
"job stalled": "job_stalled",
|
|
"job started": "job_started",
|
|
"lastUsedAt update failed": "lastusedat_update_failed",
|
|
"login-token failed": "login_token_failed",
|
|
"login-token req.login failed": "login_token_req_login_failed",
|
|
"logout after account removal failed": "logout_after_account_removal_failed",
|
|
"logout failed": "logout_failed",
|
|
"lookup failed": "lookup_failed",
|
|
"markErrorIfInFlight failed": "markerrorifinflight_failed",
|
|
"markErrorIfRemoving failed": "markerrorifremoving_failed",
|
|
"metadata cleanup complete": "metadata_cleanup_complete",
|
|
"metadata cleanup deferred": "metadata_cleanup_deferred",
|
|
"owner access alert reset unavailable": "owner_access_alert_reset_unavailable",
|
|
"owner access email accepted": "owner_access_email_accepted",
|
|
"owner access email audit unavailable": "owner_access_email_audit_unavailable",
|
|
"owner access email claim cleanup unavailable": "owner_access_email_claim_cleanup_unavailable",
|
|
"owner access email deferred recovery unavailable": "owner_access_email_deferred_recovery_unavailable",
|
|
"owner access email delivery failed": "owner_access_email_delivery_failed",
|
|
"owner access email preparation cleanup unavailable": "owner_access_email_preparation_cleanup_unavailable",
|
|
"owner access email recovery recorded": "owner_access_email_recovery_recorded",
|
|
"owner access email recovery unavailable": "owner_access_email_recovery_unavailable",
|
|
"owner access email result reconciliation required": "owner_access_email_result_reconciliation_required",
|
|
"owner access email unavailable": "owner_access_email_unavailable",
|
|
"process fatal error": "process_fatal_error",
|
|
"process heartbeat": "process_heartbeat",
|
|
"process started": "process_started",
|
|
"progress": "progress",
|
|
"queue heartbeat": "queue_heartbeat",
|
|
"queued for download": "queued_for_download",
|
|
"rate limit gate active, delaying job before work": "rate_limit_gate_active_delaying_job_before_work",
|
|
"rate limit gate set": "rate_limit_gate_set",
|
|
"rate-limited, delaying job": "rate_limited_delaying_job",
|
|
"recover failed": "recover_failed",
|
|
"recoverStuckPreparing failed": "recoverstuckpreparing_failed",
|
|
"recoverStuckRemoving failed": "recoverstuckremoving_failed",
|
|
"recovered expired repository cleanup": "recovered_expired_repository_cleanup",
|
|
"recovered file from truncated tree": "recovered_file_from_truncated_tree",
|
|
"recovered file invalidation failed": "recovered_file_invalidation_failed",
|
|
"recovered stuck repo": "recovered_stuck_repo",
|
|
"redis client error": "redis_client_error",
|
|
"redis rate limit gate written": "redis_rate_limit_gate_written",
|
|
"rejected upstream download destination": "rejected_upstream_download_destination",
|
|
"removal failed": "removal_failed",
|
|
"removal recovery failed": "removal_recovery_failed",
|
|
"removeCache save failed": "removecache_save_failed",
|
|
"removed cache for unused repository": "removed_cache_for_unused_repository",
|
|
"removing cache": "removing_cache",
|
|
"removing repository": "removing_repository",
|
|
"repo claimed": "repo_claimed",
|
|
"repository cache removal failed": "repository_cache_removal_failed",
|
|
"repository expiration failed": "repository_expiration_failed",
|
|
"repository expired": "repository_expired",
|
|
"repository removal failed": "repository_removal_failed",
|
|
"repository removed": "repository_removed",
|
|
"requeued failed removal": "requeued_failed_removal",
|
|
"requeued interrupted removal": "requeued_interrupted_removal",
|
|
"reset": "reset",
|
|
"retired tree cleanup deferred": "retired_tree_cleanup_deferred",
|
|
"retired tree cleanup failed": "retired_tree_cleanup_failed",
|
|
"running daily stats snapshot": "running_daily_stats_snapshot",
|
|
"send failed": "send_failed",
|
|
"server started": "server_started",
|
|
"source stream failed; cache write discarded": "source_stream_failed_cache_write_discarded",
|
|
"staged tree cleanup failed": "staged_tree_cleanup_failed",
|
|
"staged tree completion deferred": "staged_tree_completion_deferred",
|
|
"streamer fetch failed": "streamer_fetch_failed",
|
|
"streamer started": "streamer_started",
|
|
"streamer startup failed": "streamer_startup_failed",
|
|
"streamer zip fetch failed": "streamer_zip_fetch_failed",
|
|
"temporary storage cleanup deferred": "temporary_storage_cleanup_deferred",
|
|
"token refresh failed; backing off": "token_refresh_failed_backing_off",
|
|
"up to date": "up_to_date",
|
|
"update queued": "update_queued",
|
|
"verify failed": "verify_failed",
|
|
"waiting for rate limit gate": "waiting_for_rate_limit_gate",
|
|
"webhook processing failed": "webhook_processing_failed",
|
|
"write failed": "write_failed",
|
|
"zip stream failed": "zip_stream_failed"
|
|
};
|