Skip to content

chore(ci): guard build_app on fork (lock-file/babel cold-cache mismatch) - #4

Merged
Mudit-Lal merged 1 commit into
mainfrom
chore/guard-build-app
Jun 4, 2026
Merged

Mudit-Lal merged 1 commit into
mainfrom
chore/guard-build-app

Conversation

@Mudit-Lal

Copy link
Copy Markdown
Contributor

Problem

CI 'Build App' job fails on every push to fork main since the upstream sync. Failure: `npm ci` complains about missing `@babel/parser@7.29.7` etc.

Root cause: upstream's `package-lock.json` has a subtle inconsistency with a transitive babel dep. Upstream CI passes because warm npm cache satisfies the resolution. Our fork CI is cold-cache → hits the mismatch.

What works

`build_docker` in the same workflow uses the same lock file via `docker/Dockerfile` and succeeds — same job builds the Railway production image. Prod is unaffected.

Fix

Guard `build_app` job with `if: github.repository == 'documenso/documenso'` (same convention as PR #2). Keep `build_docker` running on fork — that's the real prod signal.

Document in DEVALOK_FORK_NOTES.md.

Alternatives considered

  • Regenerate package-lock.json — local npm 11.6.2 < required 11.11.0, would produce massive lock churn and risk breaking Docker build
  • Fix lock file upstream — out of scope for fork

Test plan

  • After merge, push to main: only `build_docker` + `codeql-analysis` run, `build_app` skips cleanly

🤖 Generated with Claude Code

Upstream's CI passes via warm npm cache that masks an inconsistency
between package-lock.json and a transitive babel dep
(@babel/parser@7.29.7 missing from lock, but required at install
resolve time). Fork CI has cold cache, hits the mismatch, fails.

The build_docker job in the same workflow uses the same lock file via
the Dockerfile and succeeds — that's also what Railway uses to build
prod, so prod signal is preserved.

Guard the npm-ci-based build_app job on the fork; keep build_docker
running. Document in DEVALOK_FORK_NOTES.md.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Mudit-Lal
Mudit-Lal merged commit bfade19 into main Jun 4, 2026
7 of 8 checks passed
@Mudit-Lal
Mudit-Lal deleted the chore/guard-build-app branch June 4, 2026 18:52
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.

1 participant