Add Cloud Agent development environment - #492
Draft
abimaelmartell wants to merge 1 commit into
Draft
abimaelmartell wants to merge 1 commit into
abimaelmartell wants to merge 1 commit into
Conversation
Co-authored-by: Abimael Martell <abimaelmartell@users.noreply.github.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a repo-managed Cloud Agent environment for
pdf-inspector(primary) withpdf-evalsas a repository dependency, so a fresh Cloud Agent boots ready to build the binaries and run the regression/scoring suite end to end..cursor/environment.json— default base image +installscript, withgithub.com/firecrawl/pdf-evalsdeclared underrepositoryDependencies.scripts/cloud-agent-install.sh— idempotent, non-interactive setup:python3.12-venv,qpdf);pdf2md,detect-pdf) using the pinnedrust-toolchain.tomlchannel (1.98.0), which cargo auto-installs;pdf-evals.venvand installs only the core benchmark/scoring deps (the section ofrequirements.txtabove# optional provider dependencies), skipping the heavy cloud-OCR providers (docling/torch, pymupdf4llm, markitdown, llama-cloud) that the local dev flow does not need;pdf-evals/config.yamlpointing thelocalprovider at the freshly builtpdf2md(git-ignored), sobench.pyworks without any extra env var.No
start/terminals:pdf-inspectoris a CLI/library with no long-running service.Validation (on the VM, from a clean state)
rustc 1.98.0auto-installed fromrust-toolchain.tomlcargo fmt --checkcargo clippy -- -D warningscargo testpdf2md/detect-pdfbuild and extract a sample PDFbench.py doctorbench.py test -qconfig.yaml)bench.py score -qapted+lxml)Note on build-test tooling
This setup was validated by running the exact install script from a clean state on the VM (fresh
.venv/config.yaml, re-run for idempotence). The prebuilt-image build-and-verify path was not exercised because this agent run is anchored to thepdf-evalsrepo, so the build tooling cannot check outpdf-inspectoras the primary repo to test its committed.cursor/environment.json. Once merged, the committed file is the highest-precedence source for Cloud Agents started onpdf-inspector.Summary by cubic
Adds a repo-managed Cloud Agent environment for
pdf-inspectorso a fresh agent boots ready to build the release binaries and run thepdf-evalsregression suite.config.yamlinpdf-evalsto point at the freshly builtpdf2mdbinary.Written for commit c853394. Summary will update on new commits.