Skip to content

fix(ci): align Redis config and remove risky npm upgrade step#56

Open
circleci-app[bot] wants to merge 5 commits into
devfrom
chunk/fix-test-source-workflow
Open

fix(ci): align Redis config and remove risky npm upgrade step#56
circleci-app[bot] wants to merge 5 commits into
devfrom
chunk/fix-test-source-workflow

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • Remove --requirepass from Redis sidecar: .env.ci has AAA_REDIS_PASSWORD commented out, meaning the app connects to Redis without authentication. The sidecar was requiring password eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81, causing every test run to fail with a Redis auth error after checkout succeeded.
  • Remove sudo npm install -g npm@latest: upgrading npm globally on each CI run is slow (~30s+), can introduce breaking changes from upstream, and is unnecessary since cimg/node:22.7 already ships a recent npm.
  • Add HUSKY: "0" to the install step: prevents husky from installing git hooks during npm install in CI where they serve no purpose.

Root cause of workflow 7b7073bf failure

Job 142 (test-source) failed at the checkout step due to a transient blobless clone hang. The structural Redis password mismatch means the workflow would have continued to fail at the test step on every subsequent run even after checkout succeeded.

Test plan

  • Verify test-source job reaches the "Run Tests" step without errors
  • Confirm Redis connection succeeds (no NOAUTH Authentication required errors in test output)
  • Confirm npm install completes without husky-related failures

https://app.circleci.com/agents/gh/web2solutions/chat/0acfd8d1-0d00-4b57-bcb1-51419a4e0b00

circleci-app Bot and others added 5 commits June 25, 2026 22:35
- Remove --requirepass from Redis sidecar: .env.ci has AAA_REDIS_PASSWORD
  commented out, so the client connects without auth; requiring a password
  caused every test run to fail with an authentication error after checkout.
- Remove `sudo npm install -g npm@latest`: upgrading npm globally is slow,
  can introduce breaking changes, and is not needed since cimg/node:22.7
  ships a recent npm already.
- Add HUSKY=0 env var to the install step so husky hooks are skipped in CI.

AI-Generated: true
Remove Redis save option from CircleCI config.
Updated Redis image version and modified command.
Updated Redis image to use 'redis:latest' and added environment variable for memory overcommit.
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