Rebase speed.python.org on top of master#33
Merged
ambv merged 210 commits intopython:speed.python.orgfrom Jan 16, 2024
Merged
Conversation
…t repos For Mercurial, do not save the 'tip' tag.
Get the list of all (i.e. lightweight, annotated) tags and search for the given commit id. If found, add it to the dictionary returned by 'getlogs'.
Instead of hard-coding the links to the 'Home' page and to the 'About' page, use template markers. This allows the hyperlinks to work even if the Codespeed site does not reside at the web server root.
Tag saving features
Use template markers for 'Home' and 'About' links
This adds a service for generating chart images based on the latest benchmark results using the matplotlib module. The URL for this service is /sample_project/makeimage/. The image can be directly embedded in any HTML document using <img src="host_name/sample_project/makeimage/?...> or simply accessed using the same URL. The mandatory GET params are: env - the environment's name proj - the project's name branch -the branch's name exe - the executable's name ben - the benchmark's name The following params are optional: revs - positive integer, number of results the image will display. revs=10 is the implicit value representing that the latest 10 results will be displayed on the chart relative - if '1' or 'yes', instead of displaying absolute values, the first value from the series is used as a baseline and the chart will display percentual increments from that baseline base_commit - specifies a commit name to be used as a baseline instead of the first value of the series base_env - the environment's name to be used for the base_commit instead of env base_proj - the project's name to be used for the base_commit instead of proj base_exe - the executable's name to be use for the base_commit instead of exe
get_benchmark_results now relies on calling function to catch any ObjectNotFound exception.
Added more validation for width and height keys in validate_results_request. Fixed a small code issue in validate_results_request.
Add the 'makeimage' service
Mention CPython user
Adding b'' literals for py3 compat. Handling git tag error
- Also changed background to a blue that matches the shadow color in the timeline image and changed text color to white so it contrasts better.
Removed dangling reference to vgradient.png
Run on CI
Also updates .gitignore
Most of this is stolen directly from the existing speed.python.org page.
Benchmarks are now at github.com/python/performance, not hg.python.org/benchmarks
- Made all remaining links https:// except for jessenoller.com, which doesn't have a valid certificate - The jessenoller.com post has been moved to a slightly different URL, updated link - wiki.github.com isn't even a valid host; fixed wiki link
Changes as requested
Probably better served to either remove it entirely or steal its content at this point, but this is quicker and easier.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
speed.python.org has diverged from the master branch. With this PR we rebase speed.python.org on top of master
Commit related to #29