Skip to content

chore(ci): add diagnostic logging to vercel ignore build step#116

Merged
msarcev merged 2 commits intodevelopfrom
chore/debug-vercel-ignore-build-step
Apr 21, 2026
Merged

chore(ci): add diagnostic logging to vercel ignore build step#116
msarcev merged 2 commits intodevelopfrom
chore/debug-vercel-ignore-build-step

Conversation

@msarcev
Copy link
Copy Markdown
Collaborator

@msarcev msarcev commented Apr 21, 2026

Context

The explorer deploy for commit 243d43e 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 (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.

Helps debug why 'turbo query affected' returns an empty list on Vercel
even when HEAD^1..HEAD clearly touches the explorer's dependency graph
(e.g. deploy for 243d43e on develop was canceled despite the commit
changing apps/explorer/** and apps/core/**).

Logs git state, changed files, and any restored .turbo cache before
running the turbo query.
@msarcev msarcev requested a review from a team as a code owner April 21, 2026 15:33
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

5 Skipped Deployments
Project Deployment Actions Updated (UTC)
apps-ui-kit Ignored Ignored Preview, Comment Apr 21, 2026 3:40pm
iota-evm-bridge Ignored Ignored Preview Apr 21, 2026 3:40pm
iota-multisig-toolkit Ignored Ignored Preview Apr 21, 2026 3:40pm
rebased-explorer Ignored Ignored Preview Apr 21, 2026 3:40pm
wallet-dashboard Ignored Ignored Preview, Comment Apr 21, 2026 3:40pm

Request Review

@msarcev msarcev merged commit 7bc8fcc into develop Apr 21, 2026
4 of 9 checks passed
@msarcev msarcev deleted the chore/debug-vercel-ignore-build-step branch April 21, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants