-
Notifications
You must be signed in to change notification settings - Fork 2
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
Triage MySQL 8 geospatial query compatibility with freezing-sync #56
Triage MySQL 8 geospatial query compatibility with freezing-sync #56
Comments
So you can |
@obscurerichard my notes for testing sync locally.
I use my own athlete id. I set the start date to 11/1 so there would be data to pull. I wind up creating symlinks everywhere to get the latest freezing-model from my local branch. |
Thanks for the troubleshooting notes. It's ok to push a new version tag in the freezing-model repo for testing, even from an experimental branch, I do it all the time, then you don't need crazy symlinks. Even if we don't end up using that tag in the long run or it is a dead end for code that doesn't make it into the default branch, it's ok. I try to follow semver generally though. If you install freezing-sync in a local virtualenv you can do I did a bunch of testing on this tonight and was able to confirm that the In related testing findings, I also found that I had accidentally dropped the |
The testing results I had showed that definitely:
|
The other projects all got updated to help with the fallout of freezingsaddles/freezing-web#295 and freezingsaddles/freezing-sync#56 This makes it possible to test tags for freezing-nq as well.
In Exception in all/tracks.geojson - suspected MySQL 8 incompatibility with SQLAlchemy #295 @obscurerichard found a troubling exception that might require a whole chain of library upgrades to resolve. In freezingsaddles/freezing-web#281 we upgraded to MySQL 8, but maybe without adequate testing.
We should triage
freezing-sync
to ensure that it does not run into trouble withpymysql.err.OperationalError: (1305, 'FUNCTION freezing.AsBinary does not exist')
or similar error messages. The same references and leads that apply to freezingsaddles/freezing-web#295 will likely apply here. The TLDR is that if we do have a problem it might require us to upgrade or patch SQLAlchemy and friends, which is likely to be a huge pain.Strategies
Integration testing
We could establish some integration tests that inject data into freezing-sync, possibly via beanstalkd messages, maybe with real live data from Strava, that can help us verify that ingesting Strava activities, including their tracks, is still working properly.
This is high effort, but low risk.
Live testing
We could alter the start and end dates of the competition to temporarily have activities recorded from Strava get recorded, then clear them out of the database by doing a partial reset of the rides.
This is low effort, but medium risk and might be confusing to users.
The text was updated successfully, but these errors were encountered: