Skip to content

test: no conveyor fixture file for arrest, sample and other options #949

Closed as not planned

Description

@bpowers

No model file under test/conveyors/ uses <arrest>, <sample>, exponential_leak="true", <leak_integers/>, an explicit per-slat initial list, or a time-varying <len>.
The concern was that a reader or writer dropping one of these on save would go unnoticed, because the unit tests build their XMILE in memory.
The proposal is one or two small fixtures for these features, added to the conveyor corpus in tests/integration/simulate.rs.

What already covers it

  • XMILE save and reload: conveyor_block_all_fields_roundtrip (<sample>, <arrest>, the batch attributes) and exponential_leak_attr_roundtrips in src/simlin-engine/src/xmile/variables.rs, plus a <leak_integers/> case in the same file.
  • Protobuf: serde_proptest.rs generates every conveyor and leak field and checks the round trip.
  • Behaviour: conveyor_tests.rs (arrest, integer leak, explicit init lists) and wasmgen/belt_tests.rs (sample, growing and shrinking belts, VM against wasm).

Fix

If anything is still wanted, add one fixture that exercises <arrest> and <sample> together and wire it into CONVEYOR_CORPUS_FIXTURES.
conveyor_fixture_directory_is_fully_accounted_for fails if a new file is not wired in.
Then update the "Known corpus gaps" paragraph in test/conveyors/README.md.

Pointers

Activity

  1. changed the title [-]test: <arrest> and <sample> have no conveyor corpus fixture (proto/XMILE round-trip untested)[/-] [+]test: no conveyor fixture file for arrest, sample and other options[/+] on Oct 12, 2026
  2. added
    engine
    hygiene
    wontfix
    on Oct 12, 2026
  3. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing as won't fix.

    Its premise that round trips are untested is false. xmile/variables.rs conveyor_block_all_fields_roundtrip and exponential_leak_attr_roundtrips, plus a leak_integers case, cover XMILE. serde_proptest.rs:379 generates every conveyor field for protobuf. conveyor_tests.rs and belt_tests.rs cover the behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enginehygienewontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions