fix(results): ignore unrelated files during remote sync#1347
Open
christso wants to merge 2 commits into
Open
Conversation
Deploying agentv with
|
| Latest commit: |
9f4b228
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a31e372e.agentv.pages.dev |
| Branch Preview URL: | https://session-age-12.agentv.pages.dev |
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
Remote results sync now stays scoped to AgentV result artifacts. If the results repo has unrelated local files such as
package.jsonorpackage-lock.json, the dashboard sync path no longer treats them as metadata errors; it pulls remote updates when possible, stages only.agentv/results/**, and pushes only commits whose changed paths are still result artifacts.This preserves the safety guard against pushing non-result files while allowing normal run/result sync to continue after accidental local junk appears in the results repo.
Verification
POST /api/projects/financial-research-agent/remote/syncreturnedblock_reason: "Results repo has non-results working tree changes"withdirty_paths: ["package-lock.json", "package.json"]; dashboard screenshot saved at/tmp/agentv-sync-error.png.bunx biome check packages/core/src/evaluation/results-repo.ts packages/core/test/evaluation/results-repo.test.tsbun test packages/core/test/evaluation/results-repo.test.ts— 16 passbun --filter @agentv/core typecheckbiome check .successfully.Post-Deploy Monitoring & Validation
/api/projects/:projectId/remote/syncresponses containingblock_reason,last_error, orsync_status: "dirty"..agentv/results/**.