Skip to content

Stuber fails to match stub when input includes templates #759

@rez1dent3

Description

@rez1dent3

Hello,

I started rewriting grpctestify in Rust and discovered some interesting behavior in the original Bash version — it seems to have a race condition.

As a result, I’m seeing inconsistent test outcomes between the old and the new implementations.

Steps to reproduce:

$ go run main.go examples -s examples 
$ grpctestify examples          # <- old version passes successfully
$ grpctestify-rust examples     # <- new version fails on one test

The failing test in the Rust version:

❌ Failed Tests:
   • examples/projects/identifier/case_success_strict_ordered.gctf (6042ms)

However, if I run that specific test directly using the old Bash version:

$ grpctestify examples/projects/identifier/case_success_strict_ordered.gctf

It fails as well:

❌ Failed Tests:
   • examples/projects/identifier/case_success_strict_ordered.gctf (176ms)

So the interesting case is that:

  • Running the full test suite with the old version passes.
  • Running the same specific test individually with the old version fails.
  • The Rust version fails consistently when running the full suite.

This suggests a race condition or hidden dependency between tests in the original Bash implementation.

Metadata

Metadata

Labels

bugSomething isn't workingv3

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions