Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jun 1, 2025

No description provided.

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Jun 1, 2025
@github-actions github-actions bot enabled auto-merge (squash) June 1, 2025 01:02
@A5rocks A5rocks closed this Jun 1, 2025
auto-merge was automatically disabled June 1, 2025 01:13

Pull request was closed

@A5rocks A5rocks reopened this Jun 1, 2025
@A5rocks A5rocks enabled auto-merge (squash) June 1, 2025 01:13
@codecov
Copy link

codecov bot commented Jun 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00000%. Comparing base (79bdcf7) to head (c936736).
⚠️ Report is 57 commits behind head on main.

Additional details and impacted files
@@               Coverage Diff               @@
##                 main        #3277   +/-   ##
===============================================
  Coverage   100.00000%   100.00000%           
===============================================
  Files             127          127           
  Lines           19257        19269   +12     
  Branches         1301         1300    -1     
===============================================
+ Hits            19257        19269   +12     
Files with missing lines Coverage Δ
src/trio/_core/_io_windows.py 100.00000% <100.00000%> (ø)
src/trio/_core/_run.py 100.00000% <100.00000%> (ø)
src/trio/_dtls.py 100.00000% <100.00000%> (ø)
src/trio/_file_io.py 100.00000% <ø> (ø)
src/trio/_path.py 100.00000% <ø> (ø)
src/trio/_tests/test_dtls.py 100.00000% <100.00000%> (ø)
src/trio/_tests/test_exports.py 100.00000% <100.00000%> (ø)
src/trio/_tests/test_util.py 100.00000% <100.00000%> (ø)

... and 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.

A5rocks and others added 4 commits June 1, 2025 14:44
I think we're hitting deprecation warnings because we never switch out the underlying objects, instead mutating the SSL context. This change should also be nice if we ever parallelize the tests
@A5rocks A5rocks disabled auto-merge June 1, 2025 06:02
with endpoint(ipv6=ipv6) as client_endpoint:
client = client_endpoint.connect(address, client_ctx)
# TODO: why is making a new client context necessary here?
client = client_endpoint.connect(address, client_ctx_fn())
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this was failing without a unique client_ctx (in fact this may still fail, CI run isn't over yet)

Copy link
Contributor

Choose a reason for hiding this comment

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

It's failing anyways. I don't get this!

Copy link
Contributor

Choose a reason for hiding this comment

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

OK I think I figured it out: every time we get a client hello, we set the relevant options on the server's SSL context. We shouldn't do that, and now it's pushed up to server creation. Hopefully that works, I don't really know DTLS...

@A5rocks A5rocks added the skip newsfragment Newsfragment is not required label Jun 1, 2025
@A5rocks
Copy link
Contributor

A5rocks commented Jun 1, 2025

This is a big PR but it's mainly just a bunch of changes s.t. DTLS doesn't need to mutate SSL contexts after creating a connection with them (specific changes: making new contexts for each tests and pushing the SSL context mutation for servers to before it gets any connections) and then a few changes due to new mypy version.

Copy link
Member

@CoolCat467 CoolCat467 left a comment

Choose a reason for hiding this comment

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

Looks good I think, dtls test changes are a bit more complex but glancing through it I believe that makes sense, though if someone is more familiar with dtls that would be great.

@A5rocks A5rocks removed the skip newsfragment Newsfragment is not required label Jun 6, 2025
@A5rocks
Copy link
Contributor

A5rocks commented Jun 9, 2025

DTLS probably works and I don't think we have any experts on it who are going to review this code. If there's any issues I'll make a follow up release whenever this gets released.

@A5rocks A5rocks merged commit 8771618 into main Jun 9, 2025
44 checks passed
@A5rocks A5rocks deleted the autodeps/bump_from_79bdcf branch June 9, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants