Skip to content

[pre-commit.ci] pre-commit autoupdate#3155

Merged
jakkdl merged 2 commits intomainfrom
pre-commit-ci-update-config
Dec 18, 2024
Merged

[pre-commit.ci] pre-commit autoupdate#3155
jakkdl merged 2 commits intomainfrom
pre-commit-ci-update-config

Conversation

@pre-commit-ci
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Dec 16, 2024

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3](astral-sh/ruff-pre-commit@v0.8.2...v0.8.3)
@codecov
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.62%. Comparing base (c4c8ce4) to head (1bd004a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3155   +/-   ##
=======================================
  Coverage   99.62%   99.62%           
=======================================
  Files         122      122           
  Lines       18405    18407    +2     
  Branches     1226     1226           
=======================================
+ Hits        18336    18338    +2     
  Misses         47       47           
  Partials       22       22           
Files with missing lines Coverage Δ
src/trio/_tests/test_highlevel_socket.py 100.00% <100.00%> (ø)
src/trio/_tests/test_socket.py 99.84% <100.00%> (+<0.01%) ⬆️

@A5rocks
Copy link
Contributor

A5rocks commented Dec 17, 2024

I wonder why 3.13 macOS is all of a sudden failing consistently...

@A5rocks
Copy link
Contributor

A5rocks commented Dec 17, 2024

OK so presumably something here is causing it: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241211.616. I assume it's a matter of CPython 3.13.0 -> 3.13.1, but it's weird for that to break anything and specifically on macOS.


I checked and yes, that does seem to be the change: https://github.com/A5rocks/trio/actions/runs/12366588124/job/34513521105. I wonder what happened -- I assume they must have made error checking somewhere more strict. I'll check the changelog I suppose.

@CoolCat467 CoolCat467 mentioned this pull request Dec 18, 2024
@webknjaz
Copy link
Member

@A5rocks I suggest pinning it, temporarily, and debugging in a separate “unpinning” PR.

@jakkdl
Copy link
Member

jakkdl commented Dec 18, 2024

OK so presumably something here is causing it: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20241211.616. I assume it's a matter of CPython 3.13.0 -> 3.13.1, but it's weird for that to break anything and specifically on macOS.

I checked and yes, that does seem to be the change: https://github.com/A5rocks/trio/actions/runs/12366588124/job/34513521105. I wonder what happened -- I assume they must have made error checking somewhere more strict. I'll check the changelog I suppose.

It's not terribly surprising, nor alarming, that this code broke

def setsockopt_tests(sock: SocketType | SocketStream) -> None:
"""Extract these out, to be reused for SocketStream also."""
# specifying optlen. Not supported on pypy, and I couldn't find
# valid calls on darwin or win32.
if hasattr(tsocket, "SO_BINDTODEVICE"):
sock.setsockopt(tsocket.SOL_SOCKET, tsocket.SO_BINDTODEVICE, None, 0)

Author of the comments is me in cf1f3c7

but looking deeper SO_BINDTODEVICE should not be set on mac, afaict it's a linux-only option, so it seems it's now set, but not supported. cpython doesn't set the constant themselves as it's a linux kernel header constant that gets passed through, so I'm not even sure it's cpython/3.13.1 that is to blame....

@jakkdl jakkdl force-pushed the pre-commit-ci-update-config branch from 18bb2a5 to 1bd004a Compare December 18, 2024 10:42
@jakkdl jakkdl enabled auto-merge December 18, 2024 10:46
@jakkdl jakkdl added this pull request to the merge queue Dec 18, 2024
@A5rocks
Copy link
Contributor

A5rocks commented Dec 18, 2024

so I'm not even sure it's cpython/3.13.1 that is to blame....

Setting the version back to 3.13.0 makes CI pass on same GHA runner images. Maybe it's something about the build environment but still weird.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@jakkdl jakkdl added this pull request to the merge queue Dec 18, 2024
@jakkdl
Copy link
Member

jakkdl commented Dec 18, 2024

asdfffff. codecov/merge queue is being very irritating. I have no clue why codecov says the diff hit is <100%

@A5rocks
Copy link
Contributor

A5rocks commented Dec 18, 2024

Let's disable codecov in merge queue then!

Merged via the queue into main with commit a2c6bcd Dec 18, 2024
@jakkdl jakkdl deleted the pre-commit-ci-update-config branch December 18, 2024 11:43
@webknjaz
Copy link
Member

@A5rocks how?

@jakkdl I think it's because of the default branch, probably.

@A5rocks
Copy link
Contributor

A5rocks commented Dec 19, 2024

@A5rocks how?

I thought what you thought up on Gitter sounds fine, ie just skipping the codecov step based on the GitHub event in question.

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.

4 participants