Skip to content

chore: harden taskfile common tasks#487

Merged
KooshaPari merged 1 commit into
mainfrom
codex/harden-taskfile-common-tasks
Apr 28, 2026
Merged

chore: harden taskfile common tasks#487
KooshaPari merged 1 commit into
mainfrom
codex/harden-taskfile-common-tasks

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

@KooshaPari KooshaPari commented Apr 28, 2026

Co-authored-by: Codex noreply@openai.com


Note

Low Risk
Low risk because changes are limited to developer automation scripts, mainly adjusting caches and dependency install behavior. The main risk is CI/local workflow differences due to npm ci/conditional installs and reduced docs clean targets.

Overview
Improves Taskfile reliability by pinning Go temp/cache directories (adds GOTMPDIR) across build/test/lint/clean and failing lint:go on unformatted files via gofmt -l.

Makes chat and docs tasks more deterministic: chat build/lint only runs bun install when node_modules is missing (and clears .next before building), while docs builds switch to npm ci --ignore-scripts and call VitePress directly, with an updated status guard around the vendored docs.

Adjusts cleanup to remove the new Go temp cache and narrows docs cleanup to just the VitePress cache. Changes are mirrored in both Taskfile.yml and agentapi-plusplus/Taskfile.yml.

Reviewed by Cursor Bugbot for commit a2b3b7c. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Codex <noreply@openai.com>
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@KooshaPari KooshaPari merged commit dfb8761 into main Apr 28, 2026
15 of 23 checks passed
@sonarqubecloud
Copy link
Copy Markdown

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 28, 2026

Warning

Rate limit exceeded

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

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ 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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 65d62bfd-7907-4a60-b884-b38364407deb

📥 Commits

Reviewing files that changed from the base of the PR and between 6b2500c and a2b3b7c.

📒 Files selected for processing (2)
  • Taskfile.yml
  • agentapi-plusplus/Taskfile.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/harden-taskfile-common-tasks

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.

@KooshaPari KooshaPari deleted the codex/harden-taskfile-common-tasks branch April 28, 2026 08:19
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit a2b3b7c. Configure here.

Comment thread Taskfile.yml
Path(os.environ["GOTMPDIR"]).mkdir(parents=True, exist_ok=True)
subprocess.run(["go", "clean", "-cache", "-testcache"], check=True)
for path in [Path("agentapi"), Path("coverage.out"), Path(".cache/go-build")]:
for path in [Path("agentapi"), Path(".cache/go-build"), Path(".cache/go-tmp")]:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean task no longer removes coverage.out artifact

Low Severity

The clean:go task previously removed coverage.out alongside agentapi and .cache/go-build. When .cache/go-tmp was added, Path("coverage.out") was dropped from the cleanup list instead of being kept. A coverage.out file exists in the repository root, and it is not covered by .gitignore, so task clean will no longer remove this build artifact.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a2b3b7c. Configure here.

Comment thread Taskfile.yml
rm -rf .next
if [ ! -d node_modules ]; then
bun install --frozen-lockfile
fi
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conditional install skips dependency verification with stale node_modules

Low Severity

The old code always ran bun install --frozen-lockfile, which verified node_modules matched the lockfile on every invocation. The new guard if [ ! -d node_modules ] skips install entirely when the directory exists, even if bun.lock or package.json has changed. This means builds and lints can silently use stale dependencies, which contradicts the hardening intent. Since --frozen-lockfile is already a fast no-op when deps are current, the conditional saves little while weakening correctness.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a2b3b7c. Configure here.

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