Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(docs): prevent data sync branch fetch races
jkomyno committed
Aug 10, 2026 at 19:00 UTC
45cdee6c9c486ecadc4d9e3e38f0bdea9c581605
3 files changed
+25
.github/workflows/docs-tests.yml
+1
@@ -5,6 +5,7 @@ on:
5
paths:
6
- 'docs/**'
7
- '.github/actions/setup-node-pnpm-bun/action.yml'
8
+ - '.github/workflows/docs-update-data.yml'
9
- '.github/workflows/docs-tests.yml'
10
- 'mise.toml'
11
- 'mise.lock'
.github/workflows/docs-update-data.yml
+8
@@ -21,6 +21,14 @@ jobs:
21
pull-requests: write
22
issues: write
23
env:
24
+ # Git 2.54 moved automatic cleanup from gc.auto to maintenance.auto, but
25
+ # actions/checkout@v7.0.1 only disables the former. Disable maintenance
26
+ # for every Git process in this job so its background task cannot race the
27
+ # shallow fetch used to update docs/auto-update-data.
28
+ # https://github.com/actions/checkout/issues/2437
29
+ GIT_CONFIG_COUNT: '1'
30
+ GIT_CONFIG_KEY_0: maintenance.auto
31
+ GIT_CONFIG_VALUE_0: 'false'
32
# Deliberately NOT secrets.COMPOSIO_API_KEY. That secret is shared with
33
# ts.test-e2e, py.test, py.check and ts.examples-nightly, all of which run
34
# against staging — it is a staging-scoped credential. This job is the only
docs/tests/static/docs-data-sync-workflow.test.ts
new
+16
@@ -0,0 +1,16 @@
1
+import { describe, expect, test } from 'bun:test';
2
+import { readFile } from 'node:fs/promises';
3
+
4
+const workflowPath = new URL('../../../.github/workflows/docs-update-data.yml', import.meta.url);
5
+
6
+describe('docs data sync workflow', () => {
7
+ test('disables automatic Git maintenance for the whole update job', async () => {
8
+ const workflow = await readFile(workflowPath, 'utf8');
9
+ const jobEnvironment = workflow.match(/^ env:\n((?:^ .*\n|^\n)+)/m)?.[1];
10
+
11
+ expect(jobEnvironment).toBeDefined();
12
+ expect(jobEnvironment).toContain("GIT_CONFIG_COUNT: '1'");
13
+ expect(jobEnvironment).toContain('GIT_CONFIG_KEY_0: maintenance.auto');
14
+ expect(jobEnvironment).toContain("GIT_CONFIG_VALUE_0: 'false'");
15
+ });
16
+});