Skip to content

Upgrade aiohttp #9348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 18, 2025
Merged

Upgrade aiohttp #9348

merged 19 commits into from
Mar 18, 2025

Conversation

Dreamsorcerer
Copy link
Contributor

No description provided.

@Dreamsorcerer Dreamsorcerer marked this pull request as ready for review October 22, 2024 13:03
@Dreamsorcerer
Copy link
Contributor Author

Dreamsorcerer commented Oct 22, 2024

Database credentials don't work anymore? I haven't touched those in the PR..

@Dreamsorcerer
Copy link
Contributor Author

@NateBrady23 or anyone know what to change for the DB credentials? Would be good to get this upgrade in as there's been a lot of performance optimisations in recent releases (though they may be a magnitude more noticeable in real world scenarios than these simple benchmarks).

@volyrique
Copy link
Contributor

Could it be an issue with the authentication method (issue #8061 might be related)?

@Dreamsorcerer
Copy link
Contributor Author

Could it be an issue with the authentication method (issue #8061 might be related)?

I'm unclear. We just create a DSN with user/password, so I don't see anything we'd need to change for that:

password=os.getenv('PGPASS', 'benchmarkdbpass'),

Appears that asyncpg implemented the auth method 6 years ago, so I doubt it's an issue there either..

@volyrique
Copy link
Contributor

volyrique commented Jan 12, 2025

Yes, but the point is that the password is not necessarily sent in cleartext to the server - see here. asyncpg might not be using the correct method (the defaults have changed much more recently than 6 years ago, as the issue I linked to demonstrates, and some methods might have been removed - other frameworks have been broken by database updates), hence failing with an authentication error. The error message doesn't seem to go into that kind of details, so I would probably run a packet capture to see what is happening on the wire, unless asyncpg provides that information somehow (I am not familiar with it).

Just an idea, since you were asking for suggestions.

@msmith-techempower
Copy link
Member

The issues here don't SEEM to be related to the md5 issue... closing for now, but feel free to open a new PR when you get the issues resolved.

@Dreamsorcerer
Copy link
Contributor Author

I don't have the time to figure out and test locally what is going wrong with your test suite, nothing has changed on the code side..
Given that the problem is already present, and yet it appears results have been included in the latest benchmark run, I would assume that you have some way to run this successfully, regardless of the CI result.

@msmith-techempower
Copy link
Member

It doesn't run successfully locally or in CI with your changes https://github.com/TechEmpower/FrameworkBenchmarks/actions/runs/13909801752/job/38921326418?pr=9348

Currently, on main aiohttp verifies successfully.

This may be related to #7557 since the only changes that would result in the password authentication failing given your changes appear to be the db driver versions being updated. Maybe these new versions disabled md5 auth?

@Dreamsorcerer
Copy link
Contributor Author

Ahhh, I didn't realise it was still working on master. Apparently sqlalchemy changed rendering of URL objects.

This should be good to merge now.

@msmith-techempower msmith-techempower merged commit feca831 into TechEmpower:master Mar 18, 2025
3 checks passed
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