Skip to content

Conversation

rekhoff
Copy link
Contributor

@rekhoff rekhoff commented Sep 5, 2025

Description of Changes

Adds a non-repeating scheduled reducer integration test to the existing Rust and C# integration tests, in order to address #3213

API and ABI breaking changes

No

Expected complexity level and risk

1

Testing

  • Ran cargo test -p spacetimedb-testing and all tests passed

@rekhoff rekhoff self-assigned this Sep 5, 2025
@rekhoff rekhoff requested a review from jdetter September 8, 2025 19:18
@jdetter jdetter marked this pull request as ready for review September 9, 2025 17:29
public static void nonrepeating_test(ReducerContext ctx, NonrepeatingTestArg arg)
{
var deltaTime = ctx.Timestamp.TimeDurationSince(arg.prev_time);
Log.Trace($"Timestamp: {ctx.Timestamp}, Delta time: {deltaTime}");
Copy link
Collaborator

@jdetter jdetter Sep 10, 2025

Choose a reason for hiding this comment

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

Where in the test harness do we actually check to see if we get this log? If this log isn't present how does the test fail?

.timestamp
.duration_since(arg.prev_time)
.expect("arg.prev_time is later than ctx.timestamp... huh?");
log::trace!(
Copy link
Collaborator

@jdetter jdetter Sep 10, 2025

Choose a reason for hiding this comment

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

Same here: Where in the test harness do we actually check to see if we get this log? If this log isn't present how does the test fail?

Copy link
Collaborator

@jdetter jdetter left a comment

Choose a reason for hiding this comment

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

A few Qs on this

@bfops bfops added release-any To be landed in any release window no runtime change This change does not affect the final binaries labels Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no runtime change This change does not affect the final binaries release-any To be landed in any release window
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants