Skip to content

fix: caching integration test never exercised cache code path#2

Merged
nicholasadamou merged 1 commit intomasterfrom
fix/caching-test
Mar 23, 2026
Merged

fix: caching integration test never exercised cache code path#2
nicholasadamou merged 1 commit intomasterfrom
fix/caching-test

Conversation

@nicholasadamou
Copy link
Copy Markdown
Member

The caching test was always running from the repo root where `scripts/` exists locally, so `source_file_from_utilities` found local files and returned before reaching the caching logic. The cache directory was never created, causing the test to fail.

Fix: Copy only `utilities.sh` to an isolated temp dir (no `scripts/` alongside it) so the remote download + caching code path is actually exercised.

Verified locally — all 6 tests pass.

The caching test was running from the repo root where local scripts/
exist, causing source_file_from_utilities to always find local files
and return before reaching the caching logic. The cache directory was
never created, failing the test.

Fix: copy only utilities.sh to a temp dir (no scripts/ alongside it)
so the remote download + caching code path is exercised.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 23, 2026

Warning

Rate limit exceeded

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

⌛ 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: 2b9cb5f6-7e41-43a6-8fcf-b83a391dc6e6

📥 Commits

Reviewing files that changed from the base of the PR and between 6db36b8 and daae6fd.

📒 Files selected for processing (1)
  • tests/integration_test.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/caching-test

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.

@nicholasadamou nicholasadamou merged commit 077bc73 into master Mar 23, 2026
8 checks passed
@nicholasadamou nicholasadamou deleted the fix/caching-test branch March 23, 2026 10:53
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