Skip to content

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Dec 16, 2025

Describe your changes and provide context

The existing OCC scheduler is somewhat coupled with Cosmos specific logics like sdk.Context and stores. This PR refactors the scheduler to be generic and not dependent on any Cosmos specific types, so that it can later be used for giga execution. Specifically this PR yields the following two interfaces for giga to implement and use:

type Scheduler[Response any]
type SchedulerTask[Response any]

Testing performed to validate your change

refactor - existing tests should still hold

@github-actions
Copy link

github-actions bot commented Dec 16, 2025

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedDec 16, 2025, 5:19 AM

@codecov
Copy link

codecov bot commented Dec 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.35%. Comparing base (9daec0f) to head (1c987dd).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2610      +/-   ##
==========================================
+ Coverage   43.23%   48.35%   +5.11%     
==========================================
  Files        1851      682    -1169     
  Lines      152771    59854   -92917     
==========================================
- Hits        66055    28943   -37112     
+ Misses      80835    28499   -52336     
+ Partials     5881     2412    -3469     
Flag Coverage Δ
sei-chain ?
sei-cosmos ?
sei-db 69.06% <ø> (ø)
sei-ibc-go 55.96% <ø> (ø)
sei-tendermint 47.49% <ø> (-0.01%) ⬇️
sei-wasmd 42.10% <ø> (ø)
sei-wasmvm 39.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1188 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +117 to +119
for storeKey, mvs := range mvs {
vs[storeKey] = mvs.VersionedIndexedStore(dt.absoluteIndex, dt.incarnation, abortCh)
}

Check warning

Code scanning / CodeQL

Iteration over map Warning

Iteration over map may be a possible source of non-determinism
@codchen codchen force-pushed the tony/scheduler-interface branch from 6e47c9c to 1c987dd Compare December 16, 2025 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants