Commit 7bc8fcc
authored
chore(ci): add diagnostic logging to vercel ignore build step (#116)
## Context
The explorer deploy for commit
[`243d43e`](243d43e04a)
on `develop` was canceled by the Ignored Build Step, despite the commit
clearly touching `apps/explorer/**` and `apps/core/**`. The Vercel log
showed:
```
✅ - Preview environment detected. Checking for changes in apps...
{
"data": {
"affectedPackages": {
"items": [],
"length": 0
}
}
}
The Deployment has been canceled as a result of running the command defined in the "Ignored Build Step" setting.
```
## Investigation so far
Ran the exact command locally against the same commit — could not
reproduce:
- `git clone --depth=10 --branch develop` + `pnpx turbo query affected
--packages iota-explorer --base=HEAD^1 --exit-code` → returns `length:
1`, exit 1 (would build). ✅
- Works both with and without `pnpm install`.
- Tested turbo `2.9.0`, `2.9.1`, `2.9.2`, `2.9.3`, `2.9.4`, `2.9.5`,
`2.9.6` — all correctly detect `iota-explorer` as affected.
Remaining suspects, all Vercel-specific and not reproducible from here:
1. Restored `.turbo` cache from the previous deployment (log shows
`Restored build cache from previous deployment (7Eia…)` immediately
before the script runs).
2. Vercel's clone has [known
quirks](vercel/vercel#9884) (no
`origin/HEAD`, odd branch state) that could make `HEAD^1` resolve to
something unexpected.
3. Some Vercel/turbo env var influencing the query.
## Change
Adds diagnostic logging to `scripts/vercel/ignore-build-step-base.sh` so
the next canceled deploy shows:
- `HEAD` and `HEAD^1` SHAs
- recent commit log
- files changed between `HEAD^1..HEAD`
- any restored `.turbo/` state
With that output from a real Vercel run we can point at the actual cause
instead of guessing. Once we know, the logging will be replaced with a
targeted fix.1 parent 243d43e commit 7bc8fcc
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments