chore(cloud-agent): add repository-managed Cloud Agent environment - #1111
Draft
seonghobae wants to merge 1 commit into
Draft
chore(cloud-agent): add repository-managed Cloud Agent environment#1111seonghobae wants to merge 1 commit into
seonghobae wants to merge 1 commit into
Conversation
Add .cursor/environment.json so Cursor Cloud Agents bootstrap the pinned, hash-verified test toolchain (coverage, pytest, pytest-cov, interrogate, uv, hypothesis) via the documented install command. Uses Cursor's default base image (Python 3.12 + Node 22 already present); no start/terminals needed since this repo is a CI/governance script library with no long-running services. Validated end-to-end: fresh pip install, full suite (1116 passed), 100% coverage gate, 100% interrogate docstring gate, and representative scripts/ci helpers (sandboxed_verify, redact_sensitive_log, review_execution_contracts, sanitize_github_output_summary). Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
.cursor/environment.jsonso Cursor Cloud Agents bootstrap this repository's pinned, hash-verified test toolchain automatically. Currently the repo has no committed environment config, so agents start withoutcoverage/pytest/interrogate/uvand must install them by hand before they can run the canonical checks documented inCLAUDE.md.What it does
install:python3 -m pip install --require-hashes --only-binary=:all: -r requirements-opencode-review-ci-hashes.txt— the exact command documented inCLAUDE.md, installingcoverage,pytest,pytest-cov,interrogate,uv, andhypothesisfrom the hash-pinned lock.start/terminals: this repo is a CI/governance script library (scripts/ci/) with no long-running services.Validation (on a Cloud Agent VM)
pip installfrom the pinned lock: succeeded; re-run is idempotent ("already satisfied").coverage run -m pytest tests: 1116 passed (+16 subtests).coverage report(fail_under = 100): 100%, 0 missing.interrogate(fail-under = 100): PASSED, 100%.scripts/cihelpers run end-to-end:sandboxed_verify.py(exit_code: 0,sandboxed: true),redact_sensitive_log.py(token →[REDACTED]),review_execution_contracts.py(discovered this repo's test/coverage/docstring commands),sanitize_github_output_summary.py(AWS key + GitHub token →<redacted>).https://cursor.com/schemas/environment.schema.json(name,installare validcommonfields).Because this repo version-controls all of its config, a repository-managed
.cursor/environment.json(highest-precedence source, follows branches/PRs) is a natural fit.