Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metrics and observations in autopilot runloop #3039

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sunce86
Copy link
Contributor

@sunce86 sunce86 commented Oct 4, 2024

Description

This PR addresses several smaller issues related to metrics in the autopilot run loop and refactors functions in preparation for #2996 (comment).

Changes

  • Self::is_solution_fair is now checked for every solution, not just for the global winner (fixing an oversight in PR #2996)
  • Updated the "matched but unsettled" metric to include all winners, not just the global winner (fixing another oversight from PR #2996).
  • Reorganized logs and order status updates to facilitate extracting common functionality between shadow and main competitions (to be addressed in follow-up work).

Next step: refactor competition function from shadow and main runloop to be exactly the same and unify the Participant struct (currently both modes have their own version).

How to test

Existing e2e tests

@sunce86 sunce86 added bug Something isn't working E:6.2 Time to Happy Moo See https://github.com/cowprotocol/pm/issues/77 for details labels Oct 4, 2024
@sunce86 sunce86 self-assigned this Oct 4, 2024
@sunce86 sunce86 requested a review from a team as a code owner October 4, 2024 11:30
@sunce86 sunce86 changed the title Fix metrics and observations in autopilot runloop [ON HOLD] Fix metrics and observations in autopilot runloop Oct 4, 2024
@sunce86 sunce86 changed the title [ON HOLD] Fix metrics and observations in autopilot runloop Fix metrics and observations in autopilot runloop Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working E:6.2 Time to Happy Moo See https://github.com/cowprotocol/pm/issues/77 for details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant