Add a dummy workunit to the end of the run to print out a timestamp that includes the time spent in the last task.

Review Request #2054 — Created April 10, 2015 and submitted

zundel
pants
zundel/add-final-timestamp
1375, 1393
6eda617...
pants-reviews
benjyw, jsirois

I noticed some runs seem to hang a long time between the printing of the last timestamp and exiting.

Add a dummy workunit to the end of the run to print out a timestamp that includes the time spent in the last task.

After this change, I get a timestamp that accounts for the missing time:

09:27:19 00:00 [main]
               (To run a reporting server: ./pants server)
09:27:19 00:00   [bootstrap]
09:27:23 00:04   [setup]
09:27:23 00:04     [parse]
               Executing tasks in goals: bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> resolve -> compile
09:27:26 00:07   [bootstrap]
09:27:26 00:07     [bootstrap-jvm-tools]
09:27:26 00:07   [imports]
09:27:26 00:07     [ivy-imports]
09:27:30 00:11   [unpack-jars]
09:27:30 00:11     [unpack-jars]
09:27:30 00:11   [deferred-sources]
09:27:30 00:11     [deferred-sources]
09:27:30 00:11   [gen]
09:27:30 00:11     [thrift]
09:27:30 00:11     [protoc]
09:27:30 00:11     [antlr]
09:27:31 00:12     [ragel]
09:27:31 00:12     [jaxb]
09:27:31 00:12     [wire]
09:27:31 00:12     [aapt]
09:27:31 00:12   [resolve]
09:27:31 00:12     [ivy]
09:27:32 00:13       [ivy-resolve]
09:27:40 00:21   [compile]
09:27:40 00:21     [compile]
09:27:40 00:21     [jvm]
09:27:40 00:21       [jvm-compilers]
09:27:59 00:40   [complete]
               SUCCESS

CI is green at https://travis-ci.org/pantsbuild/pants/builds/57973122

ZU
JS
  1. 
      
  2. src/python/pants/goal/run_tracker.py (Diff revision 1)
     
     
    s/rite/write/
  3. 
      
NH
  1. Nice!

  2. src/python/pants/goal/run_tracker.py (Diff revision 1)
     
     

    whitespace

  3. 
      
ZU
ZU
Review request changed

Status: Closed (submitted)

Change Summary:

Thanks for the reviews John & Nick. Commit b312459

BE
  1. 
      
  2. src/python/pants/goal/run_tracker.py (Diff revision 2)
     
     

    single quotes

  3. 
      
Loading...