Skip to content

test: undo synctest adoption#253

Merged
mccutchen merged 7 commits into
mainfrom
un-synctest
May 21, 2026
Merged

test: undo synctest adoption#253
mccutchen merged 7 commits into
mainfrom
un-synctest

Conversation

@mccutchen
Copy link
Copy Markdown
Owner

@mccutchen mccutchen commented May 17, 2026

This backs out the synctest changes from #240. While saving a few seconds on the test suite is nice, I think it's probably more important to have a more straightforward test suite that actually exercises a real HTTP server over a real TCP connection given the nature of this specific project. (Plus, the netpipetestserver mechanism needed to support those tests is a bit too hacky for my taste.)

In addition, those synctests prevent a different set of changes I'd like to make, which would allow pointing the test suite at a "live" deployment to ensure that whatever cloud infra go-httpbin is running on actually supports some of the edge case behavior (e.g. in the past Google Cloud Run's load balancers did not allow incremental writes).


Best way to look at the diff here is with whitespace-only changes ignored:
https://github.com/mccutchen/go-httpbin/pull/253/changes?w=1

I apologize to the maintainers of any long-lived forks who are trying to keep up with these changes. Between #238, #240, and this pull request, that's a LOT of churn to the test suite that will be awful to merge/rebase.

mccutchen added 2 commits May 17, 2026 15:58
This backs out the synctest changes from #240. While saving a few
seconds on the test suite is nice, I think it's probably more important
to have a more straightforward test suite that actually exercises a real
HTTP server over a real TCP connection given the nature of this specific
project. (Plus, the `netpipetestserver` mechanism is a bit too hacky for
my taste.)

Also, those synctests prevent a different set of changes I'd like to
make, which would allow pointing the test suite at a "live" deployment
to ensure that whatever cloud infra go-httpbin is running on actually
supports some of the edge case behavior (e.g. in the past Google Cloud
Run's load balancers did not allow incremental writes).
@mccutchen mccutchen marked this pull request as draft May 18, 2026 01:40
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.87%. Comparing base (7ed6f35) to head (bdea9d9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #253      +/-   ##
==========================================
+ Coverage   94.72%   94.87%   +0.15%     
==========================================
  Files           9        9              
  Lines        1991     1991              
==========================================
+ Hits         1886     1889       +3     
+ Misses         62       59       -3     
  Partials       43       43              

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mccutchen mccutchen marked this pull request as ready for review May 21, 2026 02:05
@mccutchen mccutchen merged commit 3098c57 into main May 21, 2026
10 checks passed
@mccutchen mccutchen deleted the un-synctest branch May 21, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant