# Submitting

To submit your code, simply push to your personal repo's master branch. **Make sure you do not commit the `tpc` binary and you format your code before you push.** You can format your code by running `gofmt -l -w pkg/` in the `hw6` directory.

**You need to manually run the tests for both part A and part B** by going to the assignment on the autograder and pressing the `RUN AUTOGRADER` button.&#x20;

We recommend that you start on this homework as soon as possible. The tests take a while to run, so towards the end you you wait a long time in queue before your build is executed!

Occasionally, you may get a test that fails with an output like:

```
...
File "/some/path/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
File "some/path/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 9] Bad file descriptor
```

We believe this is a bug with the subprocess library of Python itself. If you get this, simply restart another build as this bug only appears with some limited probability.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://berkeley-cs162.gitbook.io/hw-6/tcp/submitting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
