Skip to content

Conversation

@lann
Copy link
Collaborator

@lann lann commented Aug 27, 2025

I give up; here's some better logging instead.

Sneakily introduce assert_matches! and assert_not_matches! macros.

@lann lann force-pushed the sad-mac-localhost branch 2 times, most recently from 5cc22cc to 5074e3c Compare August 27, 2025 19:52
@lann lann changed the title DO NOT MERGE - testing mac localhost test flake outbound-http: Improve test assertion logging Aug 27, 2025
@lann lann marked this pull request as ready for review August 27, 2025 20:56
@lann lann requested a review from itowlson August 27, 2025 20:56
Copy link
Collaborator

@itowlson itowlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"sneakily"

@lann
Copy link
Collaborator Author

lann commented Aug 27, 2025

"sneakily"

Did you notice?!

@itowlson
Copy link
Collaborator

Notice what?

Sneakily introduce assert_matches! and assert_not_matches! macros.

Signed-off-by: Lann Martin <[email protected]>
@lann lann force-pushed the sad-mac-localhost branch from 5074e3c to 3b8e18d Compare August 27, 2025 22:50
@itowlson itowlson merged commit 0a7665e into main Sep 3, 2025
17 checks passed
@lann lann deleted the sad-mac-localhost branch September 12, 2025 21:43
@lann
Copy link
Collaborator Author

lann commented Sep 12, 2025

I have a hunch.

Some systems timeout instead of immediately failing requests to "discard prefix" IPv6 addrs (100::1). "I know!", I thought to myself, very cleverly, "I'll set a very low timeout and ignore timeouts for those tests!"

connect_timeout: Duration::from_millis(1),

"None of the tests actually touch the network, so short timeouts can't possibly cause problem!"

OR CAN THEY? (dunn dunn duuuuuunn)

let req = Request::get("http://localhost").body(Default::default())?;

"So what? That request gets rejected by the private IPs check before it gets sent."

BUT NOT BEFORE THE SYSTEM DNS RESOLVER GETS A WHACK AT IT! (gasp!)

let mut socket_addrs = tokio::net::lookup_host(&authority_str)

"But...but...it's just localhost! It still won't touch the network!" (desperation setting in)

THIS IS A HEAVILY LOADED GITHUB ACTIONS RUNNER! ONCE YOU'VE awaitED ANYTHING ALL YOUR PLANS ARE FOR NAUGHT!

Anyway its just a theory.

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.

3 participants