Fix flaky view test
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 175
- PR merge metrics
- No merged PRs in 30d
Description
Getting pretty frequent CI failures:
- https://github.com/livebud/bud/runs/7164495134?check_suite_focus=true
- https://github.com/livebud/bud/actions/runs/2602840303
I think it's related to bud server [still needing a constant port](https://github.com/livebud/bud/blob/97d9b1354278bbfb325d0d7021e27eff946b3eaf/framework/view/dom/dom.gotext#L40), but the test suite [picking a random port](https://github.com/livebud/bud/blob/130d7307f4a5687bab86ca3867df546bfc0ff205/internal/cli/testcli/testcli.go#L120-L124).
If this does turn out to be the problem, I'll still be surprised tests don't consistently fail.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading framework/view/dom/dom.gotext around the constant port and internal/cli/testcli/testcli.go around the random-port selection. Reproduce the reported CI failure and inspect the linked runs to confirm whether the port mismatch causes the flake. Done means the view test no longer fails intermittently in CI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100