Extract Replay Runs

From PC2wiki
Revision as of 11:07, 18 April 2015 by Doug Lane (talk | contribs) (Run report using pc2report: better directions)
Jump to: navigation, search

Extract Replay Runs Report creates a run info output and extracts runs from

This report should only be run on a server, if run on the admin or any other client not all run submissions will be extracted.

Location

Server module, Reports Tab

Administrator module, Reports Tab

pc2report script

Content

Comment lines start with a #.

The report is intended to be a replay for the contest.

action=RUN_SUBMIT| id=1| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=P386765ab-b92d-450a-af0b-6aab6b7f43aa\reports\report.Extract_Replay_Runs.04.18.720.txt.files/site1run1/isumit.java| 
action=RUN_JUDGEMENT| id=1| site=1| solved=true| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=Yes| senttoteams=true|

Each action line contains pipe delimited fields, each field has a name value pair.

There are two actions RUN_SUBMIT and RUN_JUDGEMENT.

Run submission action

Name Description Example
action Replay action RUN_SUBMIT
id Run Number 1
elapsed Submission time (minutes) 2
language Title for language Java
problem Title for problem Sumit
site Site number 1
submitclient Team submitting team30
mainfile Name of submission source P386765ab-b92d-450a-af0b-6aab6b7f43aa\reports\report.Extract_Replay_Runs.04.18.720.txt.files/site1run1/isumit.java

Judgement action

Name Description Example
action Replay action RUN_JUDGEMENT
id Run Number 1
site Site Number 1
solved Run solved/accepted true
preliminary Prelimiary judgement sent false
judgeclient Which judge judged run judge3
judgeclientsite Judge site number 1
judged_elapsed_time Elapsed time when judgement made 3
computer_judged Was computer/auto judged? true
judgement Judgement Yes
senttoteams Send judgement to teams true

Run report using pc2report

To produce the report use the following command.

pc2report --contestPassword REPLACE_THIS_WITH_CONTEST_PASSWORD 29

Replace REPLACE_THIS_WITH_CONTEST_PASSWORD with your contest password.

This will produce the report to stdout as well as create files like these:

report.Extract_Replay_Runs.04.18.933.txt
report.Extract_Replay_Runs.04.18.933.txt.files\site1run1\isumit.java
report.Extract_Replay_Runs.04.18.933.txt.files\site1run2\isumit.java
report.Extract_Replay_Runs.04.18.933.txt.files\site1run3\hello.java
report.Extract_Replay_Runs.04.18.933.txt.files\site1run4\hello.java

Sample report output is:

# Extract Replay Runs Report

# ------------------------------------------------------------

# Extract Replay Runs
# Created on Sat Apr 18 11:56:37 PDT 2015
# Created by: Version 9.3 20150205 (Thursday, February 5th 2015 15:55 UTC) Java ver 1.7.0_51 build 2920 Windows 7 6.1 (amd64) 

action=RUN_SUBMIT| id=1| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=eport.Extract_Replay_Runs.04.18.933.txt.files/site1run1/isumit.java| 
action=RUN_JUDGEMENT| id=1| site=1| solved=true| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=Yes| senttoteams=true| 
action=RUN_SUBMIT| id=2| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=eport.Extract_Replay_Runs.04.18.933.txt.files/site1run2/isumit.java| 
action=RUN_JUDGEMENT| id=2| site=1| solved=true| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=Yes| senttoteams=true| 
action=RUN_SUBMIT| id=3| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=eport.Extract_Replay_Runs.04.18.933.txt.files/site1run3/hello.java| 
action=RUN_JUDGEMENT| id=3| site=1| solved=false| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=No - Wrong Answer| senttoteams=true| 
action=RUN_SUBMIT| id=4| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=eport.Extract_Replay_Runs.04.18.933.txt.files/site1run4/hello.java| 
action=RUN_JUDGEMENT| id=4| site=1| solved=false| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=No - Wrong Answer| senttoteams=true| 

# All 0 runs extracted

# EOF Extract Replay Runs
# ------------------------------------------------------------

# end

Example Output

Example file list

The report name is

report.Extract_Replay_Runs.04.18.720.txt

The submitted team run files are in the report.Extract_Replay_Runs.04.18.720.txt.files directory.

report.Extract_Replay_Runs.04.18.720.txt
report.Extract_Replay_Runs.04.18.720.txt.files/site1run1
report.Extract_Replay_Runs.04.18.720.txt.files/site1run2
report.Extract_Replay_Runs.04.18.720.txt.files/site1run3
report.Extract_Replay_Runs.04.18.720.txt.files/site1run4
report.Extract_Replay_Runs.04.18.720.txt.files/site1run1/isumit.java
report.Extract_Replay_Runs.04.18.720.txt.files/site1run2/isumit.java
report.Extract_Replay_Runs.04.18.720.txt.files/site1run3/hello.java
report.Extract_Replay_Runs.04.18.720.txt.files/site1run4/hello.java

=Example Report

CSUS Programming Contest System
Version 9.3 20150205 (Thursday, February 5th 2015 15:55 UTC) Java ver 1.7.0_51 build 2920 Windows 7 6.1 (amd64) 
Contest Title: Sumit Hello Sample
On: Saturday, April 18, 2015 11:26:09 AM PDT  Contest date/time: Sat Apr 18 11:21:48 PDT 2015
Profile: Default (Default Contest)


** Extract Replay Runs Report


# ------------------------------------------------------------

# Extract Replay Runs
# Created on Sat Apr 18 11:26:09 PDT 2015
# Created by: Version 9.3 20150205 (Thursday, February 5th 2015 15:55 UTC) Java ver 1.7.0_51 build 2920 Windows 7 6.1 (amd64) 

action=RUN_SUBMIT| id=1| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=P386765ab-b92d-450a-af0b-6aab6b7f43aa\reports\report.Extract_Replay_Runs.04.18.720.txt.files/site1run1/isumit.java| 
action=RUN_JUDGEMENT| id=1| site=1| solved=true| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=Yes| senttoteams=true| 
action=RUN_SUBMIT| id=2| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=P386765ab-b92d-450a-af0b-6aab6b7f43aa\reports\report.Extract_Replay_Runs.04.18.720.txt.files/site1run2/isumit.java| 
action=RUN_JUDGEMENT| id=2| site=1| solved=true| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=Yes| senttoteams=true| 
action=RUN_SUBMIT| id=3| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=P386765ab-b92d-450a-af0b-6aab6b7f43aa\reports\report.Extract_Replay_Runs.04.18.720.txt.files/site1run3/hello.java| 
action=RUN_JUDGEMENT| id=3| site=1| solved=false| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=No - Wrong Answer| senttoteams=true| 
action=RUN_SUBMIT| id=4| elapsed=2| language=Java| problem=Sumit| site=1| submitclient=team30| mainfile=P386765ab-b92d-450a-af0b-6aab6b7f43aa\reports\report.Extract_Replay_Runs.04.18.720.txt.files/site1run4/hello.java| 
action=RUN_JUDGEMENT| id=4| site=1| solved=false| preliminary=false| judgeclient=judge3| judgeclientsite=1| judged_elapsed_time=3| computer_judged=true| judgement=No - Wrong Answer| senttoteams=true| 

# All 0 runs extracted

# EOF Extract Replay Runs
# ------------------------------------------------------------

# end 

See Also