@devries-cameron20 / composio-1 / commits / 4694de1fc
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore(ci): run the dead-code report weekly instead of on every PR (#5167)

This PR: - runs the report-only `Dead Code` workflow every Monday at 06:00 UTC and on demand (`workflow_dispatch`), instead of on every push and PR - jobs are unchanged: knip, vulture and the orphaned-CI check still write to the Step Summary and never fail - updates `CONTRIBUTING.md`, which described it as running on every PR ## Context All three jobs are report-only by design, so a per-PR run adds CI minutes and a check nobody acts on. A weekly report keeps the signal; run it manually to check a branch. ## How has this been tested? - `actionlint .github/workflows/dead-code.yml`: only the two existing SC2016 notes on unchanged `run:` blocks - `bash .github/scripts/check-orphan-ci.sh`: no orphaned CI plumbing

Alberto Schiabel committed Oct 30, 2026 at 19:34 UTC 4694de1fcd0d57e67490dfb8df936aafae78b915
2 files changed +10 -32
.github/workflows/dead-code.yml
+9 -31
@@ -1,6 +1,6 @@
1 name: Dead Code
2
3 -# Surfaces likely-dead code on every PR so orphaned files/exports/deps get
3 +# Surfaces likely-dead code once a week so orphaned files/exports/deps get
4 # noticed instead of rotting (see the root Dockerfile cleanup, #3783).
5 #
6 # Report-only by design: every job writes findings to the run's Step Summary
@@ -8,40 +8,18 @@ name: Dead Code
8 # surface, dynamic imports, import-map targets), so a red X here would train
9 # people to ignore it. Tighten a job to blocking only once its config is
10 # refined enough that a clean run is the steady state.
11 +#
12 +# It runs weekly rather than on every PR because nobody acts on a per-PR
13 +# report-only result. Run it on demand to check a branch.
14
15 on:
13 - push:
14 - branches: [master, next, main]
15 - paths:
16 - - 'ts/**'
17 - - 'python/**'
18 - - '.github/actions/**'
19 - - '.github/workflows/**'
20 - - '.github/scripts/check-orphan-ci.sh'
21 - - 'knip.json'
22 - - 'package.json'
23 - - 'pnpm-workspace.yaml'
24 - - 'pnpm-lock.yaml'
25 - - 'mise.toml'
26 - - 'mise.lock'
27 - pull_request:
28 - branches: [master, next, main]
29 - paths:
30 - - 'ts/**'
31 - - 'python/**'
32 - - '.github/actions/**'
33 - - '.github/workflows/**'
34 - - '.github/scripts/check-orphan-ci.sh'
35 - - 'knip.json'
36 - - 'package.json'
37 - - 'pnpm-workspace.yaml'
38 - - 'pnpm-lock.yaml'
39 - - 'mise.toml'
40 - - 'mise.lock'
16 + schedule:
17 + - cron: '0 6 * * 1'
18 + workflow_dispatch:
19
20 concurrency:
43 - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
44 - cancel-in-progress: ${{ github.event_name == 'pull_request' }}
21 + group: ${{ github.workflow }}-${{ github.ref }}
22 + cancel-in-progress: true
23
24 permissions:
25 contents: read
CONTRIBUTING.md
+1 -1
@@ -144,7 +144,7 @@ pnpm create:example <example-name> # New TypeScript example
144
145 ### Dead code detection
146
147 -The `Dead Code` CI workflow reports likely-orphaned code on every PR. Findings land in the run's Step Summary and never fail the build. Run the same checks locally:
147 +The `Dead Code` CI workflow reports likely-orphaned code every Monday, and can be run on demand. Findings land in the run's Step Summary and never fail the build. Run the same checks locally:
148
149 ```bash
150 # TypeScript: unused files, exports, types, and dependencies