wavefnd / wavefnd/Wave

Report phase and observed values from native standard I/O regression failures

Open
#636 0 comments 0 reactions 0 assignees View on GitHub
bug ci good first issue
Dominant language
Rust
Stars
53
Forks
16
Avg merge
4h 22m
Merged PRs (30d)
46

Description

Observed at PR #631 head `d811e0c2accc8997eecb5071f8752f88e9fb44e4`. [Failing CI job](https://github.com/wavefnd/Wave/actions/runs/34737095086/job/103670349665).

The new native I/O harness currently reports only `12 != 0`, `11 != 0`, `16 != 0`, or the executable name with a 10-second TimeoutExpired. `run_fixture` includes stdout/stderr, but the Wave fixtures emit no relevant values. Multiple distinct predicates share exit codes.

This blocks diagnosis across the four failed jobs in #631: capture exit 12 hides child exit/payload/count; capture-close exit 11 hides wait result versus signal termination; timed-send exit 16 hides the returned count, and a hang could occur before or after the timed call.

Bounded change: add concise phase/value diagnostics to these fixtures and include the fixture name, target, actual return code and bounded captured output in harness failures. Keep diagnostics away from stdout payload channels that tests intentionally capture. Preserve existing exit checks and process-tree timeouts.

Acceptance:
- Failed capture checks identify raw wait status, wait return, count and expected/observed bytes as relevant.
- Timed socket failures identify operation phase, count, error kind/native code and elapsed time.
- A timeout preserves the last emitted phase without depending on buffered stdout flushing.
- A small harness test demonstrates nonzero and timeout diagnostics without requiring a native platform.

This concerns `tests/fixtures/io` and `tools/test_std_io_runtime.py`; #576 separately covers `tools/run_tests.py` case JSON. It is an observability task, not a substitute for resolving the runtime failures.

Source references:
- [tools/test_std_io_runtime.py](https://github.com/wavefnd/Wave/blob/d811e0c2accc8997eecb5071f8752f88e9fb44e4/tools/test_std_io_runtime.py)
- [tests/fixtures/io/tcp_timeout.wave](https://github.com/wavefnd/Wave/blob/d811e0c2accc8997eecb5071f8752f88e9fb44e4/tests/fixtures/io/tcp_timeout.wave)
- [tests/fixtures/io/capture.wave](https://github.com/wavefnd/Wave/blob/d811e0c2accc8997eecb5071f8752f88e9fb44e4/tests/fixtures/io/capture.wave)

Contributor guide

Open the contributing guide

Research direction

Start with tools/test_std_io_runtime.py and the referenced fixtures in tests/fixtures/io, using the linked CI job to understand the four failing checks. Trace the existing run_fixture output and process-tree timeout behavior. Done means failures report the relevant phase, values, status, bounded output, and timeout state, with a native-platform-independent harness test covering nonzero and timeout diagnostics.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
observability, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.