Prepare env0 public release hygiene#9
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b6faec6a56
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| import pathlib | ||
|
|
||
| _harbor_dir = pathlib.Path(os.environ["TASKS_DIR"]) if "TASKS_DIR" in os.environ else pathlib.Path(__file__).resolve().parents[5] / "tasks" | ||
| _tasks_dir = pathlib.Path(os.environ["TASKS_DIR"]) if "TASKS_DIR" in os.environ else pathlib.Path(__file__).resolve().parents[5] / "example_tasks" |
There was a problem hiding this comment.
Restore task discovery for Gmail demo scenarios
When TASKS_DIR is unset, this fallback now discovers task scenarios only under example_tasks/, but the registered Gmail demo task vendor-report-organize still uses scenario = "task:email-vendor-report-organize" and that data directory exists under tasks/, not example_tasks/. As a result, default local uses such as GmailToolEnv(task_name="vendor-report-organize").reset() or seeding that scenario now hit Unknown scenario instead of loading the existing task data; keep tasks/ in the fallback or move/register the demo data consistently.
Useful? React with 👍 / 👎.
Summary
Validation
scripts/smoke_dev.shfor d in packages/environments/mock-gcal packages/environments/mock-gdoc packages/environments/mock-gdrive packages/environments/mock-gmail packages/environments/mock-slack; do (cd "$d" && uv run --extra dev pytest tests/test_conformance.py -q); donecd packages/environments/mock-gdrive && uv run --extra dev pytest tests -qcd packages/environments/mock-gmail && uv run --extra dev pytest tests -qcd packages/environments/mock-slack && uv run --extra dev pytest tests -qmissing=0git diff --checkpython3 docker/generate_dockerfile.py --dry-run > /tmp/env0-Dockerfile.base.audit && diff -u docker/Dockerfile.base /tmp/env0-Dockerfile.base.audit