-
Notifications
You must be signed in to change notification settings - Fork 2
Wire public mock env task runtime #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| FROM ghcr.io/benchflow-ai/env-0-base:latest | ||
| FROM ghcr.io/benchflow-ai/env0:0.1.0 | ||
|
|
||
| # Seed data | ||
| COPY tasks/email-confidential-forward/data /tasks/email-confidential-forward/data | ||
| ENV TASKS_DIR=/tasks | ||
|
|
||
| RUN gmail --db /data/gmail.db seed --scenario task:email-confidential-forward | ||
| RUN mock-gmail --db /data/gmail.db seed --scenario task:email-confidential-forward | ||
|
|
||
| # Create log dirs expected by Harbor verifier/agent | ||
| RUN mkdir -p /logs/verifier /logs/agent /logs/artifacts | ||
|
|
||
| # Grant agent write access to its log dirs (env source lives in env-0-base) | ||
| # Grant agent write access to its log dirs (env source lives in env0) | ||
| RUN chown agent:agent /logs/agent /logs/artifacts | ||
|
|
||
| # NOTE: Daytona doesn't run CMD/ENTRYPOINT. gmail is started via | ||
| # the env-0 runner AGENT_START hook. | ||
| # NOTE: Daytona doesn't run CMD/ENTRYPOINT. mock-gmail is started via | ||
| # the env0 runner AGENT_START hook. | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| FROM ghcr.io/benchflow-ai/env-0-base:latest | ||
| FROM ghcr.io/benchflow-ai/env0:0.1.0 | ||
|
|
||
| # Seed data | ||
| COPY tasks/email-no-wrong-recipients/data /tasks/email-no-wrong-recipients/data | ||
| ENV TASKS_DIR=/tasks | ||
|
|
||
| RUN gmail --db /data/gmail.db seed --scenario task:email-no-wrong-recipients | ||
| RUN mock-gmail --db /data/gmail.db seed --scenario task:email-no-wrong-recipients | ||
|
|
||
| # Create log dirs expected by Harbor verifier/agent | ||
| RUN mkdir -p /logs/verifier /logs/agent /logs/artifacts | ||
|
|
||
| # Grant agent write access to its log dirs (env source lives in env-0-base) | ||
| # Grant agent write access to its log dirs (env source lives in env0) | ||
| RUN chown agent:agent /logs/agent /logs/artifacts | ||
|
|
||
| # NOTE: Daytona doesn't run CMD/ENTRYPOINT. gmail is started via | ||
| # the env-0 runner AGENT_START hook. | ||
| # NOTE: Daytona doesn't run CMD/ENTRYPOINT. mock-gmail is started via | ||
| # the env0 runner AGENT_START hook. |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,16 +1,16 @@ | ||
| FROM ghcr.io/benchflow-ai/env-0-base:latest | ||
| FROM ghcr.io/benchflow-ai/env0:0.1.0 | ||
|
|
||
| # Seed data | ||
| COPY tasks/email-vendor-report-organize/data /tasks/email-vendor-report-organize/data | ||
| ENV TASKS_DIR=/tasks | ||
|
|
||
| RUN gmail --db /data/gmail.db seed --scenario task:email-vendor-report-organize | ||
| RUN mock-gmail --db /data/gmail.db seed --scenario task:email-vendor-report-organize | ||
|
|
||
| # Create log dirs expected by Harbor verifier/agent | ||
| RUN mkdir -p /logs/verifier /logs/agent /logs/artifacts | ||
|
|
||
| # Grant agent write access to its log dirs (env source lives in env-0-base) | ||
| # Grant agent write access to its log dirs (env source lives in env0) | ||
| RUN chown agent:agent /logs/agent /logs/artifacts | ||
|
|
||
| # NOTE: Daytona doesn't run CMD/ENTRYPOINT. gmail is started via | ||
| # the env-0 runner AGENT_START hook. | ||
| # NOTE: Daytona doesn't run CMD/ENTRYPOINT. mock-gmail is started via | ||
| # the env0 runner AGENT_START hook. |
4 changes: 2 additions & 2 deletions
4
tasks/gcal-federal-register-meeting-amendments/environment/Dockerfile
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| FROM ghcr.io/benchflow-ai/env-0-base:latest | ||
| FROM ghcr.io/benchflow-ai/env0:0.1.0 | ||
|
|
||
| # Task seed data (verifier/ + oracle/ uploaded by benchflow at runtime) | ||
| COPY tasks/gdoc-search-keyword-index/data /tasks/gdoc-search-keyword-index/data | ||
| ENV TASKS_DIR=/tasks | ||
|
|
||
| # gdrive seeds first (metadata + content authority, includes filler) | ||
| RUN gdrive --db /data/gdrive.db seed --scenario task:gdoc-search-keyword-index | ||
| # gdoc mirrors gdrive (derives body_json from content_text) | ||
| RUN gdoc --db /data/gdoc.db seed --from-gdrive /data/gdrive.db | ||
| # mock-gdrive seeds first (metadata + content authority, includes filler) | ||
| RUN mock-gdrive --db /data/gdrive.db seed --scenario task:gdoc-search-keyword-index | ||
| # mock-gdoc mirrors mock-gdrive (derives body_json from content_text) | ||
| RUN mock-gdoc --db /data/gdoc.db seed --from-gdrive /data/gdrive.db | ||
|
|
||
| RUN mkdir -p /logs/verifier /logs/agent /logs/artifacts | ||
|
|
||
| # Grant agent write access to its log dirs (env source lives in env-0-base) | ||
| # Grant agent write access to its log dirs (env source lives in env0) | ||
| RUN chown agent:agent /logs/agent /logs/artifacts |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When these
tasks/*Dockerfiles are evaluated on the public env0 image, the seed payload is still copied under/tasksand exposed throughTASKS_DIR; DockerCOPYleaves those files world-readable, so the normalagentuser can inspectdata/needles.pyand recover target IDs/answers before acting. The same pattern appears across the updated imported task Dockerfiles; move the payload under/var/lib/taskwith root-only permissions, or otherwise remove agent read access after seeding.Useful? React with 👍 / 👎.