open-rmf / open-rmf/crossflow

More comprehensive tests for trimming

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
72
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Before proceeding, is there an existing issue or discussion for this?
Description

We support an operation for "trimming" a workflow, meaning cancelling any activity going on within a specified span of the workflow. We have a rudimentary test for this operation, but it would be good to have more comprehensive tests, especially tests that ensure the span calculation is working correctly.

Tests to validate the span calculations could be done with unit tests inside of operate_trim.rs that manually build pseudo-workflow topologies by spawning entities with the right components, rather than spawning an entire proper workflow.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in operate_trim.rs and inspect the existing rudimentary trimming test and span-calculation logic. Build pseudo-workflow topologies by spawning entities with the required components, then add unit tests covering span calculations and verify the trimming behavior against those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.