-
Notifications
You must be signed in to change notification settings - Fork 54
chore(bidengine): disable order fetcher #331
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe background ordersFetcher task in bidengine/service.go is disabled by commenting out its initialization, with a note to re-enable post SDK53 upgrade. The CI workflow tests.yaml changes runner from ubuntu-latest to core-e2e and adds a preliminary build folder cleanup step. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Caller
participant S as Service
participant OF as OrdersFetcher (bg task)
Note over S: Previous behavior (pre-change)
C->>S: Start()
activate S
S->>OF: Spawn via group.Go
activate OF
OF-->>S: Running in background
S-->>C: Start returns
deactivate S
sequenceDiagram
autonumber
participant C as Caller
participant S as Service
participant OF as OrdersFetcher (bg task)
Note over S: Current behavior (ordersFetcher disabled pending SDK53)
C->>S: Start()
activate S
Note right of S: ordersFetcher init block is commented out
S-->>C: Start returns (no bg task)
deactivate S
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🪛 actionlint (1.7.7).github/workflows/tests.yaml19-19: label "core-e2e" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file (runner-label) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (2)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
bidengine/service.go
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: integration-tests / crd-e2e
- GitHub Check: lint
- GitHub Check: build-bins
- GitHub Check: release-dry-run
- GitHub Check: tests
// to enable after SDK53 upgrade | ||
//group.Go(func() error { | ||
// return s.ordersFetcher(ctx, aqc) | ||
//}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing catch-up path after disabling fetcher
With group.Go
commented out, ordersFetcher
never runs, so ordersch
is never populated. After any restart the service will fail to rehydrate existing open orders and will only see new pubsub events, leaving active orders unmanaged until SDK53 is in place. Please keep a safe catch-up path (feature flag, alternate fetch, or explicit acknowledgment of the operational impact) before merging.
🤖 Prompt for AI Agents
In bidengine/service.go around lines 131-134, commenting out the group.Go call
disables ordersFetcher so ordersch is never populated and the service cannot
rehydrate open orders after restart; restore a safe catch-up path by either (a)
re-enabling ordersFetcher behind a feature flag or config toggle so it can be
turned off for SDK53 rollout, (b) add a one-time startup catch-up routine that
calls the existing fetch logic to populate ordersch before returning to
real-time pubsub processing, or (c) if you must keep it disabled, add explicit
logging and an operational guard (panic or health-check failure) that documents
the impact; implement one of these fixes and ensure it populates ordersch and
handles errors with clear logs.
Signed-off-by: Artur Troian <[email protected]>
59065a0
to
e7f22dd
Compare
No description provided.