Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

Unbreak main's unit tests; stop turbo writing AGENTS.md (#174)

The chain-memory test only bounds live memory from above, so collector timing can't fail it. turbo.json sets agentGuidance false, the stray AGENTS.md is removed, and /AGENTS.md is ignored.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AizKXSsengXZRegJxRATkL
Canberk Demirci authored · GitHub committed signed1 parent b52f9e7commit 1ccd94bc39ae770acc6cf086fbac024902e246a9Browse files
4 files changed+5−12
Files (4)
modified.gitignore+2−0View file
@@ -7,3 +7,5 @@
77 coverage/
88 .DS_Store
99 wrangler.deploy.jsonc
10+# Written by turbo for AI agents; opted out in turbo.json (agentGuidance)
11+/AGENTS.md
deletedAGENTS.md+0−10
@@ -1,10 +1,0 @@
1-<!-- BEGIN:turborepo-agent-rules -->
2-
3-# This is NOT the Turborepo you know
4-
5-Turborepo configuration, task behavior, and CLI commands can vary between installed versions and may differ from your training data. Resolve the `turbo` package from this file's directory or relevant workspace; in monorepos, it may not be visible from the repository root. For example, run `node -p "require.resolve('turbo/package.json')"` from a workspace that depends on `turbo`.
6-
7-Read `docs/README.md` inside that installed package first, then read the relevant pages from its `docs/` directory before changing Turborepo configuration or commands. Heed deprecation notices. These bundled docs match the installed package version and are available without network access.
8-
9-This block is written and re-added by `turbo` before repository-scoped commands when an AI agent is detected. In the Turborepo source repository, its template is defined in `crates/turborepo-cli/src/cli/agent_guidance.rs`. Removing the managed block while updates are enabled means a later qualifying invocation will add it again. Set `"agentGuidance": false` in the root `turbo.json` or `turbo.jsonc` to opt out; this does not remove an existing block. Keep the block committed with your work to avoid an uncommitted change on the next agent invocation.
10-<!-- END:turborepo-agent-rules -->
modifiedpackages/git-core/test/pack-unpack-stream.test.ts+2−2View file
@@ -446,8 +446,8 @@
446446 // Measured against what is left once the unpack is gone.
447447 gc();
448448 const live = atLast - process.memoryUsage().arrayBuffers;
449- // The version it was rebuilt from and itself, and what the caches hold: not the first version as well.
450- expect(live).toBeGreaterThan(2 * n);
449+ // At most the version it was rebuilt from and itself, and what the caches hold: not the first
450+ // version as well. (Only an upper bound: when the collector frees what is no longer used varies.)
451451 expect(live).toBeLessThan(2 * n + 8 * 1024 * 1024);
452452 });
453453
modifiedturbo.json+1−0View file
@@ -1,5 +1,6 @@
11 {
22 "$schema": "https://turbo.build/schema.json",
3+ "agentGuidance": false,
34 "tasks": {
45 "build": { "dependsOn": ["^build"], "outputs": ["dist/**", "build/**"] },
56 "typecheck": { "dependsOn": ["^build"] },