Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: survey org reusables + document node-ci.yml cache-dependency-path gap#58

Merged
WomB0ComB0 merged 1 commit into
mainfrom
ci/use-org-node-reusable
Apr 22, 2026
Merged

ci: survey org reusables + document node-ci.yml cache-dependency-path gap#58
WomB0ComB0 merged 1 commit into
mainfrom
ci/use-org-node-reusable

Conversation

@WomB0ComB0

@WomB0ComB0 WomB0ComB0 commented Apr 22, 2026

Copy link
Copy Markdown
Member

Summary

Survey of resq-software/.github/.github/workflows/ found node-ci.yml as a candidate drop-in for the hand-rolled client job from PR #55. Attempted adoption; it failed. Reverting with a header comment so the next contributor doesn't re-hit the same pitfall.

The gap

##[error] Dependencies lock file is not found in /home/runner/work/viz/viz.
Supported file patterns: package-lock.json, npm-shrinkwrap.json, yarn.lock

The reusable calls actions/setup-node with cache: 'npm' but doesn't accept a cache-dependency-path input. When a consumer's package.json lives in a subdirectory (viz's is at src/ResQ.Viz.Web/), setup-node's cache detection only checks the repo root and bails out.

working-directory input on the reusable works for the run: steps but doesn't rewire setup-node's lockfile discovery — that's controlled independently by cache-dependency-path, which the reusable doesn't forward.

Resolution

  • This PR: revert client to the hand-rolled inline version from PR ci: comprehensive pipeline — client-side + Dependabot + lockfile #55 (same SHA-pinned actions, same step-security/harden-runner, same bundle-size gate). Added a header comment explaining the gap.
  • Follow-up (separate): upstream a cache-dependency-path input on resq-software/.github's node-ci.yml so this reusable works for polyglot repos with a subdirectory frontend.

Reusables survey — full result

Workflow Applicable to viz? Status
required.yml used via ci.yml
security-scan.yml used via security.yml + transitively via required.yml
dotnet-ci.yml used via required.yml dispatch
node-ci.yml partial blocked on cache-dependency-path input (this PR documents; follow-up upstreams)
docker-publish.yml conditional viz has no Dockerfile; deferred pending deployment decision
cpp-ci.yml / python-ci.yml / rust-ci.yml wrong language
required-gate.yml for pass-through repos that only publish reusables
audit-required-job.yml runs on resq-software/.github itself

Verification

  • ruby -ryaml parses: jobs = [gates, client, required]
  • required aggregates [gates, client] → status check green on passing PRs

🤖 Generated with Claude Code

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@WomB0ComB0 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 35 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 17 minutes and 35 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f96e65a3-4d00-4834-ac17-7d91599ceeb8

📥 Commits

Reviewing files that changed from the base of the PR and between 04aabb7 and b28bcc6.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/use-org-node-reusable

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@WomB0ComB0 WomB0ComB0 force-pushed the ci/use-org-node-reusable branch from 329e706 to 20088fe Compare April 22, 2026 10:41
Surveyed resq-software/.github's 11 reusable workflows. Of the 8 not
yet used by viz, one was a direct fit: **node-ci.yml** for the
client job.

Attempted the adoption — it failed. The reusable calls
`actions/setup-node` with `cache: 'npm'` but doesn't expose a
`cache-dependency-path` input, so when the lockfile lives in a
subdirectory (viz's is at `src/ResQ.Viz.Web/package-lock.json` rather
than the repo root), `setup-node` errors with `Dependencies lock file
is not found`.

Reverted the client job back to the hand-rolled inline version from
PR #55 — same SHA-pinned actions, same step-security/harden-runner,
same bundle-size gate. Added a header comment documenting the gap so
the next contributor doesn't re-hit the same pitfall.

Follow-up (separate PR): upstream `cache-dependency-path` input on
resq-software/.github's node-ci.yml so polyglot repos can adopt it.

Other reusables surveyed:
  - docker-publish.yml — N/A, viz has no Dockerfile yet
  - cpp/python/rust-ci.yml — wrong language
  - required-gate.yml — for pass-through repos (viz has real CI)
  - audit-required-job.yml — runs on .github itself, not consumers

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@WomB0ComB0 WomB0ComB0 force-pushed the ci/use-org-node-reusable branch from 20088fe to b28bcc6 Compare April 22, 2026 10:42
@WomB0ComB0 WomB0ComB0 changed the title ci: adopt org-wide node-ci.yml reusable for client pipeline ci: survey org reusables + document node-ci.yml cache-dependency-path gap Apr 22, 2026
@WomB0ComB0 WomB0ComB0 merged commit 46f306f into main Apr 22, 2026
36 checks passed
@WomB0ComB0 WomB0ComB0 deleted the ci/use-org-node-reusable branch April 22, 2026 10:46
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