test/ts: --passthrough silently ignores unrecognized flags

Open Beginner friendly
#10,715 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, rust, shell
Domain
cli, testing-qa

Research direction

Start with the catch-all at test/ts/run.sh:253 and trace how PASSTHRU is handled in passthrough mode. Check how the script parses flags before the build and how passthrough.py and decode.py are invoked. Done when an unsupported flag such as --bogus fails before the build or passthrough mode rejects non-empty PASSTHRU.

Written by the indexing model from the issue text.

Description

test/ts/run.sh forwards every unrecognized flag to the graders through its catch-all (PASSTHRU, test/ts/run.sh:253). In --passthrough mode the run ends after passthrough.py and decode.py (exit 0), and never calls compliance.py or table-anchor.py, so a mistyped or unsupported flag (for example just test ts-passthrough-capture --bogus 1) is silently ignored and the run can pass without doing what was asked.

Expected: an unrecognized flag fails before the build, or at least passthrough mode refuses a non-empty PASSTHRU.

Found in review of https://github.com/moq-dev/moq/pull/10710.

(Written by Claude Opus 5.5)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
9h 50m
Merged PRs (30d)
804

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.