Repository navigation
General Toolset Improvements (WIP) - #3210
Conversation
|
Not sure how we feel about automated code migration, but there is a tool called 2to3-3.6 that automatically updates Python 2 files. Due to the nature of TFB and the importance of not breaking existing code, I can understand why it may be preferable to manually make the changes, but I figured it was worth mentioning. |
|
@knewmanTE Yeah I saw that recently when I was looking at the Plus at this point, the update verifications that you started is essentially done. I have a few more frameworks that I have to look at, but I'll probably look to have this merged once that's complete, as I think that update verification is super important. |
|
@nbrady-techempower that's very exciting to hear! Thanks for looking into the update verification stuff. It was frustrating knowing that it was so close but there were still those few random frameworks that were breaking, but I was always holding onto the hope that if we waited a bit for some general TFB cleanup/updates/improvements, some of the issues would resolve on their own. |
|
So we're going to merge this in now mainly for the Update Test Verification. There are no breaking changes here, except that some frameworks were getting by without committing update writes to the database. Those frameworks are now correctly marked as failing. |
* remove unused test directory * move toolset print statements to functions * include changes from TechEmpower#2536 * During verify updates, check for `world` or `World` table updates (postgres) * make sure postgres is checking both world tables
General Toolset Improvements (Work in progress)
Motivations
Toolset Roadmap
There are a few things I'd like to accomplish here. First, I'd like to start future-proofing the toolset for a Python upgrade. We may not be far off from being able to move to 16.04, and even 18.04 when stable is released in April. This will ship with python 3.6 as the default. In the meantime we can do a few things to make the toolset work in 16.04/18.04/3.6 and still be compatible with 14.04/python 2.7.
I'd also like to explore getting some test coverage for the toolset. Ideally this would be tests before the matrix of framework tests that would only run if a toolset file has been modified.
Modularize
benchmarker.pyandframework_test.pyinto a subdirectory of more manageable pieces. This doesn't mean a complete rewrite, but I'd like to take a closer look at these files and see if we can better document/reuse come components to make the toolset more approachable. We rarely, if ever, get help with toolset improvements. This could also be a good time to enforce some code style consistency with PEP.__future__import for compatibility with helpful python 3 featurescaniusepython3or some similar tool to check modules for compatibility issues/toolsetto modularize and group related code_idfrom mongo setup and make sure all frameworks using mongo use theidfield which is now properly indexed (see Upgrade to swift 4.1 and mongodb 3.6, fix vapor tests #3242)Note: I may cherry pick from this PR if I can fix some of the issues listed before the overall improvemnts are done