Skip to content

Commit 44e590c

Browse files
committed
Update README.md: Add full flags for binary scripts.
1 parent 50d7302 commit 44e590c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ To run code migration for a single repository:
175175
```
176176
cd ~/SDFeedback/src/self_debug
177177
178-
python run_self_debugging.py ...
178+
# Explicit `max_iteration` will override it in the `config_file`
179+
python run_self_debugging.py --config_file configs/java_config.pbtxt # --max_iterations 3
179180
```
180181

181182
### 3.2 Batch Job
@@ -205,7 +206,8 @@ Before submitting a job to EMRS, make sure you have the following ready:
205206
```
206207
cd ~/SDFeedback/src/self_debug/container
207208
208-
./image.sh ...
209+
# To build ECR image: 552793110740.dkr.ecr.us-east-1.amazonaws.com/$USER:java
210+
./image.sh java $USER 1 docker/java.Dockerfile # 999999999999.dkr.ecr.us-west-2.amazonaws.com
209211
```
210212

211213
2. Submit a spark job to EMRS
@@ -216,7 +218,11 @@ Note that security keys might be subject to `12h` timeout.
216218
cd ~/SDFeedback/src/self_debug/batch
217219
218220
# Update config file as needed for `emrs.py`, e.g. use the right ECR image in step `#1`
219-
python emrs.py ...
221+
CONFIG=...
222+
export APPLICATION=emrs-dbg-{user}--{date}--run00
223+
export SCRIPT=debugger
224+
225+
python emrs.py --config_file=$CONFIG --application=$APPLICATION --script=$SCRIPT --user=$USER # --dry_run=1
220226
```
221227

222228

0 commit comments

Comments
 (0)