]>
mj.ucw.cz Git - moe.git/log
Tomas Gavenciak [Sat, 18 Sep 2010 21:31:20 +0000 (23:31 +0200)]
Minor pretty-printing
Tomas Gavenciak [Sat, 18 Sep 2010 20:46:44 +0000 (22:46 +0200)]
Fix the hooks in eval.py (self -> e), status writing
Tomas Gavenciak [Sat, 18 Sep 2010 20:42:51 +0000 (22:42 +0200)]
Updates in status and pipeline debugging
New eval.debug_dump_status()
Remove extra newlines from debug messages
Rename status.str_lines -> status.dump
Tomas Gavenciak [Sat, 18 Sep 2010 20:39:42 +0000 (22:39 +0200)]
New task "sum" - dummy for now
Minor config changes
Tomas Gavenciak [Sat, 18 Sep 2010 20:33:28 +0000 (22:33 +0200)]
Fixed dummy task type
Configure "TEST=" properly
Fix running the test pipe
Tomas Gavenciak [Sat, 18 Sep 2010 16:12:21 +0000 (18:12 +0200)]
Many changes to pipeline.py
Rename MoePipeline -> Pipeline
Add Eval and skip_to to Pipeline properties
Asserts when inserting to pipeline
Rewrite dump to return strings instead of writing to file
Some docstrings, clenup
Update eval.py to new constructor
Tomas Gavenciak [Sat, 18 Sep 2010 16:10:08 +0000 (18:10 +0200)]
Pipeline functions now get keyword arguments
No dependence on order, Eval argument called `e`
Fixed dummy extension and task type
Tomas Gavenciak [Sat, 18 Sep 2010 15:28:23 +0000 (17:28 +0200)]
Fixed pipeline.insert args order
Tomas Gavenciak [Sat, 18 Sep 2010 07:40:56 +0000 (09:40 +0200)]
Minor fix config dumping
Tomas Gavenciak [Sat, 18 Sep 2010 07:40:25 +0000 (09:40 +0200)]
Minor fix extensions loading in eval.py
Tomas Gavenciak [Sat, 18 Sep 2010 07:36:02 +0000 (09:36 +0200)]
Fixes around DEBUG_LEVEL
Introduce DEBUG_LEVEL dependency on VERBOSITY
TODO: solve DEBUG_LEVEL better (specially in eval.py?)
Tomas Gavenciak [Sat, 18 Sep 2010 07:34:09 +0000 (09:34 +0200)]
Fix log.py
Tomas Gavenciak [Sat, 18 Sep 2010 07:33:24 +0000 (09:33 +0200)]
Minor fix in util.py
Tomas Gavenciak [Sat, 18 Sep 2010 07:32:30 +0000 (09:32 +0200)]
Fix dummy task-type
Tomas Gavenciak [Sat, 18 Sep 2010 07:30:53 +0000 (09:30 +0200)]
Fix dummy extension
Tomas Gavenciak [Sat, 18 Sep 2010 07:14:30 +0000 (09:14 +0200)]
Moved some basic settings from eval.py to config
Updated config format
Fix a typo in eval.py
Tomas Gavenciak [Sat, 18 Sep 2010 07:13:31 +0000 (09:13 +0200)]
Fixes in config and config parsing
Module name error, better exception information
Tomas Gavenciak [Sat, 18 Sep 2010 06:58:05 +0000 (08:58 +0200)]
Added status write to string
Writing to file still direct, but I would like to rewrite using strings.
Tomas Gavenciak [Sat, 11 Sep 2010 16:35:09 +0000 (18:35 +0200)]
Made ConfigTree.fix take list os well, added test
Tomas Gavenciak [Sat, 11 Sep 2010 15:59:38 +0000 (17:59 +0200)]
Timeline change, multiple changes in Eval
I am sorry for this giga-commit, but it would be too much
work to split it
Update (some) docs, small timeline change
(move loading tasktype from init to pipeline)
Eval.stat -> Eval.status (cosmetic)
Add basic (builtins) and testing configuration
Eval.init fills mainline with basic hooks
Eval.init loads and initializes extensions
Increase indentation (2 by gavento -> 4 by MJ)
Write all main hooks in Eval
Eval.hook_init_tasktype loads tasktype module
It may not seem so, but most of the important
code is reused :-)
Tomas Gavenciak [Sat, 11 Sep 2010 15:55:09 +0000 (17:55 +0200)]
Moved module loading, use __import__() now
General util.load_module returns module by name.
Hook adding in pipeline removed (and distributed to
tasktype module loading and extension module loading, both in Eval)
Tomas Gavenciak [Sat, 11 Sep 2010 15:53:42 +0000 (17:53 +0200)]
Forgotten __init__.py
Tomas Gavenciak [Sat, 11 Sep 2010 15:45:12 +0000 (17:45 +0200)]
HOOKS->EXTENSIONS (with explanation), added dummy extension
Hooks had some problems - the hook modules have to insert self
into the pipeline, but cannot decide into which (only main) and
cannot see Eval during init() (or use the logs)
Having HOOKS with explicit timing:
HOOKS="m:8:my_main_pipeline_hook t:79:cleanup_in_test_pipeline"
would be a possibility, but a little too complex.
Extension is almost the same thing as hook (sugary name change),
but can do anything during init, can insert multiple hooks
(to both main and test pipelines), read/change configuration
and use logs.
Good extension example is fetching tasks via RSYNC or GIT.
Tomas Gavenciak [Sat, 11 Sep 2010 15:44:43 +0000 (17:44 +0200)]
Added dummy task type
Tomas Gavenciak [Fri, 10 Sep 2010 21:56:49 +0000 (23:56 +0200)]
Update makefile
Tomas Gavenciak [Fri, 10 Sep 2010 21:55:03 +0000 (23:55 +0200)]
Add ConfigTree.fix, improve parse_file and use it in Eval.init
Tomas Gavenciak [Fri, 10 Sep 2010 21:36:11 +0000 (23:36 +0200)]
Played with the documentation
No real work done, really. Just fun.
Created a hyperlink! (and base docs for moe.eval)
Tomas Gavenciak [Fri, 10 Sep 2010 20:37:37 +0000 (22:37 +0200)]
Minor doc updates and fixes
Fixed syntactic typo in eval.py
Tomas Gavenciak [Fri, 10 Sep 2010 19:44:28 +0000 (21:44 +0200)]
Updated documentation and tidyed up eval.py
Updated INIT part of the timeline
Shifted some stuff in eval.py around
(re)Created Eval.run() (run in init did not make sense)
Made an observation:
Tried porgrameer make many mitsakes.
Tomas Gavenciak [Fri, 10 Sep 2010 19:36:01 +0000 (21:36 +0200)]
Fidex several errors in log.py
several copy'n'paste errors, forgot to set the level, doc errors,
change main log Formatter
Tomas Gavenciak [Fri, 10 Sep 2010 19:14:40 +0000 (21:14 +0200)]
Rewriting eval.py with new log, config and timeline
Moving initializaton together, remaining init_* will be called from main pipeline
Most changes are moves and rewrites - the meaning did not change much
The actions are as listed in doc/timeline
Tomas Gavenciak [Fri, 10 Sep 2010 18:24:47 +0000 (20:24 +0200)]
Created documentation
Unsing Sphinx, restructured text
Updated documentation strings in config.py and config_parser.py
Makefile for running nosetests and building docs
Tomas Gavenciak [Fri, 10 Sep 2010 17:47:00 +0000 (19:47 +0200)]
Rewrite of moe.log using python logging
Bells, whistles, formatters, per-test logfiles included!
Tomas Gavenciak [Tue, 7 Sep 2010 12:16:57 +0000 (14:16 +0200)]
Renamed conf -> config, refactoring inside config
Added ConfigTree.parse and ConfigTree.parse_file
Minor global renaming changes inside parser and tests
Tomas Gavenciak [Tue, 7 Sep 2010 11:30:22 +0000 (13:30 +0200)]
Added shorthand access moe.ConfTree[key] to conf
Tomas Gavenciak [Sat, 10 Jul 2010 11:40:43 +0000 (13:40 +0200)]
Updated tests, added priority (levels) test
Tomas Gavenciak [Sat, 10 Jul 2010 11:36:38 +0000 (13:36 +0200)]
Fixed small error (which should manifest anyway)
Tomas Gavenciak [Sat, 10 Jul 2010 11:05:23 +0000 (13:05 +0200)]
Implemented varname as a shorthand for "{varname}"
Fixed: variable parsing at end of file
Updated grammar and tests, new test
Tomas Gavenciak [Sat, 10 Jul 2010 10:38:50 +0000 (12:38 +0200)]
Add unicode and file parsing test
Tomas Gavenciak [Sat, 10 Jul 2010 09:20:53 +0000 (11:20 +0200)]
Test variable fixing, update TODO
Tomas Gavenciak [Sat, 10 Jul 2010 09:11:21 +0000 (11:11 +0200)]
Fixed stupid order error in fixing
Tomas Gavenciak [Sat, 10 Jul 2010 08:56:07 +0000 (10:56 +0200)]
Sanitize by adding newlines detween defs
Tomas Gavenciak [Sat, 10 Jul 2010 08:46:36 +0000 (10:46 +0200)]
Implemented simple variable fixing.
Tomas Gavenciak [Sat, 10 Jul 2010 08:42:22 +0000 (10:42 +0200)]
Fix local import name
Martin Mares [Fri, 9 Jul 2010 18:47:48 +0000 (20:47 +0200)]
Config parser: added one forgotten WS
Tomas Gavenciak [Sat, 29 May 2010 17:34:06 +0000 (13:34 -0400)]
Several new tests, updated, all passed
Also covers all important code
Tomas Gavenciak [Sat, 29 May 2010 17:26:47 +0000 (13:26 -0400)]
Now moe module, update ConfigError, minor fix
Tomas Gavenciak [Sat, 29 May 2010 16:59:57 +0000 (12:59 -0400)]
New ConfigError subclasses, move re_VARNAME
Moved re_VARNAME to conf.py
Minor fix VARNAME checking in ConfigTree.lookup()
Tomas Gavenciak [Sat, 29 May 2010 16:42:04 +0000 (12:42 -0400)]
Fixed invalidating conditions and chained condition parsing
Tomas Gavenciak [Sat, 29 May 2010 15:57:26 +0000 (11:57 -0400)]
Fixed minor bug in conf condition eval
Fixed mismatch of params of eval(cl, depth)
Tomas Gavenciak [Sat, 29 May 2010 03:50:54 +0000 (23:50 -0400)]
Many fixes to config parser, many (passed) tests.
Not complete test coverage yet. See notes in conf.test.py
Tomas Gavenciak [Sat, 29 May 2010 03:48:43 +0000 (23:48 -0400)]
Fixed minor type typo
Tomas Gavenciak [Sat, 29 May 2010 03:48:08 +0000 (23:48 -0400)]
Included *.pyc to .gitignore
Tomas Gavenciak [Tue, 25 May 2010 02:18:19 +0000 (22:18 -0400)]
Config parser complete, but completely untested.
Dozens of bugs await!
Tomas Gavenciak [Tue, 25 May 2010 01:55:07 +0000 (21:55 -0400)]
Changes to config operations structure.
Changed config operaiton from triplets to a helper class,
added operation level (as priority) instead of index and
optional source. Changed dump format.
Removal now by operation instead of index.
Test updated and passed, but still not full coverage. WIP parser test.
Tomas Gavenciak [Mon, 24 May 2010 01:25:39 +0000 (21:25 -0400)]
Syntax constants localized to parser class.
Tomas Gavenciak [Sun, 23 May 2010 16:00:41 +0000 (12:00 -0400)]
Complete, but untested config parser.
Tomas Gavenciak [Sun, 23 May 2010 15:59:47 +0000 (11:59 -0400)]
Renamed VARNAME_re to re_VARNAME
Tomas Gavenciak [Sun, 23 May 2010 14:02:39 +0000 (10:02 -0400)]
Changed clause->formula in ConfigCondition, added formula pretty-printing
Tomas Gavenciak [Sat, 22 May 2010 01:36:58 +0000 (21:36 -0400)]
New file for conf parser, move and update conf file syntax
Tomas Gavenciak [Tue, 11 May 2010 01:55:50 +0000 (21:55 -0400)]
Added syntax for config files (to be reviewed)
Add TODO note obput fixing variables
Tomas Gavenciak [Sun, 9 May 2010 00:31:51 +0000 (20:31 -0400)]
Imporoved and shortened conf.py code
Removed subtrees, now only one namespace
Transparent variable creation upon lookup
Implemented general condition clauses (AND, OR, NOT, ==, !=)
Conditions now have 'parent' condition (containing condition block)
Variables refer to only one condition (and indirectly its parents)
Renamed get_value -> evaluate and evaluate -> value
Improved max-depth checking
Updated the test/example (still no conditions)
pprint replaced with dump (for consistency, but still returns an iterator)
Some dovumentation (with TODO's)
Tomas Gavenciak [Fri, 7 May 2010 00:15:19 +0000 (20:15 -0400)]
New module for config evaluation. Basic testing.
Implemented:
* Configuration tree,
* Variables,
* Variable-setting operations ('SET' and 'APPEND')
* Equality conditions (WIP, not tested yet),
* Substitution expressions with text and variables,
* Pretty-printing,
* Caching for variables and conditions with invalidation along reverse-dependencies,
* Add and remove operations from variables with correct reverse-dependency handling (add and remove)
TODO: smarter conditions, variable lookup (and maybe transparent creation),
possibly cleanup of unused variables and conditions
(tests full coverage except conditions)
Martin Mares [Sat, 15 Aug 2009 01:08:46 +0000 (03:08 +0200)]
Saved the example task
Martin Mares [Fri, 14 Aug 2009 09:01:34 +0000 (11:01 +0200)]
Better logging of exceptions
Martin Mares [Fri, 14 Aug 2009 09:01:25 +0000 (11:01 +0200)]
Make "+=" insert spaces as necessary
Martin Mares [Fri, 14 Aug 2009 08:28:53 +0000 (10:28 +0200)]
Removed config resolution caching
Martin Mares [Fri, 14 Aug 2009 08:25:33 +0000 (10:25 +0200)]
Implemented syntax checkers and output filters
Martin Mares [Fri, 14 Aug 2009 07:58:18 +0000 (09:58 +0200)]
Backward-compatible point files implemented
Martin Mares [Fri, 14 Aug 2009 07:45:38 +0000 (09:45 +0200)]
Unify names of exception variables
Martin Mares [Fri, 14 Aug 2009 07:44:26 +0000 (09:44 +0200)]
e.cfgs[x] can be shortened to e[x]
Martin Mares [Fri, 14 Aug 2009 07:40:37 +0000 (09:40 +0200)]
Judges can return single-line verdicts on stderr instead of producing a status file
Martin Mares [Wed, 12 Aug 2009 18:09:47 +0000 (20:09 +0200)]
Cleaup of the config file
Martin Mares [Tue, 11 Aug 2009 23:55:26 +0000 (01:55 +0200)]
Err -> Error in all exception names (to be consistent with naming of standard Python exceptions)
Martin Mares [Tue, 11 Aug 2009 23:53:20 +0000 (01:53 +0200)]
Status files are now handled almost properly
Martin Mares [Tue, 11 Aug 2009 22:46:13 +0000 (00:46 +0200)]
Batch task testing works (sort of)
Martin Mares [Mon, 10 Aug 2009 21:18:55 +0000 (23:18 +0200)]
More bits of compilation
Martin Mares [Mon, 10 Aug 2009 18:32:43 +0000 (20:32 +0200)]
Added sandbox interface module
Martin Mares [Mon, 10 Aug 2009 18:32:13 +0000 (20:32 +0200)]
Parts of compilation
Martin Mares [Mon, 10 Aug 2009 10:06:43 +0000 (12:06 +0200)]
Renamed meta files to status files to match the Moe paper
Martin Mares [Sun, 9 Aug 2009 23:17:11 +0000 (01:17 +0200)]
Cleaned up exception handling and logging
Martin Mares [Sun, 9 Aug 2009 22:38:32 +0000 (00:38 +0200)]
Logging
Martin Mares [Sun, 9 Aug 2009 22:05:14 +0000 (00:05 +0200)]
Implemented configuration overrides from the command line
Martin Mares [Sun, 9 Aug 2009 21:39:09 +0000 (23:39 +0200)]
Locating batch tasks
Martin Mares [Sun, 9 Aug 2009 14:33:30 +0000 (16:33 +0200)]
First attempts at the evaluation overlord
Martin Mares [Sun, 9 Aug 2009 14:32:43 +0000 (16:32 +0200)]
Added a shabby skeleton of a logging module
Martin Mares [Sun, 9 Aug 2009 14:32:19 +0000 (16:32 +0200)]
Added a simple utility function for simulating mkdir -p.
Martin Mares [Sun, 9 Aug 2009 13:30:17 +0000 (15:30 +0200)]
Better error reporting
Martin Mares [Sun, 9 Aug 2009 13:11:25 +0000 (15:11 +0200)]
Better error reporting on the pipeline
Martin Mares [Sun, 9 Aug 2009 13:06:46 +0000 (15:06 +0200)]
A better implementation of the pipeline, including hook loader
Martin Mares [Sun, 9 Aug 2009 11:05:27 +0000 (13:05 +0200)]
Do not try to distinguish between single and double quotes
They are the same in Python.
Martin Mares [Sat, 8 Aug 2009 15:37:35 +0000 (17:37 +0200)]
A brief experiment with pipelines
Martin Mares [Sat, 8 Aug 2009 15:16:44 +0000 (17:16 +0200)]
Configuration values are now cached
Martin Mares [Sat, 8 Aug 2009 15:13:54 +0000 (17:13 +0200)]
Implemented overrides
Martin Mares [Sat, 8 Aug 2009 14:31:44 +0000 (16:31 +0200)]
Better error reporting
Martin Mares [Sat, 8 Aug 2009 14:23:44 +0000 (16:23 +0200)]
Added a prototype of the configuration module.
Martin Mares [Sat, 8 Aug 2009 13:29:45 +0000 (15:29 +0200)]
Initial experimental version of the meta-file module.
Martin Mares [Fri, 31 Jul 2009 18:57:06 +0000 (20:57 +0200)]
Eval: Added STACK_LIMIT.
Martin Mares [Fri, 31 Jul 2009 18:56:01 +0000 (20:56 +0200)]
Box: Do not report all errors as "during startup" if syscalls are not filtered.
Martin Mares [Fri, 31 Jul 2009 18:50:35 +0000 (20:50 +0200)]
Box: Added an option for controlling the stack size limit.
Beware, the default has been changed to `unlimited' instead of inheriting
the limit from the parent process.