Skip to content

2c2s: Add metrics - #416

Merged
frolv merged 1 commit into
mainfrom
challenge-2-challenge-harder
Aug 7, 2026
Merged

2c2s: Add metrics#416
frolv merged 1 commit into
mainfrom
challenge-2-challenge-harder

Conversation

@frolv

@frolv frolv commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Installs the prometheus crate and defines metrics mirroring those of the existing server, with a handful of novel ones specific to the new server's architecture.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a115f44880

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread challenge-harder/src/metrics.rs
Comment thread challenge-harder/src/processing/mod.rs
Comment thread challenge-harder/src/lifecycle/challenge.rs
Comment thread challenge-harder/src/processing/stage.rs
Comment thread challenge-harder/src/lifecycle/coordinator.rs
Comment thread challenge-harder/src/lifecycle/challenge.rs Outdated
Comment thread challenge-harder/src/metrics.rs
Installs the prometheus crate and defines metrics mirroring those of
the existing server, with a handful of novel ones specific to the new
server's architecture.
@frolv
frolv force-pushed the challenge-2-challenge-harder branch from a115f44 to f806e5c Compare August 7, 2026 14:10

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f806e5cb2c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

reported_ticks = times.challenge,
"challenge_time_mismatch",
);
metrics::record_reported_time_mismatch();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Count reported-time mismatches only after commit

When a finish-processing attempt detects a mismatch but a later database operation or the outer transaction commit fails, this increment remains even though the attempt is rolled back. The retriable finish run then executes this branch again, so one challenge can inflate challenge_server_reported_time_mismatch_total on every retry; return the mismatch outcome to the pipeline and record it only after a successful commit.

Useful? React with 👍 / 👎.

@frolv
frolv merged commit 7ab09d8 into main Aug 7, 2026
2 checks passed
@frolv
frolv deleted the challenge-2-challenge-harder branch August 7, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant