Skip to content

improve(test): Use singleton UMA fixture#3097

Open
pxrl wants to merge 7 commits intomasterfrom
pxrl/singleton
Open

improve(test): Use singleton UMA fixture#3097
pxrl wants to merge 7 commits intomasterfrom
pxrl/singleton

Conversation

@pxrl
Copy link
Copy Markdown
Collaborator

@pxrl pxrl commented Mar 24, 2026

Deploy this at the beginning of the test run and reuse it throughout the
test. This is basic infrastructre; it doesn't need to be redeployed
repeatedly throughout the test.

Deploy this at the beginning of the test run and reuse it throughout the
test. This is basic infrastructre; it doesn't need to be redpeloyed
repeatedly throughout the test.
Copy link
Copy Markdown

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

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: 2a30921005

ℹ️ 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 on lines +15 to +17
let fixture: UmaEcosystem;

before(async function () {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid sharing UMA timer across test cases

Deploying timer once at module scope makes all HubPool instances created via getUmaFixture() share the same mutable clock. Several suites using setupDataworker/deployAndConfigureHubPool call hubPool.setCurrentTime(...), so advancing time in one test now carries into later tests and changes liveness/challenge-time behavior based on execution order. This introduces cross-test state leakage and can make tests flaky or mask timing regressions; the UMA ecosystem should stay per-test (or the timer should be reset) to preserve isolation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated: 1d1f6a4

@codex Review.

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: Didn't find any major issues. 👍

ℹ️ 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".

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