You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
E2E tests: qwen2.5-coder:0.5b non-determinism with receiver method instantiation #197
The E2E tests for calculator_multiply and calculator_divide fail all 10 retry attempts due to non-deterministic receiver method instantiation patterns generated by qwen2.5-coder:0.5b.
Details
Even with temperature=0 and seed=42, the LLM randomly chooses between two valid receiver instantiation patterns:
Activity
test(ai): temporarily disable non-deterministic calculator E2E tests
cweill commentedon Oct 23, 2025
Update: Non-determinism is broader than receiver methods
Further testing reveals the non-determinism issue affects more than just receiver methods and is environment-dependent.
Additional Failing Tests
Two additional tests that pass locally on macOS but fail in CI (Ubuntu):
business_logic_calculate_discount(regular function, not a method)string_utils_reverse(regular function, not a method)Current Status
Disabled tests (4 out of 11 total):
calculator_multiply(receiver method)calculator_divide(receiver method)business_logic_calculate_discount(regular function)string_utils_reverse(regular function)Passing tests (7 out of 11 total):
math_ops_clampdata_processing_filter_positiveuser_service_hash_passwordstring_utils_parse_key_valuestring_utils_contains_anybusiness_logic_format_currencymath_ops_factorialTest runtime: 5.98s (7/7 passing)
Key Finding: Environment-Dependent Non-Determinism
The non-determinism appears to be environment-dependent rather than purely code-pattern-based:
This suggests qwen2.5-coder:0.5b output is influenced by:
Even with
temperature=0andseed=42, these environmental factors cause different outputs.Impact on Solutions
This finding affects the proposed solutions:
Recommendation
Consider these approaches:
test(ai): disable 2 more non-deterministic E2E tests (4 total disabled)
feat: AI-powered test case generation (#194)