Skip to content

refactor: integrate env and cache tasks #92

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

Open
wants to merge 1 commit into
base: prestwich/sdk-signer-oauth
Choose a base branch
from

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented May 14, 2025

Integration for downstack PRs for cache and env tasks

@prestwich prestwich mentioned this pull request May 14, 2025
Copy link
Member Author

prestwich commented May 14, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@prestwich prestwich mentioned this pull request May 14, 2025
@prestwich prestwich marked this pull request as ready for review May 14, 2025 17:41
@prestwich prestwich force-pushed the prestwich/env-cache-integration branch 2 times, most recently from 27f35cb to 2e97789 Compare May 14, 2025 18:59
// Calculate the time remaining in the current slot
let remaining = self.slot_calculator.calculate_timepoint_within_slot(unix_seconds);
// Deadline is equal to the start of the next slot plus the time remaining in this slot
Instant::now() + Duration::from_secs(remaining)
Copy link
Member Author

Choose a reason for hiding this comment

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

this seems to have been giving incorrect output. we need to sub remaining from duration, then add that to now

use tokio::{
sync::mpsc::{UnboundedReceiver, UnboundedSender, unbounded_channel},
task::JoinHandle,
time::{self, Duration},
};

/// Holds a bundle from the cache with a unique ID and a Zenith bundle.
Copy link
Member Author

Choose a reason for hiding this comment

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

replaced with sdk types

/// # Arguments
///
/// - finish_by: The deadline at which block simulation will end.
async fn next_block_env(&self, finish_by: Instant) -> eyre::Result<PecorinoBlockEnv> {
Copy link
Member Author

Choose a reason for hiding this comment

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

replaced by EnvTask

Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

the code lgtm. Want to see @dylanlott 's testing results

@prestwich prestwich force-pushed the prestwich/cache-task branch from 9be8e0f to e82c2cb Compare May 20, 2025 14:46
@prestwich prestwich force-pushed the prestwich/env-cache-integration branch from 8099c79 to 9b4f4de Compare May 20, 2025 14:46
@prestwich prestwich changed the base branch from prestwich/cache-task to graphite-base/92 May 20, 2025 15:23
@prestwich prestwich force-pushed the prestwich/env-cache-integration branch from 9b4f4de to 6bf80dd Compare May 20, 2025 15:23
@prestwich prestwich changed the base branch from graphite-base/92 to prestwich/sdk-signer-oauth May 20, 2025 15:23
@prestwich prestwich force-pushed the prestwich/env-cache-integration branch from 6bf80dd to 0ac3866 Compare May 20, 2025 15:24
@prestwich prestwich force-pushed the prestwich/sdk-signer-oauth branch from 9bb3b73 to d395f2e Compare May 20, 2025 15:30
@prestwich prestwich force-pushed the prestwich/env-cache-integration branch from 0ac3866 to a239bcb Compare May 20, 2025 15:30
@prestwich prestwich force-pushed the prestwich/env-cache-integration branch from a239bcb to 2fd44a7 Compare May 23, 2025 18:02
@prestwich prestwich force-pushed the prestwich/sdk-signer-oauth branch from d395f2e to 730dabd Compare May 23, 2025 18:02
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.

3 participants