aboutsummaryrefslogtreecommitdiff
path: root/bestflags
AgeCommit message (Collapse)Author
2019-03-08Swap READMEs to markdownGeorge Burgess IV
Suggested by vapier@ in I7daf1cbe93f8809e469698d7772a6c68baf9e194 This ignores README.chromium, since I'm unsure if that's a special name that some tool somewhere relies on. I skimmed over all of these in gitiles (as you can probably tell by the 35 patch sets :) ) and fixed the issues that jumped out at me. I'm sure that some remain somewhere, but I think I got the majority of them. An attempt has been made to make all files roughly follow the rules here: https://github.com/google/styleguide/blob/gh-pages/docguide/style.md Note that not all of them have super meaningful introductions with ToCs/etc, but the rest should be relatively consistent with that guide. BUG=None TEST=Manual inspection Change-Id: I158048d972d49966e3b8ff1e07e5429928edb339 Reviewed-on: https://chromium-review.googlesource.com/1504893 Commit-Ready: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org>
2015-12-16Run pyformat on all the toolchain-utils files.Luis Lozano
This gets rid of a lot of lint issues. Ran by doing this: for f in *.py; do echo -n "$f " ; if [ -x $f ]; then pyformat -i --remove_trailing_comma --yapf --force_quote_type=double $f ; else pyformat -i --remove_shebang --remove_trailing_comma --yapf --force_quote_type=double $f ; fi ; done BUG=chromium:567921 TEST=Ran simple crosperf run. Change-Id: I59778835fdaa5f706d2e1765924389f9e97433d1 Reviewed-on: https://chrome-internal-review.googlesource.com/242031 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@google.com>
2013-08-19Add the omnetpp example.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing and genetic algorithm. Change-Id: I69f10c79e87db1ce58c14a4c827ea5f5dd71e4bf Reviewed-on: https://gerrit-int.chromium.org/43047 Commit-Queue: Luis Lozano <llozano@chromium.org> Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org>
2013-08-16Add the negative flag elimination algorithm.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing, genetic algorithm and iterative flag elimination algorithm. Change-Id: I2d400e304570de8a15556529eff823d40c36b185 Reviewed-on: https://gerrit-int.chromium.org/42798 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-08-16Add an example that flows through the framework.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing and genetic algorithm. Change-Id: I997770204feda543a3424f7f69cf2ee7f45fccc2 Reviewed-on: https://gerrit-int.chromium.org/43004 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-08-16Fixed the problems in task and steering.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing and genetic algorithm. Change-Id: Ib34ef05518124b6ffa03f0c35795109e22581b89 Reviewed-on: https://gerrit-int.chromium.org/43002 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-08-15Initiate all the class fields in the init method.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I170f4c3a719e0b6aedfdbd90aa29803c011c9ba0 Reviewed-on: https://gerrit-int.chromium.org/42835 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-15Add the content to the README.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I49ac28745fc8bdf1a04f26fb468c420e8d2c7b9c Reviewed-on: https://gerrit-int.chromium.org/42833 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-15Refining the documentations.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing and genetic algorithm. Change-Id: I45c83c9dc74e54b75492ceb281e6912eb347d75e Reviewed-on: https://gerrit-int.chromium.org/42802 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-11Refine the module hill_climb_best_neighbor.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I95fd82072f1474b73735a643f2da589eb930b838 Reviewed-on: https://gerrit-int.chromium.org/42663 Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-10Add more examples for better documentation.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I1f8f361388d3c3171a7135d1d0ef38ee5f695829 Reviewed-on: https://gerrit-int.chromium.org/42584 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-08-07Add the Genetic Algorithm.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing and genetic algorithm. Change-Id: I2864d6a6859fff43bc2d3afb059c672c54bbe385 Reviewed-on: https://gerrit-int.chromium.org/42472 Reviewed-by: Simon Que <sque@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-08-07Add underscore to separate words in variables.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I0efdf5e7ad85b42f37519b6e0cebea8352bbf563 Reviewed-on: https://gerrit-int.chromium.org/42430 Reviewed-by: Simon Que <sque@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-07Encapsulate a couple inner fields in a unittest.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I5d86c107cb7a0693c97a0cb404c2a89a172ce835 Reviewed-on: https://gerrit-int.chromium.org/42418 Reviewed-by: Simon Que <sque@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-07Add the best branching hill climbing algorithm.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: Ifd181f45c4b82f5fb77b0d4946757954aa806d33 Reviewed-on: https://gerrit-int.chromium.org/42284 Tested-by: Yuheng Long <yuhenglong@google.com> Reviewed-by: Simon Que <sque@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-08-02Add the flag module.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task and flag. Change-Id: Ia1b32f859da2fc0984b940393b688a44221f3611 Reviewed-on: https://gerrit-int.chromium.org/41847 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-07-30Add the task module.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering and task. Change-Id: I38987a12d7a48ec027d42465300a7226c760ea9d Reviewed-on: https://gerrit-int.chromium.org/41659 Reviewed-by: Simon Que <sque@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-07-25Add the steering stage of the framework.Yuheng Long
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation and steering. Change-Id: Id92bcf04ee24dfbc918f59ac8d87d30ee69e47b3 Reviewed-on: https://gerrit-int.chromium.org/41454 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-07-22Added the copyright information.Yuheng Long
BUG=None TEST=unit testing for the pipeline stage, pipeline workers and generation. Change-Id: I1a4eb5e2759ea536fa6faee613199b8f679f586e Reviewed-on: https://gerrit-int.chromium.org/41357 Reviewed-by: Simon Que <sque@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-07-22Added the base Generation base class.Yuheng Long
Algorithm specific subclasses, e.g., Genetic Algorithm and Hill Climbing, should extend this base class. BUG=None TEST=unit testing for the pipeline stage, pipeline workers and generation. Change-Id: Icc79b02099521db74fed7c1017691e2a8719be23 Reviewed-on: https://gerrit-int.chromium.org/41081 Reviewed-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Simon Que <sque@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-07-16Extract out a common mock task into a module.Yuheng Long
The mock tasks are used in multiple unitest modules. It is not extracted out into a module to enable reuse. BUG=None TEST=unit testing for the pipeline stage and pipeline workers. Change-Id: Iee436266f7ea26c2877377f52208cc5cd31e7815 Reviewed-on: https://gerrit-int.chromium.org/41001 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-07-12Rename the methods and use the dummy parameters.Yuheng Long
Refactor methods names and substitute unused variables with dummy variables. BUG=None TEST=unit testing for the pipeline stage and pipeline workers. Change-Id: I237d893201853d8620ff886c8fb9012c38b83805 Reviewed-on: https://gerrit-int.chromium.org/40865 Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com> Reviewed-by: Simon Que <sque@google.com>
2013-07-11Add the project information to each file's header comment.Yuheng Long
BUG=None TEST=None Change-Id: I362bfbf18c42025a0248714aa5d69ecfaa1daa2b Reviewed-on: https://gerrit-int.chromium.org/40826 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-07-10Merge the test stage and the build stage.Yuheng Long
Use the pipeline_worker to represent both stage. These two stages differ on getting the key of the task in the stage and setting the value of this stage. The key uniquely distinguish a task from another task. For example, the key for the build phase is the optimization flags, while the key for the test stage is the checksum of the built image. BUG=None TEST=None Change-Id: Id057c17026806acd406fe78cc70ed996273ca9aa Reviewed-on: https://gerrit-int.chromium.org/40376 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-06-27Added the logic and the test for the builder of the framework.Yuheng Long
BUG=None TEST=None Change-Id: Ibf65d94c042b39f340ccaae7a9aaa16d390c8d50 Reviewed-on: https://gerrit-int.chromium.org/39864 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-06-18Fixed the warnings from pylint.Yuheng Long
BUG=None TEST=None Change-Id: I1b2b5df85eacb1b30557d108bf982054ea5e3cea Reviewed-on: https://gerrit-int.chromium.org/39812 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
2013-06-18Have the pipeline process working. Added the unit test for this class.Yuheng Long
BUG=None TEST=None Change-Id: I7fe9fd5b1610959399000b1dfc9b6db55c5c28fb Reviewed-on: https://gerrit-int.chromium.org/39473 Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-06-10Added the skeleton for the flagging framework.Yuheng Long
BUG=None TEST=None Change-Id: I72c37ac70ed2adca588ad9866a6bcc26775aed8b Reviewed-on: https://gerrit-int.chromium.org/39096 Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
2013-06-10testingYuheng Long
BUG=None TESTS=None Change-Id: Ie81057d3035358dae0cf198c21d93cda781c5bad Reviewed-on: https://gerrit-int.chromium.org/39005 Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>