-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support cloud experiments: 1. Upload local pickle files for `agent` and `result_history` 2. In cloud build: Install dependecies and run `new_result = agent.execute(result_history)` 3. Download the pickle file of `new_result` 4. Save cloud exp logs 5. If cloud build fails, return a default `new_result` representing build failure. 6. Convert results into `status/**/result.json` for report generation. 7. Upload local OFG repo to cloud build, instead of asking cloud build to pull from repo. 8. Make new `Result` class compatible with report generation. TODOs: 2. More exception handlings. 3. More intermediate files (local agent dialog)
- Loading branch information
Showing
19 changed files
with
722 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# TODO(dongge): Automatically build and push this to registry daily: | ||
# us-central1-docker.pkg.dev/oss-fuzz/oss-fuzz-gen/agent-image | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install Python 3.11 and pip | ||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common curl && \ | ||
add-apt-repository ppa:deadsnakes/ppa && \ | ||
apt-get update && \ | ||
apt-get install -y python3.11 python3.11-dev python3.11-venv \ | ||
python3.11-distutils && \ | ||
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 | ||
|
||
# Install Docker | ||
RUN apt-get install -y ca-certificates gnupg lsb-release && \ | ||
mkdir -p /etc/apt/keyrings && \ | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ | ||
gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ | ||
echo "deb [arch=$(dpkg --print-architecture) \ | ||
signed-by=/etc/apt/keyrings/docker.gpg] \ | ||
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | \ | ||
tee /etc/apt/sources.list.d/docker.list > /dev/null && \ | ||
apt-get update && \ | ||
apt-get install -y docker-ce docker-ce-cli containerd.io \ | ||
docker-buildx-plugin docker-compose-plugin | ||
|
||
ENV DEBIAN_FRONTEND=dialog | ||
|
||
# Set the working directory | ||
WORKDIR /workspace/ofg | ||
|
||
# Copy the requirements file | ||
COPY requirements.txt /workspace/ofg/ | ||
|
||
# Install Python dependencies | ||
RUN pip3.11 install --ignore-installed -r /workspace/ofg/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.